prototypes: bifrost: Fix Ironic drivers for VMs
[releng.git] / prototypes / bifrost / playbooks / roles / bifrost-ironic-install / templates / ironic.conf.j2
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
5
6
7 [DEFAULT]
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
14 debug = true
15 {% else %}
16 enabled_drivers = {{ enabled_drivers }}
17 debug = false
18 {% endif %}
19
20 rabbit_userid = ironic
21 rabbit_password = {{ ironic_db_password }}
22
23 {% if enable_keystone is defined and enable_keystone | bool == true %}
24 auth_strategy = keystone
25 {% else %}
26 auth_strategy = noauth
27 {% endif %}
28
29 [pxe]
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'] }}
33 tftp_root = /tftpboot
34 pxe_bootfile_name = undionly.kpxe
35 ipxe_enabled = true
36 ipxe_boot_script = /etc/ironic/boot.ipxe
37
38 [deploy]
39 http_url = http://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:{{ file_url_port }}/
40 http_root = {{ http_boot_folder }}
41
42 [conductor]
43 api_url = http://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:6385/
44 clean_nodes = {{ cleaning | lower }}
45 automated_clean = {{ cleaning | lower }}
46
47 [database]
48 connection = mysql+pymysql://ironic:{{ ironic_db_password }}@localhost/ironic?charset=utf8
49 min_pool_size = 1
50 max_pool_size = 5
51
52 [dhcp]
53 dhcp_provider = none
54
55 {% if testing | bool == true %}
56 [ssh]
57 libvirt_uri = qemu:///system
58 {% endif %}
59
60 {% if enable_cors | bool == true %}
61 [cors]
62 allowed_origin = {{ cors_allowed_origin | default('allowed_origin=http://localhost:8000') }}
63 allow_credentials = {{ enable_cors_credential_support | default('true') }}
64 {% endif %}
65
66 [ilo]
67 use_web_server_for_images = true
68
69 {% if enable_inspector | bool == true %}
70 [inspector]
71 enabled = true
72 {% endif %}
73
74 {% if enable_keystone is defined and enable_keystone | bool == true %}
75 [keystone]
76 region_name = {{ keystone.bootstrap.region_name | default('RegionOne')}}
77 [keystone_authtoken]
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
85
86 [service_catalog]
87 auth_url = {{ ironic.service_catalog.auth_url }}
88 auth_type = password
89 tenant_name = {{ ironic.service_catalog.project_name }}
90 username = {{ ironic.service_catalog.username }}
91 password = {{ ironic.service_catalog.password }}
92 {% endif %}