Merge "Rename ceph-mon bootstrap container to avoid conflict"
This commit is contained in:
commit
bb12f82c70
@ -3,21 +3,29 @@
|
|||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
detach: False
|
||||||
environment:
|
environment:
|
||||||
KOLLA_BOOTSTRAP:
|
KOLLA_BOOTSTRAP:
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
MON_IP: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
MON_IP: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
||||||
image: "{{ ceph_mon_image_full }}"
|
image: "{{ ceph_mon_image_full }}"
|
||||||
name: "ceph_mon"
|
name: "bootstrap_ceph_mon"
|
||||||
restart_policy: "never"
|
restart_policy: "never"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
|
||||||
- "ceph_mon:/var/lib/ceph"
|
- "ceph_mon:/var/lib/ceph"
|
||||||
- "ceph_mon_config:/etc/ceph"
|
- "ceph_mon_config:/etc/ceph"
|
||||||
|
|
||||||
- name: Waiting for a few settings for cluster to generate keys
|
- name: Starting ceph-mon container
|
||||||
command: sleep 3
|
kolla_docker:
|
||||||
changed_when: False
|
action: "start_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ ceph_mon_image_full }}"
|
||||||
|
name: "ceph_mon"
|
||||||
|
volumes:
|
||||||
|
- "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
|
||||||
|
- "ceph_mon:/var/lib/ceph"
|
||||||
|
- "ceph_mon_config:/etc/ceph"
|
||||||
|
|
||||||
- name: Setting host for cluster files
|
- name: Setting host for cluster files
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -21,8 +21,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|||||||
ceph-authtool "${KEYRING_MON}" --import-keyring "${KEYRING_RGW}"
|
ceph-authtool "${KEYRING_MON}" --import-keyring "${KEYRING_RGW}"
|
||||||
monmaptool --create --add "$(hostname)" "${MON_IP}" --fsid "${FSID}" "${MONMAP}"
|
monmaptool --create --add "$(hostname)" "${MON_IP}" --fsid "${FSID}" "${MONMAP}"
|
||||||
|
|
||||||
echo "Sleeping until keys are fetched"
|
exit 0
|
||||||
/bin/sleep infinity
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This section runs on every mon that does not have a keyring already.
|
# This section runs on every mon that does not have a keyring already.
|
||||||
|
Loading…
Reference in New Issue
Block a user