![Sam Yaple](/assets/img/avatar_default.png)
This brings Kolla images inline with FHS and should make finding locations of things more consistent and reliable with the linux world at large. Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8 Closes-Bug: #1485742
31 lines
994 B
YAML
31 lines
994 B
YAML
---
|
|
- name: Generating Initial Ceph keyrings and monmap
|
|
docker:
|
|
detach: False
|
|
docker_api_version: "{{ docker_api_version }}"
|
|
net: host
|
|
pull: "{{ docker_pull_policy }}"
|
|
restart_policy: "no"
|
|
state: reloaded
|
|
registry: "{{ docker_registry }}"
|
|
username: "{{ docker_registry_username }}"
|
|
password: "{{ docker_registry_password }}"
|
|
insecure_registry: "{{ docker_insecure_registry }}"
|
|
name: ceph_mon
|
|
image: "{{ ceph_mon_image_full }}"
|
|
volumes: "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
|
|
volumes_from:
|
|
- "ceph_mon_data"
|
|
env:
|
|
KOLLA_BOOTSTRAP:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
MON_IP: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
|
|
- name: Waiting for a few settings for cluster to generate keys
|
|
command: sleep 3
|
|
changed_when: False
|
|
|
|
- name: Setting host for cluster files
|
|
set_fact:
|
|
delegate_host: "{{ ansible_hostname }}"
|