mirror of https://github.com/ceph/ceph-ansible.git
Add proper permission for selinux
Signed-off-by: Sébastien Han <seb@redhat.com>pull/426/head
parent
29d38c6038
commit
9264a868fd
|
@ -9,5 +9,8 @@
|
||||||
when: ceph_health.rc != 0
|
when: ceph_health.rc != 0
|
||||||
|
|
||||||
- include: pre_requisite.yml
|
- include: pre_requisite.yml
|
||||||
|
- include: selinux.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- include: fetch_configs.yml
|
- include: fetch_configs.yml
|
||||||
- include: start_docker_mds.yml
|
- include: start_docker_mds.yml
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: check if selinux is enabled
|
||||||
|
command: getenforce
|
||||||
|
register: sestatus
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: set selinux permissions
|
||||||
|
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph
|
||||||
|
- /var/lib/ceph
|
||||||
|
changed_when: false
|
||||||
|
when: sestatus.stdout != 'Disabled'
|
|
@ -9,6 +9,9 @@
|
||||||
when: ceph_health.rc != 0
|
when: ceph_health.rc != 0
|
||||||
|
|
||||||
- include: pre_requisite.yml
|
- include: pre_requisite.yml
|
||||||
|
- include: selinux.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- include: fetch_configs.yml
|
- include: fetch_configs.yml
|
||||||
- include: start_docker_monitor.yml
|
- include: start_docker_monitor.yml
|
||||||
- include: copy_configs.yml
|
- include: copy_configs.yml
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: check if selinux is enabled
|
||||||
|
command: getenforce
|
||||||
|
register: sestatus
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: set selinux permissions
|
||||||
|
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph
|
||||||
|
- /var/lib/ceph
|
||||||
|
changed_when: false
|
||||||
|
when: sestatus.stdout != 'Disabled'
|
|
@ -9,5 +9,8 @@
|
||||||
when: ceph_health.rc != 0
|
when: ceph_health.rc != 0
|
||||||
|
|
||||||
- include: pre_requisite.yml
|
- include: pre_requisite.yml
|
||||||
|
- include: selinux.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- include: fetch_configs.yml
|
- include: fetch_configs.yml
|
||||||
- include: start_docker_osd.yml
|
- include: start_docker_osd.yml
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: check if selinux is enabled
|
||||||
|
command: getenforce
|
||||||
|
register: sestatus
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: set selinux permissions
|
||||||
|
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph
|
||||||
|
- /var/lib/ceph
|
||||||
|
changed_when: false
|
||||||
|
when: sestatus.stdout != 'Disabled'
|
|
@ -9,5 +9,8 @@
|
||||||
when: ceph_health.rc != 0
|
when: ceph_health.rc != 0
|
||||||
|
|
||||||
- include: pre_requisite.yml
|
- include: pre_requisite.yml
|
||||||
|
- include: selinux.yml
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- include: fetch_configs.yml
|
- include: fetch_configs.yml
|
||||||
- include: start_docker_rgw.yml
|
- include: start_docker_rgw.yml
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: check if selinux is enabled
|
||||||
|
command: getenforce
|
||||||
|
register: sestatus
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: set selinux permissions
|
||||||
|
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph
|
||||||
|
- /var/lib/ceph
|
||||||
|
changed_when: false
|
||||||
|
when: sestatus.stdout != 'Disabled'
|
Loading…
Reference in New Issue