diff options
| author | Paul Bourke <paul.bourke@oracle.com> | 2018-04-13 17:17:04 +0100 |
|---|---|---|
| committer | Paul Bourke <paul.bourke@oracle.com> | 2018-04-13 17:17:04 +0100 |
| commit | e5a8481847fc234dba25fa10993e2ccc134a8916 (patch) | |
| tree | 1a20794ae29245bdacfe57160565208a5f22dcdf /tools/init-runonce | |
| parent | ed9854248f294a55d8804406c09700166184ad7d (diff) | |
| download | kolla-ansible-e5a8481847fc234dba25fa10993e2ccc134a8916.tar.gz kolla-ansible-e5a8481847fc234dba25fa10993e2ccc134a8916.zip | |
Simplify init-runonce boot command
openstack cli now supports --network foo rather than having to find the
network uuid. Thanks to mgoddard for the tip.
Change-Id: I9ce94a86c6950b81ef3ec70fe10ee565cc1f1171
Diffstat (limited to 'tools/init-runonce')
| -rwxr-xr-x | tools/init-runonce | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/init-runonce b/tools/init-runonce index 4ef74aaac..fca5012a7 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -128,8 +128,6 @@ if ! openstack flavor list | grep -q m1.tiny; then openstack flavor create --id 5 --ram 16384 --disk 160 --vcpus 8 m1.xlarge fi -DEMO_NET_ID=$(openstack network list | awk '/ demo-net / {print $2}') - cat << EOF Done. @@ -140,6 +138,6 @@ openstack server create \\ --image ${IMAGE_NAME} \\ --flavor m1.tiny \\ --key-name mykey \\ - --nic net-id=${DEMO_NET_ID} \\ + --network demo-net \\ demo1 EOF |
