5eea959ca9
The commit [1] allowed repo management for all hosts where openstack_hosts is applied, and commit [2] removed UCA from pip install, which applies to all the hosts, whether they are containers or not. We should therefore add UCA to containers back. [1]: https://review.openstack.org/#/c/515399 [2]: https://review.openstack.org/#/c/515400 Change-Id: I79ff70c438b44753be2a93f004ebbc46de0a963d
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
---
|
|
# Copyright 2015, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Gather facts for the LXC hosts
|
|
hosts: localhost
|
|
become: true
|
|
gather_facts: true
|
|
tasks:
|
|
- include: "common-tasks/test-set-nodepool-vars.yml"
|
|
|
|
- include: destroy_containers.yml
|
|
when: destroy_first | default(True) | bool
|
|
|
|
- name: Playbook for creating containers
|
|
hosts: all_containers
|
|
serial: 1
|
|
become: True
|
|
gather_facts: False
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- name: Create containers
|
|
include_role:
|
|
name: "lxc_container_create"
|
|
- name: Wait for container connectivity
|
|
wait_for_connection:
|
|
connect_timeout: "{{ lxc_container_wait_params.connect_timeout | default(omit) }}"
|
|
delay: "{{ lxc_container_wait_params.delay | default(omit) }}"
|
|
sleep: "{{ lxc_container_wait_params.sleep | default(omit) }}"
|
|
timeout: "{{ lxc_container_wait_params.timeout | default(omit) }}"
|
|
vars_files:
|
|
- test-vars.yml
|
|
|
|
# TODO(evrardjp): Move this as an include_role above like the patch
|
|
# https://review.openstack.org/525109
|
|
# when https://review.openstack.org/#/c/521598 is in,
|
|
# to optimize serialization
|
|
- name: Execute the openstack-host role on containers
|
|
hosts: all_containers
|
|
become: true
|
|
gather_facts: true
|
|
pre_tasks:
|
|
- include: "common-tasks/test-set-nodepool-vars.yml"
|
|
roles:
|
|
- role: "openstack_hosts"
|
|
vars_files:
|
|
- test-vars.yml
|