Merge pull request #1345 from guits/fix_1338

ceph-docker: fix bootstrap directories permissions
pull/1391/head
Sébastien Han 2017-03-22 12:02:35 +01:00 committed by GitHub
commit a711cfac1a
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/