X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2Fvagrant%2Fcreate_machine_resource.sh;h=e1afdc20ab9180fc022a65767082fdb5a3debea4;hb=53692156832a326a5d1123e3284a3f8737ed395f;hp=006ad53a2ea21fdd35faa68c83491387ce19999d;hpb=b5e361cfb202f7e02cb91eac76ba553d074b93fe;p=icn.git diff --git a/tools/vagrant/create_machine_resource.sh b/tools/vagrant/create_machine_resource.sh index 006ad53..e1afdc2 100755 --- a/tools/vagrant/create_machine_resource.sh +++ b/tools/vagrant/create_machine_resource.sh @@ -9,16 +9,11 @@ ipmi_host=$(virsh -c qemu:///system net-dumpxml ${site}-baremetal | xmlstarlet s ipmi_port=$((6230+index-1)) boot_mac=$(virsh -c qemu:///system dumpxml "${site}-${name}" | xmlstarlet sel -t -v "//interface[source/@network='${site}-provisioning']/mac/@address") -if [[ ${index} == 1 ]]; then - mkdir -p build/site/${site} - cat <build/site/${site}/machines-values.yaml -machines: -EOF -fi -cat <>build/site/${site}/machines-values.yaml - machine-${index}: - bootMACAddress: ${boot_mac} - bmcAddress: ipmi://${ipmi_host}:${ipmi_port} - bmcUsername: admin - bmcPassword: password +mkdir -p build/site/${site} +cat <build/site/${site}/machine-${index}-values.yaml +machineName: machine-${index} +bootMACAddress: ${boot_mac} +bmcAddress: ipmi://${ipmi_host}:${ipmi_port} +bmcUsername: admin +bmcPassword: password EOF