summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2016-04-29 17:13:11 -0400
committerJason DeTiberus <jdetiber@redhat.com>2016-05-05 21:23:19 -0400
commited869237f676a6a68df83cc6a379110ab6a91770 (patch)
treed15268568ec19179fe134327c39bc4a31ced6ef3 /playbooks/gce/openshift-cluster/tasks/launch_instances.yml
parent866bab53db58352d56e33b8d97ce3b982a850cb9 (diff)
downloadopenshift-ed869237f676a6a68df83cc6a379110ab6a91770.tar.gz
openshift-ed869237f676a6a68df83cc6a379110ab6a91770.tar.bz2
openshift-ed869237f676a6a68df83cc6a379110ab6a91770.tar.xz
openshift-ed869237f676a6a68df83cc6a379110ab6a91770.zip
gce fixes
Diffstat (limited to 'playbooks/gce/openshift-cluster/tasks/launch_instances.yml')
-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