diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-11-04 11:59:28 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-11-04 11:59:28 -0500 |
commit | 7869fb8c26a96c1e0ee74b930fd0da8a9952cb52 (patch) | |
tree | 37b83c517769c4730b680b602672ba3f9245137a /playbooks/libvirt/openshift-cluster/templates | |
parent | a706860af853be6d8bc77ea38593467e827ed527 (diff) | |
parent | f5e83fc2330d6f784df3859f5305d4b80cc0c469 (diff) | |
download | openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.tar.gz openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.tar.bz2 openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.tar.xz openshift-7869fb8c26a96c1e0ee74b930fd0da8a9952cb52.zip |
Merge pull request #811 from openshift/master
master to prod
Diffstat (limited to 'playbooks/libvirt/openshift-cluster/templates')
-rw-r--r-- | playbooks/libvirt/openshift-cluster/templates/user-data | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/playbooks/libvirt/openshift-cluster/templates/user-data b/playbooks/libvirt/openshift-cluster/templates/user-data index eacae7c7e..e0c966e45 100644 --- a/playbooks/libvirt/openshift-cluster/templates/user-data +++ b/playbooks/libvirt/openshift-cluster/templates/user-data @@ -19,5 +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 |