30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
---
|
|
|
|
network_interface: "virbr0"
|
|
ans_network_interface: "{{ network_interface | replace('-', '_') }}"
|
|
internal_ip: "{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}"
|
|
|
|
enable_tls: false
|
|
|
|
# Service URLs used for communication with them.
|
|
api_protocol: "{{ 'https' if enable_tls | bool else 'http' }}"
|
|
ironic_api_url: "{{ api_protocol }}://{{ internal_ip }}:6385"
|
|
ironic_inspector_api_url: "{{ api_protocol }}://{{ internal_ip }}:5050"
|
|
|
|
# Ensure that Ansible is using python interpreter and dependencies inside the bifrost virtual environment
|
|
bifrost_venv_dir: "{{ lookup('env', 'VENV') or '/opt/stack/bifrost' }}"
|
|
ansible_python_interpreter: "{{ bifrost_venv_dir + '/bin/python3' }}"
|
|
|
|
enable_keystone: false
|
|
noauth_mode: true
|
|
|
|
# Directory (on the controller) to keep the passwords
|
|
password_dir: "{{ lookup('env', 'HOME') }}/.config/bifrost"
|
|
|
|
# Various credentials
|
|
default_username: bifrost_user
|
|
default_password: "{{ lookup('password', password_dir + '/default_password') }}"
|
|
|
|
admin_username: admin
|
|
admin_password: "{{ lookup('password', password_dir + '/admin_password') }}"
|