Add example enrolling nodes with neutron NI
This patch adds service metadata layer example to create
nodes with neutron and flat network interfaces.
Change-Id: Ib220dbddccb02577a5a3706956c53f302481f4eb
diff --git a/metadata/service/nodes_neutron.yml b/metadata/service/nodes_neutron.yml
new file mode 100644
index 0000000..221bb21
--- /dev/null
+++ b/metadata/service/nodes_neutron.yml
@@ -0,0 +1,88 @@
+applications:
+ - baremetal_simulator
+parameters:
+ ironic:
+ client:
+ enabled: true
+ nodes:
+ admin_identity:
+ - name: ${linux:network:hostname}-n0
+ driver: pxe_ipmitool
+ properties:
+ local_gb: 10
+ cpus: 2
+ memory_mb: 1024
+ cpu_arch: x86_64
+ driver_info:
+ ipmi_username: admin
+ ipmi_password: password
+ ipmi_address: ${_param:single_address}
+ ipmi_port: 6200
+ deploy_ramdisk: http://${_param:single_baremetal_address}/${baremetal_simulator:deploy_ramdisk_file}
+ deploy_kernel: http://${_param:single_baremetal_address}/${baremetal_simulator:deploy_kernel_file}
+ network_interface: 'neutron'
+ ironic_api_version: '1.20'
+ ports:
+ - address: aa:bb:cc:dd:00:00
+ local_link_connection:
+ switch_id: 00:00:00:00:00:00
+ switch_info: br-simulator
+ port_id: tap-bmt-n0i1
+ ironic_api_version: '1.19'
+ - address: aa:bb:cc:dd:00:01
+ local_link_connection:
+ switch_id: 00:00:00:00:00:00
+ switch_info: br-simulator
+ port_id: tap-bmt-n0i2
+ ironic_api_version: '1.19'
+ - name: ${linux:network:hostname}-n1
+ driver: pxe_ipmitool
+ properties:
+ local_gb: 10
+ cpus: 2
+ memory_mb: 1024
+ cpu_arch: x86_64
+ driver_info:
+ ipmi_username: admin
+ ipmi_password: password
+ ipmi_address: ${_param:single_address}
+ ipmi_port: 6201
+ deploy_ramdisk: http://${_param:single_baremetal_address}/${baremetal_simulator:deploy_ramdisk_file}
+ deploy_kernel: http://${_param:single_baremetal_address}/${baremetal_simulator:deploy_kernel_file}
+ network_interface: 'neutron'
+ ironic_api_version: '1.20'
+ ports:
+ - address: aa:bb:cc:dd:01:00
+ local_link_connection:
+ switch_id: 00:00:00:00:00:00
+ switch_info: br-simulator
+ port_id: tap-bmt-n1i1
+ ironic_api_version: '1.19'
+ deployment_profile:
+ network:
+ fixed_ips:
+ - ip_address: 192.168.90.111
+ subnet_name: baremetal-subnet
+ - name: ${linux:network:hostname}-n2
+ driver: pxe_ipmitool
+ properties:
+ local_gb: 10
+ cpus: 2
+ memory_mb: 1024
+ cpu_arch: x86_64
+ driver_info:
+ ipmi_username: admin
+ ipmi_password: password
+ ipmi_address: ${_param:single_address}
+ ipmi_port: 6202
+ deploy_ramdisk: http://${_param:single_baremetal_address}/${baremetal_simulator:deploy_ramdisk_file}
+ deploy_kernel: http://${_param:single_baremetal_address}/${baremetal_simulator:deploy_kernel_file}
+ network_interface: 'neutron'
+ ironic_api_version: '1.20'
+ ports:
+ - address: aa:bb:cc:dd:02:00
+ local_link_connection:
+ switch_id: 00:00:00:00:00:00
+ switch_info: br-simulator
+ port_id: tap-bmt-n2i1
+ ironic_api_version: '1.19'