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_flat.yml b/metadata/service/nodes_flat.yml
new file mode 100644
index 0000000..0e1b96a
--- /dev/null
+++ b/metadata/service/nodes_flat.yml
@@ -0,0 +1,62 @@
+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}
+ ports:
+ - address: aa:bb:cc:dd:00:00
+ - address: aa:bb:cc:dd:00:01
+ - 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}
+ ports:
+ - address: aa:bb:cc:dd:01:00
+ 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}
+ ports:
+ - address: aa:bb:cc:dd:02:00