2015-08-29 11:49:57 +00:00
|
|
|
---
|
2015-12-26 01:58:57 +00:00
|
|
|
- name: Generating initial Ceph keyrings and monmap
|
|
|
|
kolla_docker:
|
|
|
|
action: "start_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
2016-01-17 23:19:34 +00:00
|
|
|
detach: False
|
2015-12-26 01:58:57 +00:00
|
|
|
environment:
|
2015-08-29 11:49:57 +00:00
|
|
|
KOLLA_BOOTSTRAP:
|
|
|
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
2016-02-24 00:34:14 +00:00
|
|
|
MON_IP: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
|
2016-03-09 04:12:26 +00:00
|
|
|
HOSTNAME: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
|
2015-12-26 01:58:57 +00:00
|
|
|
image: "{{ ceph_mon_image_full }}"
|
2016-01-28 02:04:02 +00:00
|
|
|
labels:
|
|
|
|
BOOTSTRAP:
|
2016-01-17 23:19:34 +00:00
|
|
|
name: "bootstrap_ceph_mon"
|
2015-12-26 01:58:57 +00:00
|
|
|
restart_policy: "never"
|
2015-12-27 15:38:26 +00:00
|
|
|
volumes:
|
|
|
|
- "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
|
2016-05-01 20:11:45 +08:00
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2015-12-27 15:38:26 +00:00
|
|
|
- "ceph_mon:/var/lib/ceph"
|
|
|
|
- "ceph_mon_config:/etc/ceph"
|
2016-05-03 15:47:41 -04:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
2015-08-29 11:49:57 +00:00
|
|
|
|
2016-02-24 00:34:14 +00:00
|
|
|
- include: start_mons.yml
|
2015-08-29 11:49:57 +00:00
|
|
|
|
|
|
|
- name: Setting host for cluster files
|
|
|
|
set_fact:
|
2016-07-05 14:43:03 +01:00
|
|
|
delegate_host: "{{ inventory_hostname }}"
|