state: stopped
enabled: no
- - name: set_fact ceph_uid for ubuntu
- set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is search("ubuntu")
-
- - name: set_fact ceph_uid for red hat
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
-
- - name: set_fact ceph_uid for rhel
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image is search("rhceph")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
enabled: no
failed_when: false
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
shell: 'sgdisk --partition-guid=5:$(uuidgen) {{ item.stdout[:-2] if item.stdout is match("^/dev/(cciss|nvme|loop).*") else item.stdout[:-1] }}'
with_items: '{{ lockbox_devices.results }}'
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - name: set_fact ceph_uid for red hat
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
-
- - name: set_fact ceph_uid for rhel
- set_fact:
- ceph_uid: 167
- when: ceph_docker_image is search("rhceph")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
state: stopped
enabled: no
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
state: stopped
enabled: no
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
state: stopped
enabled: no
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
enabled: no
failed_when: false
- - set_fact:
- ceph_uid: 64045
- when: ceph_docker_image_tag | string is match("latest") or ceph_docker_image_tag | string is search("ubuntu")
-
- - set_fact:
- ceph_uid: 167
- when: ceph_docker_image_tag | string is search("centos") or ceph_docker_image is search("rhceph") or ceph_docker_image_tag | string is search("fedora")
-
# NOTE: changed from file module to raw find command for performance reasons
# The file module has to run checks on current ownership of all directories and files. This is unnecessary
# as in this case we know we want all owned by ceph user
- item.value.holders|count == 0
- item.key is not match osd_auto_discovery_exclude
-- name: set_fact ceph_uid for debian based system - non container
- set_fact:
- ceph_uid: 64045
- when:
- - not containerized_deployment
- - ansible_os_family == 'Debian'
-
-- name: set_fact ceph_uid for red hat or suse based system - non container
- set_fact:
- ceph_uid: 167
- when:
- - not containerized_deployment
- - ansible_os_family in ['RedHat', 'Suse']
-
-- name: set_fact ceph_uid for debian based system - container
- set_fact:
- ceph_uid: 64045
- when:
- - containerized_deployment
- - ceph_docker_image_tag | string is search("ubuntu")
-
-- name: set_fact ceph_uid for red hat based system - container
- set_fact:
- ceph_uid: 167
- when:
- - containerized_deployment
- - ceph_docker_image_tag | string is search("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
-
-- name: set_fact ceph_uid for red hat
- set_fact:
- ceph_uid: 167
- when:
- - containerized_deployment
- - ceph_docker_image is search("rhceph")
-
- name: set_fact rgw_hostname
set_fact:
rgw_hostname: "{% set _value = ansible_hostname -%}