b2ac6e80cd
sudo requires a tty to function by default on centos. Instead of tweaking the sudo conf we can just add a tty. This has the added advantage of making the containers more friendly if you have to `docker exec -i <container> bash` into them. Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd backport: liberty Partially-Implements: blueprint functional-testing-gate
31 lines
957 B
YAML
31 lines
957 B
YAML
---
|
|
- name: Generating Initial Ceph keyrings and monmap
|
|
docker:
|
|
tty: True
|
|
detach: False
|
|
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 }}"
|