-function launch_baremetal_operator {
- if [ ! -d $GOPATH/src/github.com/metal3-io/baremetal-operator ]; then
- go get github.com/metal3-io/baremetal-operator
- git checkout 3d40caa29dce82878d83aeb7f8dab4dc4a856160
- fi
-
- pushd $GOPATH/src/github.com/metal3-io/baremetal-operator
- docker pull quay.io/metal3-io/baremetal-operator:master
- make deploy
- popd
-}
-
-function remove_baremetal_operator {
- if [ ! -d $GOPATH/src/github.com/metal3-io/baremetal-operator ]; then
- go get github.com/metal3-io/baremetal-operator
- git checkout 3d40caa29dce82878d83aeb7f8dab4dc4a856160
- fi
-
- pushd $GOPATH/src/github.com/metal3-io/baremetal-operator
- kubectl delete -f deploy/operator.yaml -n metal3
- kubectl delete -f deploy/crds/metal3_v1alpha1_baremetalhost_crd.yaml
- kubectl delete -f deploy/role_binding.yaml
- kubectl delete -f deploy/role.yaml -n metal3
- kubectl delete -f deploy/service_account.yaml -n metal3
- kubectl delete ns metal3
- docker rmi quay.io/metal3-io/baremetal-operator:master
- popd
-}
-
-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.