Commit d8d74e56 by John Jarvis

Merge pull request #715 from edx/jarv/role-to-play

changing role to play
parents 81fd0f47 497a0961
...@@ -672,7 +672,7 @@ ...@@ -672,7 +672,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"bastion" "Value":"bastion"
}, },
{ {
...@@ -799,7 +799,7 @@ ...@@ -799,7 +799,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"admin" "Value":"admin"
}, },
{ {
......
...@@ -2623,7 +2623,7 @@ ...@@ -2623,7 +2623,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"bastion" "Value":"bastion"
}, },
{ {
...@@ -3034,7 +3034,7 @@ ...@@ -3034,7 +3034,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"edxapp", "Value":"edxapp",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -3385,7 +3385,7 @@ ...@@ -3385,7 +3385,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"xqueue", "Value":"xqueue",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -3719,7 +3719,7 @@ ...@@ -3719,7 +3719,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"rabbitmq", "Value":"rabbitmq",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -4089,7 +4089,7 @@ ...@@ -4089,7 +4089,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"xserver", "Value":"xserver",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -4396,7 +4396,7 @@ ...@@ -4396,7 +4396,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"rds" "Value":"rds"
}, },
{ {
...@@ -4552,7 +4552,7 @@ ...@@ -4552,7 +4552,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"worker", "Value":"worker",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -4801,7 +4801,7 @@ ...@@ -4801,7 +4801,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"elasticsearch", "Value":"elasticsearch",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -5062,7 +5062,7 @@ ...@@ -5062,7 +5062,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"forum", "Value":"forum",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
...@@ -5452,7 +5452,7 @@ ...@@ -5452,7 +5452,7 @@
], ],
"Tags":[ "Tags":[
{ {
"Key":"role", "Key":"play",
"Value":"mongo", "Value":"mongo",
"PropagateAtLaunch":true "PropagateAtLaunch":true
}, },
......
...@@ -84,7 +84,10 @@ def _ssh_config(args): ...@@ -84,7 +84,10 @@ def _ssh_config(args):
for reservation in reservations: for reservation in reservations:
for instance in reservation.instances: for instance in reservation.instances:
if 'role' in instance.tags: if 'play' in instance.tags:
logical_id = instance.tags['play']
elif 'role' in instance.tags:
# deprecated, use "play" instead
logical_id = instance.tags['role'] logical_id = instance.tags['role']
elif 'group' in instance.tags: elif 'group' in instance.tags:
logical_id = instance.tags['group'] logical_id = instance.tags['group']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment