diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2015-11-04 15:05:06 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2015-11-04 15:05:06 -0400 |
commit | 153c57d6bda48276bc1f8be520145780fa119941 (patch) | |
tree | 7bcd0ddd715a688e9695bd65c642a89e1cda2687 /playbooks/libvirt/openshift-cluster/templates | |
parent | 215a7aacc2fc3df19a64a2a57910516533665423 (diff) | |
parent | 896b9c63292a50dce8e7aa00a889dfd52a3a8474 (diff) | |
download | openshift-153c57d6bda48276bc1f8be520145780fa119941.tar.gz openshift-153c57d6bda48276bc1f8be520145780fa119941.tar.bz2 openshift-153c57d6bda48276bc1f8be520145780fa119941.tar.xz openshift-153c57d6bda48276bc1f8be520145780fa119941.zip |
Merge remote-tracking branch 'upstream/master' into upgrade
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 |