f5a50a1d7d
Configuration based off upstream documentation here: http://docs.openstack.org/developer/ironic/deploy/install-guide.html A few notes: -ironic-api is not configured to use mod_wsgi -several places it's noted that discoverd is going away and needs to be replaced with ironic-inspector - (sqlite connection should be changed too) -currently enabling ironic reconfigures nova compute (driver and scheduler) as well as changes neutron network settings -a nice enhancement would be to configure the web console Required post-deployment configuration: Create the flat network to launch the instances: neutron net-create --tenant-id $TENANT_ID sharednet1 --shared \ --provider:network_type flat --provider:physical_network physnet1 neutron subnet-create sharednet1 $NETWORK_CIDR --name $SUBNET_NAME \ --ip-version=4 --gateway=$GATEWAY_IP --allocation-pool \ start=$START_IP,end=$END_IP --enable-dhcp And then the above ID is used to set cleaning_network_uuid in the neutron section of ironic.conf. Change-Id: I572e7ff1f23c4e57a2c50817cafe9269fd9950dd Implements: blueprint ironic-container
79 lines
3.8 KiB
YAML
79 lines
3.8 KiB
YAML
---
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "ironic-api"
|
|
config_source:
|
|
- "roles/ironic/templates/ironic.conf.j2"
|
|
- "/etc/kolla/config/global.conf"
|
|
- "/etc/kolla/config/database.conf"
|
|
- "/etc/kolla/config/messaging.conf"
|
|
- "/etc/kolla/config/{{ project_name }}.conf"
|
|
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/ironic.conf"
|
|
when: inventory_hostname in groups['ironic-api']
|
|
|
|
- name: Copying Ironic API JSON configuration file
|
|
template:
|
|
src: "roles/ironic/templates/ironic-api.json.j2"
|
|
dest: "{{ node_config_directory }}/ironic-api/config.json"
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "ironic-conductor"
|
|
config_source:
|
|
- "roles/ironic/templates/ironic.conf.j2"
|
|
- "/etc/kolla/config/global.conf"
|
|
- "/etc/kolla/config/database.conf"
|
|
- "/etc/kolla/config/messaging.conf"
|
|
- "/etc/kolla/config/{{ project_name }}.conf"
|
|
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/ironic.conf"
|
|
when: inventory_hostname in groups['ironic-conductor']
|
|
|
|
- name: Copying Ironic conductor JSON configuration file
|
|
template:
|
|
src: "roles/ironic/templates/ironic-conductor.json.j2"
|
|
dest: "{{ node_config_directory }}/ironic-conductor/config.json"
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "ironic-discoverd"
|
|
config_source:
|
|
- "roles/ironic/templates/discoverd.conf.j2"
|
|
- "/etc/kolla/config/global.conf"
|
|
- "/etc/kolla/config/database.conf"
|
|
- "/etc/kolla/config/messaging.conf"
|
|
- "/etc/kolla/config/{{ project_name }}/discoverd.conf"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/discoverd.conf_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/discoverd.conf_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/discoverd.conf"
|
|
when: inventory_hostname in groups['ironic-discoverd']
|
|
|
|
- name: Copying Ironic discoverd JSON configuration file
|
|
template:
|
|
src: "roles/ironic/templates/ironic-discoverd.json.j2"
|
|
dest: "{{ node_config_directory }}/ironic-discoverd/config.json"
|
|
|
|
- name: Copying Ironic PXE JSON configuration file
|
|
template:
|
|
src: "roles/ironic/templates/ironic-pxe.json.j2"
|
|
dest: "{{ node_config_directory }}/ironic-pxe/config.json"
|