diff options
author | Mark Beierl <mark.beierl@emc.com> | 2016-05-26 11:14:05 -0400 |
---|---|---|
committer | Mark Beierl <mark.beierl@emc.com> | 2016-05-26 13:37:22 -0400 |
commit | 079986fca226ac8889c15ec2941fbd3aab7c011d (patch) | |
tree | 0b72b22e9f239d401673bb4fc590da0280149ebf | |
parent | 68b1262791f4d0e0ea5cf7caa16678ea72307527 (diff) |
Autocreate the key pair
Change-Id: Ib4b8cb92b4cbc7dd778363335b6d0e22ae1993fb
Signed-off-by: Mark Beierl <mark.beierl@emc.com>
-rw-r--r-- | storperf/resources/hot/agent-group.yaml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/storperf/resources/hot/agent-group.yaml b/storperf/resources/hot/agent-group.yaml index 4566f7a..fc98c23 100644 --- a/storperf/resources/hot/agent-group.yaml +++ b/storperf/resources/hot/agent-group.yaml @@ -20,9 +20,6 @@ parameters: agent_image: type: string default: 'StorPerf Ubuntu 14.04' - key_name: - type: string - default: StorPerf volume_size: type: number description: Size of the volume to be created. @@ -41,7 +38,8 @@ parameters: resources: slaves: type: OS::Heat::ResourceGroup - depends_on: [storperf_subnet, storperf_network_router_interface, storperf_open_security_group] + depends_on: [storperf_subnet, storperf_network_router_interface, + storperf_open_security_group, storperf_key_pair] properties: count: {get_param: agent_count} resource_def: { @@ -52,7 +50,7 @@ resources: flavor: {get_param: flavor}, image: {get_param: agent_image}, storperf_open_security_group: {get_resource: storperf_open_security_group}, - key_name: {get_param: key_name}, + key_name: {get_resource: storperf_key_pair}, volume_size: {get_param: volume_size} } } @@ -81,6 +79,12 @@ resources: router_id: { get_resource: storperf_network_router } subnet_id: { get_resource: storperf_subnet } + storperf_key_pair: + type: OS::Nova::KeyPair + properties: + save_private_key: true + name: storperf_agent_keypair + storperf_open_security_group: type: OS::Neutron::SecurityGroup properties: |