6deec581ac
When running configuration steps for octavia in octavia nodes, use internal endpoints since public endpoints may not be available due to network topology (spine-leaf network + octavia in networkers). Depends-On: https://review.opendev.org/#/c/669195/ Closes-Bug: #1835171 Change-Id: I242f7bb718b08724da21cafa86d3e8853d0ff453
100 lines
3.5 KiB
YAML
100 lines
3.5 KiB
YAML
---
|
|
- hosts: Undercloud[0]
|
|
remote_user: stack
|
|
gather_facts: true
|
|
vars:
|
|
amp_ssh_key_name: "{{ amp_ssh_key_name }}"
|
|
amp_ssh_key_path: "{{ amp_ssh_key_path }}"
|
|
amp_ssh_key_data: "{{ amp_ssh_key_data }}"
|
|
amp_to_raw: "{{ amp_to_raw | bool }}"
|
|
auth_username: "{{ auth_username }}"
|
|
auth_password: "{{ auth_password }}"
|
|
auth_project_name: "{{ auth_project_name }}"
|
|
environment:
|
|
OS_USERNAME: "{{ os_username }}"
|
|
OS_USER_DOMAIN_NAME: "Default"
|
|
OS_PROJECT_DOMAIN_NAME: "Default"
|
|
NOVA_VERSION: "1.1"
|
|
OS_PROJECT_NAME: "{{ os_project_name }}"
|
|
OS_PASSWORD: "{{ os_password }}"
|
|
COMPUTE_API_VERSION: "1.1"
|
|
OS_CLOUDNAME: "overcloud"
|
|
OS_AUTH_URL: "{{ os_auth_url }}"
|
|
OS_IDENTITY_API_VERSION: "{{ os_identity_api_version }}"
|
|
OS_IMAGE_API_VERSION: "2"
|
|
OS_AUTH_TYPE: "{{ os_auth_type }}"
|
|
roles:
|
|
- octavia-undercloud
|
|
|
|
- hosts: octavia_nodes[0]
|
|
gather_facts: true
|
|
vars:
|
|
generate_certs: "{{ generate_certs }}"
|
|
octavia_confd_prefix: "/var/lib/config-data/puppet-generated/octavia"
|
|
openssl_temp_dir: "/tmp/octavia-ssl"
|
|
ca_cert_path: "{{ ca_cert_path }}"
|
|
ca_private_key_path: "{{ ca_private_key_path }}"
|
|
ca_passphrase: "{{ ca_passphrase }}"
|
|
client_cert_path: "{{ client_cert_path }}"
|
|
auth_project_name: "{{ auth_project_name }}"
|
|
auth_username: "{{ auth_username }}"
|
|
auth_password: "{{ auth_password }}"
|
|
environment:
|
|
OS_USERNAME: "{{ os_username }}"
|
|
OS_USER_DOMAIN_NAME: "Default"
|
|
OS_PROJECT_DOMAIN_NAME: "Default"
|
|
NOVA_VERSION: "1.1"
|
|
OS_PROJECT_NAME: "{{ os_project_name }}"
|
|
OS_PASSWORD: "{{ os_password }}"
|
|
COMPUTE_API_VERSION: "1.1"
|
|
OS_CLOUDNAME: "overcloud"
|
|
OS_AUTH_URL: "{{ os_int_auth_url }}"
|
|
OS_INTERFACE: "internal"
|
|
OS_ENDPOINT_TYPE: "internal"
|
|
OS_IDENTITY_API_VERSION: "{{ os_identity_api_version }}"
|
|
OS_IMAGE_API_VERSION: "2"
|
|
OS_AUTH_TYPE: "{{ os_auth_type }}"
|
|
roles:
|
|
- octavia-overcloud-config
|
|
|
|
- hosts: octavia_nodes
|
|
gather_facts: true
|
|
vars:
|
|
octavia_confd_prefix: "/var/lib/config-data/puppet-generated/octavia"
|
|
lb_mgmt_net_id: "{{ hostvars[groups['octavia_nodes'][0]]['lb_mgmt_net_id'] }}"
|
|
lb_mgmt_secgroup_id: "{{ hostvars[groups['octavia_nodes'][0]]['lb_mgmt_secgroup_id'] }}"
|
|
private_key_content: "{{ hostvars[groups['octavia_nodes'][0]]['private_key_content'] }}"
|
|
ca_cert_content: "{{ hostvars[groups['octavia_nodes'][0]]['ca_cert_content'] }}"
|
|
service_pem_content: "{{ hostvars[groups['octavia_nodes'][0]]['service_pem_content'] }}"
|
|
generate_certs: "{{ generate_certs }}"
|
|
ca_cert_path: "{{ ca_cert_path }}"
|
|
ca_private_key_path: "{{ ca_private_key_path }}"
|
|
ca_passphrase: "{{ ca_passphrase }}"
|
|
client_cert_path: "{{ client_cert_path }}"
|
|
auth_project_name: "{{ auth_project_name }}"
|
|
environment:
|
|
OS_USERNAME: "{{ os_username }}"
|
|
OS_USER_DOMAIN_NAME: "Default"
|
|
OS_PROJECT_DOMAIN_NAME: "Default"
|
|
NOVA_VERSION: "1.1"
|
|
OS_PROJECT_NAME: "{{ os_project_name }}"
|
|
OS_PASSWORD: "{{ os_password }}"
|
|
COMPUTE_API_VERSION: "1.1"
|
|
OS_CLOUDNAME: "overcloud"
|
|
OS_AUTH_URL: "{{ os_int_auth_url }}"
|
|
OS_INTERFACE: "internal"
|
|
OS_ENDPOINT_TYPE: "internal"
|
|
OS_IDENTITY_API_VERSION: "{{ os_identity_api_version }}"
|
|
OS_IMAGE_API_VERSION: "2"
|
|
OS_AUTH_TYPE: "{{ os_auth_type }}"
|
|
roles:
|
|
- octavia-controller-config
|
|
|
|
- hosts: octavia_nodes
|
|
gather_facts: true
|
|
vars:
|
|
octavia_confd_prefix: "/var/lib/config-data/puppet-generated/octavia"
|
|
container_cli: "{{ container_cli }}"
|
|
roles:
|
|
- octavia-controller-post-config
|