Permalink
Browse files

forgot secgroups

  • Loading branch information...
erasche committed Sep 28, 2017
1 parent 3a1a1f7 commit bee93bfddc6df37147defeeeacbe8e6c1ba77ca1
Showing with 2 additions and 1 deletion.
  1. +2 −1 ensure-enough.py
@@ -27,7 +27,7 @@
SSHKEY = 'cloud2'
NETWORK = [network for network in nova.networks.list()
if network.human_id == 'galaxy-net'][0]
SECGROUPS = 'ufr-only-v2'
SECGROUPS = ['ufr-only-v2']
# And some maps of human-name:object
FLAVORS = {flavor.name: flavor for flavor in nova.flavors.list()}
IMAGES = {image.name: image for image in glance.images.list()}
@@ -137,6 +137,7 @@ def launch_server(name, flavor):
flavor=flavor,
key_name=SSHKEY,
availability_zone='nova',
security_groups=SECGROUPS,
nics=[{'net-id': NETWORK.id}],
))

0 comments on commit bee93bf

Please sign in to comment.