mirror of https://github.com/ceph/ceph-ansible.git
infra: add firewall configuration for containerized deployment
firewalld is available on atomic so there is no reason to not apply firewall configuration. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/3215/head
parent
0fb8812e47
commit
f8a7ffb085
|
@ -9,6 +9,8 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- firewall
|
- firewall
|
||||||
|
when:
|
||||||
|
- not containerized_deployment
|
||||||
|
|
||||||
- name: start firewalld
|
- name: start firewalld
|
||||||
service:
|
service:
|
||||||
|
@ -16,7 +18,9 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when:
|
when:
|
||||||
|
- not firewalld_pkg_query.skipped
|
||||||
- firewalld_pkg_query.rc == 0
|
- firewalld_pkg_query.rc == 0
|
||||||
|
or is_atomic
|
||||||
|
|
||||||
- name: open monitor ports
|
- name: open monitor ports
|
||||||
firewalld:
|
firewalld:
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: include_tasks configure_firewall_rpm.yml
|
- name: include_tasks configure_firewall.yml
|
||||||
include_tasks: configure_firewall_rpm.yml
|
include_tasks: configure_firewall.yml
|
||||||
when:
|
when:
|
||||||
- configure_firewall
|
- configure_firewall
|
||||||
- ansible_os_family in ['RedHat', 'Suse']
|
- ansible_os_family in ['RedHat', 'Suse']
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
- role: ceph-defaults
|
- role: ceph-defaults
|
||||||
tags: [with_pkg, fetch_container_image]
|
tags: [with_pkg, fetch_container_image]
|
||||||
- role: ceph-validate
|
- role: ceph-validate
|
||||||
|
- role: ceph-infra
|
||||||
- role: ceph-handler
|
- role: ceph-handler
|
||||||
- role: ceph-docker-common
|
- role: ceph-docker-common
|
||||||
tags: [with_pkg, fetch_container_image]
|
tags: [with_pkg, fetch_container_image]
|
||||||
|
|
Loading…
Reference in New Issue