Add Ironic network
The patch connects additional ironic network to the following servers:
* workerks
* gateways
* computes
* spares
Related-Prod: PRODX-4769
Change-Id: I3d28eec496023759a219386ab15d80c79ba442a2
diff --git a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
index f78a198..446c75b 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
@@ -46,6 +46,12 @@
type: string
control_network_cidr:
type: string
+ ironic_baremetal_network:
+ type: string
+ ironic_baremetal_subnet_id:
+ type: string
+ ironic_baremetal_interface:
+ type: string
functions_override:
type: string
boot_timeout:
@@ -102,6 +108,8 @@
$storage_backend_interface: { get_param: storage_backend_interface }
$storage_backend_network_interface_ip: { get_attr: [storage_backend_server_port, fixed_ips, 0, ip_address] }
$storage_backend_network_cidr: { get_param: storage_backend_network_cidr }
+ $ironic_baremetal_interface: { get_param: ironic_baremetal_interface }
+ $ironic_baremetal_interface_ip: { get_attr: [ironic_baremetal_server_port, fixed_ips, 0, ip_address] }
inject_files:
type: "OS::Heat::CloudConfig"
@@ -137,6 +145,7 @@
- port: { get_resource: private_floating_server_port }
- port: { get_resource: storage_frontend_server_port }
- port: { get_resource: storage_backend_server_port }
+ - port: { get_resource: ironic_baremetal_server_port }
user_data_format: SOFTWARE_CONFIG
user_data: { get_resource: install_config_agent}
metadata: { get_param: metadata }
@@ -179,6 +188,14 @@
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: accessible_server_port }
+ ironic_baremetal_server_port:
+ type: OS::Neutron::Port
+ properties:
+ network_id: { get_param: ironic_baremetal_network }
+ port_security_enabled: false
+ fixed_ips:
+ - subnet: { get_param: ironic_baremetal_subnet_id }
+
wait_handle:
type: OS::Heat::WaitConditionHandle
wait_condition: