Add firewall allow functionality RHEL

This commit is contained in:
2020-10-15 14:23:17 +13:00
parent 9cd948dcdc
commit 829ca8310d
4 changed files with 22 additions and 2 deletions

View File

@@ -1,2 +1,3 @@
FROM docker.io/pycontribs/centos:7
RUN yum install -y iproute
RUN yum install -y iproute firewalld python-firewall net-tools && \
systemctl enable firewalld

6
Centos8-Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
# Centos8-Dockerfile
FROM docker.io/pycontribs/centos:8
RUN yum install -y iproute firewalld net-tools && \
systemctl disable nftables && \
systemctl enable firewalld && \

View File

@@ -8,4 +8,15 @@
- name: cmk fresh install
set_fact:
cmk_fresh_install: True
cmk_fresh_install: True
- name: ensure firewall open
firewalld:
port: 6556/tcp
state: enabled
permanent: yes
immediate: yes
- name: ensure firewall reloaded
command: firewall-cmd --reload
changed_when: false

View File

@@ -24,6 +24,8 @@
notify:
- restart xinetd
- cmk fresh install
- ensure firewall open
- ensure firewall reloaded
- name: Remove agent Download
file: