Merge "xci: Ensure using flavor inventory"
[releng.git] / prototypes / bifrost / playbooks / roles / bifrost-ironic-install / templates / ironic-inspector.conf.j2
1 {#
2 # Note(TheJulia): This file is based upon the file format provided by the git
3 # committed example located at:
4 # http://git.openstack.org/cgit/openstack/ironic-inspector/tree/example.conf
5 #}
6 [DEFAULT]
7 {% if enable_keystone is defined and enable_keystone | bool == true %}
8 auth_strategy = keystone
9 {% else %}
10 auth_strategy = {{ inspector_auth | default('noauth') }}
11 {% endif %}
12 debug = {{ inspector_debug | bool }}
13
14 [database]
15 connection=mysql+pymysql://inspector:{{ ironic_db_password }}@localhost/inspector?charset=utf8
16 min_pool_size = 1
17 max_pool_size = 5
18
19 [firewall]
20 manage_firewall = {{ inspector_manage_firewall | bool | default('false') }}
21
22 [ironic]
23 {% if enable_keystone is defined and enable_keystone | bool == true %}
24 os_region = {{ keystone.bootstrap.region_name | default('RegionOne') }}
25 project_name = baremetal
26 username = {{ ironic_inspector.keystone.default_username }}
27 password = {{ ironic_inspector.keystone.default_password }}
28 auth_url = {{ ironic_inspector.service_catalog.auth_url }}
29 auth_type = password
30 auth_strategy = keystone
31 user_domain_id = default
32 project_domain_id = default
33
34 {% else %}
35 auth_strategy = {{ ironic_auth_strategy | default('noauth') }}
36 {% endif %}
37
38 {% if enable_keystone is defined and enable_keystone | bool == true %}
39 [keystone_authtoken]
40 auth_plugin = password
41 auth_url = {{ ironic_inspector.service_catalog.auth_url }}
42 username = {{ ironic_inspector.service_catalog.username }}
43 password = {{ ironic_inspector.service_catalog.password }}
44 user_domain_id = default
45 project_name = service
46 project_domain_id = default
47
48 {% endif %}
49 {#
50 # Note(TheJulia) preserving ironic_url in the configuration
51 # in case future changes allow breaking of the deployment across
52 # multiple nodes.
53 #ironic_url = http://localhost:6385/
54 #}
55
56 [processing]
57 add_ports = {{ inspector_port_addition | default('pxe') }}
58 keep_ports = {{ inspector_keep_ports | default('present') }}
59 ramdisk_logs_dir = {{ inspector_data_dir }}/log
60 always_store_ramdisk_logs = {{ inspector_store_ramdisk_logs | default('true') | bool }}
61 {% if inspector.discovery.enabled == true %}
62 node_not_found_hook = enroll
63
64 [discovery]
65 enroll_node_driver = {{ inspector.discovery.default_node_driver }}
66 {% endif %}