summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster/tasks
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2016-05-25 09:54:36 -0400
committerJason DeTiberus <detiber@gmail.com>2016-05-25 09:54:36 -0400
commit00eba039c9312fbd04cc05a8a890ef48f2311769 (patch)
tree3ad1665eb4731687c5b8cdcafde9ce00aefe3865 /playbooks/gce/openshift-cluster/tasks
parent82d3a4bac81d67d8575279fe99352700d65ca7f6 (diff)
parent4f4c4f038f4df910a33c0c1ab3bc8b2179f4a764 (diff)
downloadopenshift-00eba039c9312fbd04cc05a8a890ef48f2311769.tar.gz
openshift-00eba039c9312fbd04cc05a8a890ef48f2311769.tar.bz2
openshift-00eba039c9312fbd04cc05a8a890ef48f2311769.tar.xz
openshift-00eba039c9312fbd04cc05a8a890ef48f2311769.zip
Merge pull request #1773 from detiber/aws_cleanup
Cloud provider cleanup
Diffstat (limited to 'playbooks/gce/openshift-cluster/tasks')
-rw-r--r--playbooks/gce/openshift-cluster/tasks/launch_instances.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
index e3efd8566..c5c479052 100644
--- a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
@@ -17,6 +17,11 @@
- clusterid-{{ cluster_id }}
- host-type-{{ type }}
- sub-host-type-{{ g_sub_host_type }}
+ metadata:
+ startup-script: |
+ #!/bin/bash
+ echo "Defaults:{{ deployment_vars[deployment_type].ssh_user }} !requiretty" > /etc/sudoers.d/99-{{ deployment_vars[deployment_type].ssh_user }}
+
when: instances |length > 0
register: gce