Change-Id: Icb1e81dc8acabe51740edc5658957022ddd13cd7 Partially-Implements: blueprint kolla-docker-module
23 lines
757 B
YAML
23 lines
757 B
YAML
---
|
|
- name: Generating initial Ceph keyrings and monmap
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
environment:
|
|
KOLLA_BOOTSTRAP:
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
MON_IP: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
image: "{{ ceph_mon_image_full }}"
|
|
name: "ceph_mon"
|
|
restart_policy: "never"
|
|
volumes: "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
|
|
volumes_from: "ceph_mon_data"
|
|
|
|
- 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 }}"
|