Skip to content

Commit

Permalink
added kafka capability
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Oct 16, 2023
1 parent 7d40805 commit 0c32753
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -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-----
6 changes: 6 additions & 0 deletions kafkainstall.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Install Kafka via Podman
hosts: all

roles:
- kafka
5 changes: 5 additions & 0 deletions roles/kafka/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Restart Firewalld
ansible.builtin.service:
name: firewalld
state: restarted
37 changes: 37 additions & 0 deletions roles/kafka/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 6 additions & 0 deletions winlogbeatinstall.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Install Winglogbeat
hosts: all

roles:
- winlogbeats

Check failure on line 6 in winlogbeatinstall.yml

View workflow job for this annotation

GitHub Actions / build

syntax-check[specific]

the role 'winlogbeats' was not found in /github/workspace/roles:/github/home/.cache/ansible-compat/21a323/roles:/github/workspace/roles:/github/home/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/github/workspace

0 comments on commit 0c32753

Please sign in to comment.