ceph-docker: fix bootstrap directories permissions

Make bootstrap directories permissions work for both RedHat and Debian
os families.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Fix: #1338
pull/1345/head
Guillaume Abrioux 2017-03-03 14:58:56 +01:00
parent 350d2f88c7
commit 589d6812ca
10 changed files with 26 additions and 17 deletions

View File

@ -7,7 +7,12 @@
# file as a good configuration file when no variable in it.
dummy:
#ceph_docker_registry: docker.io
#ceph_docker_enable_centos_extra_repo: false
# Set uid/gid to default '64045' for bootstrap directories.
# '64045' is used for debian based distros. It must be set to 167 in case of rhel based distros.
# These values have to be set according to the base OS used by the container image, NOT the host.
#bootstrap_dirs_owner: "64045"
#bootstrap_dirs_group: "64045"

View File

@ -1,4 +1,9 @@
---
ceph_docker_registry: docker.io
ceph_docker_enable_centos_extra_repo: false
# Set uid/gid to default '64045' for bootstrap directories.
# '64045' is used for debian based distros. It must be set to 167 in case of rhel based distros.
# These values have to be set according to the base OS used by the container image, NOT the host.
bootstrap_dirs_owner: "64045"
bootstrap_dirs_group: "64045"

View File

@ -1,7 +1,6 @@
---
- include: system_checks.yml
- name: check if it is atomic host
stat: path=/run/ostree-booted
register: stat_ostree

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/

View File

@ -3,8 +3,8 @@
file:
path: "{{ item }}"
state: directory
owner: "64045"
group: "64045"
owner: "{{ bootstrap_dirs_owner }}"
group: "{{ bootstrap_dirs_group }}"
mode: "0755"
with_items:
- /etc/ceph/