-function launch_baremetal_operator {
- docker pull integratedcloudnative/baremetal-operator:v1.0-icn
- kubectl apply -f bmo/namespace/namespace.yaml
- kubectl apply -f bmo/rbac/service_account.yaml -n metal3
- kubectl apply -f bmo/rbac/role.yaml -n metal3
- kubectl apply -f bmo/rbac/role_binding.yaml
- kubectl apply -f bmo/crds/metal3.io_baremetalhosts_crd.yaml
- kubectl apply -f bmo/operator/no_ironic/operator.yaml -n metal3
-}
-
-function remove_baremetal_operator {
- kubectl delete -f bmo/operator/no_ironic/operator.yaml -n metal3
- kubectl delete -f bmo/crds/metal3.io_baremetalhosts_crd.yaml
- kubectl delete -f bmo/rbac/role_binding.yaml
- kubectl delete -f bmo/rbac/role.yaml -n metal3
- kubectl delete -f bmo/rbac/service_account.yaml -n metal3
- kubectl delete -f bmo/namespace/namespace.yaml
-}
-
-function network_config_files {
+create_networkdata() {
+ name="$1"
+ node_networkdata $name > $name-networkdata.json
+}
+
+function cloud_init_scripts {
+ # set_dhcp_indentifier.sh:
+ # The IP address assigned to the provisioning NIC will change
+ # due to IPA using the MAC address as the client ID and systemd
+ # using a different ID. Tell systemd to use the MAC as the
+ # client ID. We can't do this in the network data as only the
+ # JSON format is supported by metal3, and the JSON format does
+ # not support the dhcp-identifier field.
+ # set_kernel_cmdline.sh:
+ # The "intel_iommu=on iommu=pt" kernel command line is necessary
+ # for QAT support.