diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-18 11:16:13 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-18 14:57:06 -0500 |
commit | 666fd1d7ef9072f2b022260aebfdc55437be9220 (patch) | |
tree | 7a651a36f2ea78bbc3f700635ba9fa0e0b5a902f /playbooks/aws | |
parent | 426aa0a1613bdfc5547abde43ab1130ba027126e (diff) | |
download | openshift-666fd1d7ef9072f2b022260aebfdc55437be9220.tar.gz openshift-666fd1d7ef9072f2b022260aebfdc55437be9220.tar.bz2 openshift-666fd1d7ef9072f2b022260aebfdc55437be9220.tar.xz openshift-666fd1d7ef9072f2b022260aebfdc55437be9220.zip |
ec2 - force !requiretty for ssh_user
Diffstat (limited to 'playbooks/aws')
-rw-r--r-- | playbooks/aws/openshift-cluster/templates/user_data.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/playbooks/aws/openshift-cluster/templates/user_data.j2 b/playbooks/aws/openshift-cluster/templates/user_data.j2 index 82c2f4d57..ea4c05ca8 100644 --- a/playbooks/aws/openshift-cluster/templates/user_data.j2 +++ b/playbooks/aws/openshift-cluster/templates/user_data.j2 @@ -43,3 +43,10 @@ growpart: runcmd: - xfs_growfs /var {% endif %} + +{% if deployment_vars[deployment_type].sudo %} +- path: /etc/sudoers.d/99-{{ deployment_vars[deployment_type].ssh_user }}-cloud-init-requiretty + permissions: 440 + content: | + Defaults:{{ deployment_vars[deployment_type].ssh_user }} !requiretty +{% endif %} |