Update inventory group/user_secrets for inspector change in Ironic

This adds two new secrets for the new inspector configuratiion.

Change-Id: Iaed7027a6a8d5e158300c9d5aa21ec4c4f1ea81a
This commit is contained in:
Cameron Loader 2019-09-05 19:41:26 -05:00
parent 55946f1582
commit 97d448f22d
7 changed files with 50 additions and 4 deletions

View File

@ -8,3 +8,7 @@ ironic-infra_hosts:
ironic-compute_hosts:
aio1:
ip: 172.29.236.100
ironic-inspector_hosts:
aio1:
ip: 172.29.236.100

View File

@ -284,3 +284,9 @@ manila_service_password:
# Placement Options
placement_service_password:
placement_galera_password:
#Ironic Inspector options:
ironic_inspector_container_mysql_password:
ironic_inspector_service_password:
ironic_inspector_swift_password:

View File

@ -28,7 +28,9 @@ component_skel:
ironic_compute:
belongs_to:
- nova_all
ironic_inspector:
belongs_to:
- ironic_all
container_skel:
ironic_api_container:
@ -55,7 +57,11 @@ container_skel:
- neutron_openvswitch_agent
properties:
is_metal: false
ironic_inspector_container:
belongs_to:
- ironic-inspector_containers
contains:
- ironic_inspector
physical_skel:
ironic-infra_containers:
@ -76,3 +82,9 @@ physical_skel:
ironic-compute_hosts:
belongs_to:
- hosts
ironic-inspector_containers:
belongs_to:
- all_containers
ironic-inspector_hosts:
belongs_to:
- hosts

View File

@ -245,6 +245,15 @@ haproxy_default_services:
haproxy_backend_options:
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_service_enabled: "{{ groups['ironic_api'] is defined and groups['ironic_api'] | length > 0 }}"
- service:
haproxy_service_name: ironic_inspector
haproxy_backend_nodes: "{{ groups['ironic_inspector'] | default([]) }}"
haproxy_ssl: "{{ haproxy_ssl }}"
haproxy_port: 5050
haproxy_balance_type: http
haproxy_backend_options:
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_service_enabled: "{{ groups['ironic_inspector'] is defined and groups['ironic_inspector'] | length > 0 }}"
- service:
haproxy_service_name: rabbitmq_mgmt
haproxy_backend_nodes: "{{ groups['rabbitmq'] | default([]) }}"

View File

@ -73,7 +73,6 @@ ceilometer_collector
ceph-mon
ceph-osd
ceph-rgw
[ceph-mon]
[ceph-osd]
[ceph-rgw]
@ -122,10 +121,12 @@ ironic_api
ironic_compute
ironic_conductor
ironic_server
ironic_inspector
[ironic_api]
[ironic_compute]
[ironic_conductor]
[ironic_server]
[ironic_inspector]
[keystone_all]
@ -243,4 +244,3 @@ swift_remote
[tacker_all]
[trove_all]

View File

@ -155,6 +155,11 @@ ironic_wsgi_threads: 1
ironic_wsgi_processes_max: 2
ironic_wsgi_processes: 1
## Ironic Inspector
ironic_inspector_wsgi_threads: 1
ironic_inspector_wsgi_processes_max: 2
ironic_inspector_wsgi_processes: 1
## Trove
trove_api_workers_max: 2
trove_service_net_setup: true
@ -261,3 +266,8 @@ deployment_environment_variables:
# must go via the http proxy
lxc_container_networks: {}
{% endif %}
{% if 'ironic' in bootstrap_host_scenario %}
# The ironic inspector DHCP address that hands out DHCP offers
ironic_inspector_dhcp_address: 192.168.0.100
{% endif %}

View File

@ -258,6 +258,11 @@ class TestAnsibleInventoryFormatConstraints(unittest.TestCase):
'ironic-compute_containers',
'ironic-compute_all',
'ironic-compute_hosts',
'ironic-inspector_all',
'ironic_inspector',
'ironic-inspector_containers',
'ironic-inspector_hosts',
'ironic_inspector_container',
'key-manager_containers',
'key-manager_hosts',
'key-manager_all',