bifrost/playbooks/roles/bifrost-cloud-config/defaults/main.yml

14 lines
595 B
YAML

---
noauth_mode: true
network_interface: "virbr0"
ans_network_interface: "{{ network_interface | replace('-', '_') }}"
# NOTE(dtantsur): dynamic playbooks are run on bare metal hosts, not on
# localhost, and the interface fact may not be available for them.
ans_interface_host: "{{ groups['target'][0] if 'target' in groups else '127.0.0.1' }}"
internal_ip: "{{ hostvars[ans_interface_host]['ansible_' + ans_network_interface]['ipv4']['address'] }}"
enable_tls: false
api_protocol: "{{ 'https' if enable_tls | bool else 'http' }}"
ironic_api_url: "{{ api_protocol }}://{{ internal_ip }}:6385"