1 # {{ ansible_managed }}
2 # For additional details on configuring ironic, you may wish to reference
3 # the sample configuration file which can be located at
4 # http://git.openstack.org/cgit/openstack/ironic/tree/etc/ironic/ironic.conf.sample
8 # NOTE(TheJulia): Until Bifrost supports neutron or some other network
9 # configuration besides a flat network where bifrost orchustrates the
10 # control instead of ironic, noop is the only available network driver.
11 enabled_network_interfaces = noop
12 {% if testing | bool == true %}
13 enabled_drivers = agent_ipmitool,pxe_ipmitool
16 enabled_drivers = {{ enabled_drivers }}
20 rabbit_userid = ironic
21 rabbit_password = {{ ironic_db_password }}
23 {% if enable_keystone is defined and enable_keystone | bool == true %}
24 auth_strategy = keystone
26 auth_strategy = noauth
30 pxe_append_params = systemd.journald.forward_to_console=yes {{ extra_kernel_options | default('') }}
31 pxe_config_template = $pybasedir/drivers/modules/ipxe_config.template
32 tftp_server = {{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}
34 pxe_bootfile_name = undionly.kpxe
36 ipxe_boot_script = /etc/ironic/boot.ipxe
39 http_url = http://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:{{ file_url_port }}/
40 http_root = {{ http_boot_folder }}
43 api_url = http://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:6385/
44 clean_nodes = {{ cleaning | lower }}
45 automated_clean = {{ cleaning | lower }}
48 connection = mysql+pymysql://ironic:{{ ironic_db_password }}@localhost/ironic?charset=utf8
55 {% if testing | bool == true %}
57 libvirt_uri = qemu:///system
60 {% if enable_cors | bool == true %}
62 allowed_origin = {{ cors_allowed_origin | default('allowed_origin=http://localhost:8000') }}
63 allow_credentials = {{ enable_cors_credential_support | default('true') }}
67 use_web_server_for_images = true
69 {% if enable_inspector | bool == true %}
74 {% if enable_keystone is defined and enable_keystone | bool == true %}
76 region_name = {{ keystone.bootstrap.region_name | default('RegionOne')}}
78 auth_plugin = password
79 auth_url = {{ ironic.service_catalog.auth_url }}
80 username = {{ ironic.service_catalog.username }}
81 password = {{ ironic.service_catalog.password }}
82 user_domain_id = default
83 project_name = {{ ironic.service_catalog.project_name }}
84 project_domain_id = default
87 auth_url = {{ ironic.service_catalog.auth_url }}
89 tenant_name = {{ ironic.service_catalog.project_name }}
90 username = {{ ironic.service_catalog.username }}
91 password = {{ ironic.service_catalog.password }}