Move data container to start.yml

The original reason for having the data container in the bootstrap.yml
was to keep consistency with rabbitmq and mariadb, but in light of
this bug we need to move the data container out of the bootstrap.yml
role since we will be limiting the hosts that those tasks can run on.

Change-Id: I7f2f5979b01807275908699d1243756cb97d3588
Partial-Bug: #1513598
This commit is contained in:
Sam Yaple 2015-11-09 03:06:31 +00:00
parent 4ad8db7168
commit 564f8f2bd4
4 changed files with 34 additions and 36 deletions

View File

@ -28,22 +28,6 @@
failed_when: database_user_create.stdout.split()[2] != 'SUCCESS'
run_once: True
- name: Starting Glance data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
restart_policy_retry: "{{ docker_restart_policy_retry }}"
state: reloaded
registry: "{{ docker_registry }}"
username: "{{ docker_registry_username }}"
password: "{{ docker_registry_password }}"
insecure_registry: "{{ docker_insecure_registry }}"
name: glance_data
image: "{{ glance_data_image_full }}"
volumes: "/var/lib/glance/"
- name: Starting Glance bootstrap container
docker:
tty: True
@ -59,8 +43,6 @@
name: bootstrap_glance
image: "{{ glance_api_image_full }}"
volumes: "{{ node_config_directory }}/glance-api/:{{ container_config_directory }}/:ro"
volumes_from:
- glance_data
env:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"

View File

@ -1,4 +1,20 @@
---
- name: Starting Glance data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
restart_policy_retry: "{{ docker_restart_policy_retry }}"
state: reloaded
registry: "{{ docker_registry }}"
username: "{{ docker_registry_username }}"
password: "{{ docker_registry_password }}"
insecure_registry: "{{ docker_insecure_registry }}"
name: glance_data
image: "{{ glance_data_image_full }}"
volumes: "/var/lib/glance/"
- name: Starting Glance-registry container
docker:
tty: True

View File

@ -27,24 +27,6 @@
failed_when: database_user_create.stdout.split()[2] != 'SUCCESS'
run_once: True
- name: Starting Nova data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
restart_policy_retry: "{{ docker_restart_policy_retry }}"
state: reloaded
registry: "{{ docker_registry }}"
username: "{{ docker_registry_username }}"
password: "{{ docker_registry_password }}"
insecure_registry: "{{ docker_insecure_registry }}"
name: nova_data
image: "{{ nova_data_image_full }}"
volumes:
- "/var/lib/nova/instances"
- "/var/lib/libvirt"
- name: Starting Nova bootstrap container
docker:
tty: True

View File

@ -1,4 +1,22 @@
---
- name: Starting Nova data container
docker:
tty: True
net: host
pull: "{{ docker_pull_policy }}"
restart_policy: "{{ docker_restart_policy }}"
restart_policy_retry: "{{ docker_restart_policy_retry }}"
state: reloaded
registry: "{{ docker_registry }}"
username: "{{ docker_registry_username }}"
password: "{{ docker_registry_password }}"
insecure_registry: "{{ docker_insecure_registry }}"
name: nova_data
image: "{{ nova_data_image_full }}"
volumes:
- "/var/lib/nova/instances"
- "/var/lib/libvirt"
- name: Starting Nova-libvirt container
docker:
tty: True