diff --git a/.ansible-sign/sha256sum.txt b/.ansible-sign/sha256sum.txt index 3b0d7fc..f8e70dd 100644 --- a/.ansible-sign/sha256sum.txt +++ b/.ansible-sign/sha256sum.txt @@ -11,6 +11,7 @@ c8066ae4c79ca812f0abde5b42d4a0bf954a60c88b3eab2149d75d98b567c931 Elastic_restar bcc7a97fdb676c3f94875a674a87d25cd286cabba5820a5bb0a3eb228951b568 email.yml b3465bdbfe9364aad6ada9dbcee1bac37468ad2d7977fd66e277a6af3f921cae eventautoprep.yml e0aa583a3faf802922a6cb66c3e2fa5906105a619a6d9821f47c6a068e728570 jenkins.yml +df6946fafa770e9012275960d25c1858efefe04370be1c9831f16b628608045b kafkainstall.yml 563d171c990cfb653bf7da7cdf93f524e2ddaab60abb2f7d39fa98d358eea98b roles/elk_build/defaults/main.yml 29e60c8070b04026840ddc44e1881dd636bae2c2f6ed32dac093a61bffcf91de roles/elk_build/tasks/main.yml 5d0c1180e3dd89675d87f0e1a9d98d0810a5cd38530c9084057965cc40c02eb8 roles/elk_build/templates/elasticsearch.yml.j2 @@ -20,6 +21,8 @@ e0aa583a3faf802922a6cb66c3e2fa5906105a619a6d9821f47c6a068e728570 jenkins.yml 67221a8f762a9b1e4a6d6a298e9fdecaa6bcd634417fb2da341fdc1a4e21a70f roles/jenkins_setup/defaults/main.yml d26a0f12ebb5835b5aa36074b24addf52fdca91939d97244eb682bb3bd05545e roles/jenkins_setup/files/shadowman.xml 3ce37f28b0b4cd83a86440fdfbc1148f6a61125dd4dcf900b953778a588ac12b roles/jenkins_setup/tasks/main.yml +fde421bd02e9d5d96effcbef92b4657f2ed9283855cebafcb3246c4829882382 roles/kafka/handlers/main.yml +f5dbcfb86aa090075c2e6cfb9381e436a12eab7c26780a73f4917bbeda5e7582 roles/kafka/tasks/main.yml 2d12114b12a76da493a951ed2c1abcd3d2d3e5a1ca0dcb0943fbc91665f5f91a roles/prometheus/defaults/main.yml a8355ca3078663433c90e991a1a9622ae2d5b911696aef4a62701ed6a454690c roles/prometheus/handlers/main.yml 4116ff338c5ffed270d770729ff19e4f0a85365be1745f282fd35f50ca660fd6 roles/prometheus/tasks/main.yml @@ -58,3 +61,4 @@ ff3bc0d052a72eb88bf093b9a2b9f31946032ab78dc7c4c742017f161f38763f templates/disk fef16c7d9970db7617d990e44f5cb58a277379aaeed44aaf7ca482268e75b0e1 templates/mem-rules.yml.j2 d6c51a903d4a3b1a0b61a53757e59eb9f6e6c4c3dce675b45217b2a978e1b85a templates/prometheus.yml.j2 02cdf458f30d546ce04c259a6651505887d877fe3154a90eb3d9093320f8b1f1 templates/selinux-rules.yml.j2 +a4d2540d13a7cdfafd2d317b142acaf4ed6402f8d83bcaa97a990e5fdb100c35 winlogbeatinstall.yml diff --git a/.ansible-sign/sha256sum.txt.sig b/.ansible-sign/sha256sum.txt.sig index 532bfb4..7d839e6 100644 --- a/.ansible-sign/sha256sum.txt.sig +++ b/.ansible-sign/sha256sum.txt.sig @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNATURE----- -iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUtZloACgkQTiIiIXrU -DNETTAwAndUs5fh7Y4wSRwXvpMFgvaDVO4pJWYoWchmXOdXpAzPewouowdoVajOO -mTjkfeYvlCQg6aH52G/hOqGWv3WBZhNtb4fOc5EsXEh0wpQuhMSB994TOUr7eH9b -+PKPS+AGKA2nNTQ5xbtNqqrRcf/EsmRmRPjnG+uGA3iaWfJrSZFY0SxI3luqMiPU -OIkknrPHXNfYeTS8JnheXPj2xAabMDn6YGU2B8uciGoQi7DlNP4gdsz83pCIDLbt -ExqiPb3NGkX9HoF0DXL7QY2xKDjIPFkeM5c9a9FiANsfx+0aGrObvzYcGEQ4NLX3 -qMFbOGYZrWQOS1S3SNXZpBFAMLE8TnGd318Hl+vpdWg0H7kf5Blap4cYKd765yR8 -LCH+AZqsajsYCSKPT+ZFNQCMw5WfVrvY89PuSsVZuvgbjzJS7HQ8AwSiJEZk1snP -xwTtsOCB7xoCtaybn7ET6AMkFnETvghc/n3zpC/XsahB510Hb+xT+3AakW7Da1HN -2H6bJtBq -=xx6R +iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUtdBAACgkQTiIiIXrU +DNEt7Av+INhx6teAfvLYrtlo4j7tEeXCayk+lYcro875rVvLvYWbo2ZobIpV9oxZ +nDgrXfh37hTdH5rXwB1EXLoULZNpEZREb0T6EM6tWkOpOG1B24I5v3fzupgC5ggz +egafrXQ1NPrAdPaBpwhVLWddR7aEYBzFtBTl6pkDLt/KIm34+avrzsneKqUQuCwr +OkzU0M74MI9ILBsc+D3eRH/DnzUG6lOuTk8J210uI8xiZknrzvwyokdWF5umq9ne +BzJpFYJ1AvUhs1MbvgGl6qp9j6hsI226ITiQxuQJsWx8bUnXKy4Zu1x095PG/2k9 +44LYqKUuLPN0hm8oKsv0wdb2tuqiEWuvRJ4fVl4sbzbrtnRdSgA/4MuKN8mH/h+B +eHePuIFBT9v0z5IDqz2KZuG4TMb7jgsGB3dOftMPO3cHjmOujoiO+R4isZ3qM8k1 +CgqPa4gNI3equ0vAIL/aDRy6VHDqEseY8vaJTBCqUYru2StcLcDlW9JRw5sqHYu6 +mMgcVoD5 +=iS7N -----END PGP SIGNATURE----- diff --git a/kafkainstall.yml b/kafkainstall.yml new file mode 100644 index 0000000..77c3dcb --- /dev/null +++ b/kafkainstall.yml @@ -0,0 +1,6 @@ +--- +- name: Install Kafka via Podman + hosts: all + + roles: + - kafka diff --git a/roles/kafka/handlers/main.yml b/roles/kafka/handlers/main.yml new file mode 100644 index 0000000..ac2d05a --- /dev/null +++ b/roles/kafka/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: Restart Firewalld + ansible.builtin.service: + name: firewalld + state: restarted diff --git a/roles/kafka/tasks/main.yml b/roles/kafka/tasks/main.yml new file mode 100644 index 0000000..3a895b9 --- /dev/null +++ b/roles/kafka/tasks/main.yml @@ -0,0 +1,37 @@ +--- +- name: Ensure "messaging" network exists + containers.podman.podman_network: + name: messaging + state: present + +- name: Start the ZooKeeper container + containers.podman.podman_container: + name: zookeeper + image: bitnami/zookeeper + state: started + env: + ALLOW_ANONYMOUS_LOGIN: 'yes' + ports: + - "2181:2181" + network: messaging + + +- name: Start the Kafka container + containers.podman.podman_container: + name: kafka + image: bitnami/kafka + state: started + env: + ALLOW_PLAINTEXT_LISTENER: 'yes' + KAFKA_CFG_ZOOKEEPER_CONNECT: "zookeeper:2181" + KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://localhost:9092" + ports: + - "9092:9092" + network: messaging + +- name: Open Firewalld for Kafka + ansible.posix.firewalld: + port: 9092/tcp + permanent: true + state: enabled + notify: "Restart Firewalld" diff --git a/winlogbeatinstall.yml b/winlogbeatinstall.yml new file mode 100644 index 0000000..276e595 --- /dev/null +++ b/winlogbeatinstall.yml @@ -0,0 +1,6 @@ +--- +- name: Install Winglogbeat + hosts: all + + roles: + - winlogbeats