summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorerror10 <error@ioerror.us>2015-11-01 14:49:09 -0500
committererror10 <error@ioerror.us>2015-11-01 14:49:09 -0500
commitd75f1b5879dce664f86eea25dff66417618e379e (patch)
treea5358a6fde3784695dea1902c38d35a0abaac564 /playbooks
parentf6485b33ecbce69e1f9e547d7c302931063e881a (diff)
downloadopenshift-d75f1b5879dce664f86eea25dff66417618e379e.tar.gz
openshift-d75f1b5879dce664f86eea25dff66417618e379e.tar.bz2
openshift-d75f1b5879dce664f86eea25dff66417618e379e.tar.xz
openshift-d75f1b5879dce664f86eea25dff66417618e379e.zip
Disable requiretty for only the openshift user
Use write_files to disable requiretty for the openshift user as suggested by @detiberm, fixes #773
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/libvirt/openshift-cluster/templates/user-data7
1 files changed, 6 insertions, 1 deletions
diff --git a/playbooks/libvirt/openshift-cluster/templates/user-data b/playbooks/libvirt/openshift-cluster/templates/user-data
index cf57e6489..e0c966e45 100644
--- a/playbooks/libvirt/openshift-cluster/templates/user-data
+++ b/playbooks/libvirt/openshift-cluster/templates/user-data
@@ -19,6 +19,11 @@ system_info:
ssh_authorized_keys:
- {{ lookup('file', '~/.ssh/id_rsa.pub') }}
+write_files:
+ - path: /etc/sudoers.d/00-openshift-no-requiretty
+ permissions: 440
+ content: |
+ Defaults:openshift !requiretty
+
runcmd:
- NETWORK_CONFIG=/etc/sysconfig/network-scripts/ifcfg-eth0; if ! grep DHCP_HOSTNAME ${NETWORK_CONFIG}; then echo 'DHCP_HOSTNAME="{{ item[0] }}.example.com"' >> ${NETWORK_CONFIG}; fi; pkill -9 dhclient; service network restart
- - echo "Defaults !requiretty" >> /etc/sudoers.d/00-no-requiretty