73063732aa
Adds two new variables, 'openstack_release' and 'openstack_branch', in ${KAYOBE_CONFIG_PATH}/openstack.yml for setting the current OpenStack release and branch in a single place. Also uses the master branch for the molecule tox job. Change-Id: I851a1e6eddc6738005c1813599445b38c0ae0d57
54 lines
2.2 KiB
Plaintext
54 lines
2.2 KiB
Plaintext
---
|
|
###############################################################################
|
|
# OpenStack release configuration.
|
|
|
|
# Name of the current OpenStack release. Default is "master".
|
|
openstack_release: "master"
|
|
|
|
# Name of the current OpenStack branch. Default is "master".
|
|
openstack_branch: >-
|
|
{% if openstack_release != 'master' %}stable/{% endif %}{{ openstack_release | lower }}
|
|
|
|
###############################################################################
|
|
# OpenStack authentication configuration.
|
|
|
|
# Overcloud authentication type. This should be a string compatible with the
|
|
# 'auth_type' argument of most 'os_*' Ansible modules.
|
|
openstack_auth_type: "password"
|
|
|
|
# Overcloud authentication parameters. This should be a dict providing items
|
|
# compatible with the 'auth' argument of most 'os_*' Ansible modules.
|
|
# By default we pull these from the environment of the shell executing Ansible.
|
|
openstack_auth:
|
|
project_domain_name: "{{ lookup('env', 'OS_PROJECT_DOMAIN_NAME') }}"
|
|
user_domain_name: "{{ lookup('env', 'OS_USER_DOMAIN_NAME') }}"
|
|
project_name: "{{ lookup('env', 'OS_PROJECT_NAME') }}"
|
|
username: "{{ lookup('env', 'OS_USERNAME') }}"
|
|
password: "{{ lookup('env', 'OS_PASSWORD') }}"
|
|
auth_url: "{{ lookup('env', 'OS_AUTH_URL') }}"
|
|
|
|
# Overcloud CA certificate path.
|
|
openstack_cacert: "{{ lookup('env', 'OS_CACERT') }}"
|
|
|
|
# Overcloud authentication environment variables. These should be compatible
|
|
# with the openstack client.
|
|
# By default we pull these from the environment of the shell executing Ansible.
|
|
openstack_auth_env:
|
|
OS_PROJECT_DOMAIN_NAME: "{{ lookup('env', 'OS_PROJECT_DOMAIN_NAME') }}"
|
|
OS_USER_DOMAIN_NAME: "{{ lookup('env', 'OS_USER_DOMAIN_NAME') }}"
|
|
OS_PROJECT_NAME: "{{ lookup('env', 'OS_PROJECT_NAME') }}"
|
|
OS_USERNAME: "{{ lookup('env', 'OS_USERNAME') }}"
|
|
OS_PASSWORD: "{{ lookup('env', 'OS_PASSWORD') }}"
|
|
OS_AUTH_URL: "{{ lookup('env', 'OS_AUTH_URL') }}"
|
|
OS_INTERFACE: "{{ lookup('env', 'OS_INTERFACE') }}"
|
|
OS_IDENTITY_API_VERSION: "{{ lookup('env', 'OS_IDENTITY_API_VERSION') }}"
|
|
OS_CACERT: "{{ lookup('env', 'OS_CACERT') }}"
|
|
|
|
# List of parameters required in openstack_auth when openstack_auth_type is
|
|
# password.
|
|
openstack_auth_password_required_params:
|
|
- "project_name"
|
|
- "username"
|
|
- "password"
|
|
- "auth_url"
|