9451adb165
In order to reduce the packages required to pip install on to the hosts, we allow the service setup to be delegated to a specific host, defaulting to the deploy host. We also switch as many tasks as possible to using the built-in Ansible modules which make use of the shade library. The openstack_openrc role is now executed once on the designated host, so it is no longer necessary to execute it using include_role here. The zun_requires_pip_packages variable is not used and is therefore removed. Depends-On: https://review.openstack.org/579233 Depends-On: https://review.openstack.org/579959 Change-Id: I7108b43109136aac46bc87a0c59827a202f87be8
32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
---
|
|
# Copyright 2018, 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: Installation and setup of Zun
|
|
hosts: zun_all
|
|
remote_user: root
|
|
roles:
|
|
- role: "os_zun"
|
|
zun_rabbitmq_password: secrete
|
|
zun_galera_password: secrete
|
|
zun_service_password: secrete
|
|
zun_kuryr_service_password: secrete
|
|
zun_developer_mode: true
|
|
zun_rabbitmq_servers: "{{ hostvars[groups['rabbitmq_all'][0]]['ansible_host'] }}"
|
|
zun_service_publicuri: "http://{{ hostvars[groups['keystone_all'][0]]['ansible_host'] }}:9517"
|
|
zun_service_adminuri: "http://{{ hostvars[groups['keystone_all'][0]]['ansible_host'] }}:9517"
|
|
zun_service_internaluri: "http://{{ hostvars[groups['keystone_all'][0]]['ansible_host'] }}:9517"
|
|
tags:
|
|
- "os-zun"
|