summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/templates/user_data.j2
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-04-27 11:04:34 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-04-27 11:04:34 -0400
commita2f2c884e7aeade992c574ad16954e9fbc665b99 (patch)
treecbdcb36f86c1c461e0d28c5e64aae0b9184bd8d4 /playbooks/aws/openshift-cluster/templates/user_data.j2
parent207b5aea8d619acb9622a351f54301c24598b08d (diff)
downloadopenshift-a2f2c884e7aeade992c574ad16954e9fbc665b99.tar.gz
openshift-a2f2c884e7aeade992c574ad16954e9fbc665b99.tar.bz2
openshift-a2f2c884e7aeade992c574ad16954e9fbc665b99.tar.xz
openshift-a2f2c884e7aeade992c574ad16954e9fbc665b99.zip
Replace sudo with become when accessing deployment_vars.
Diffstat (limited to 'playbooks/aws/openshift-cluster/templates/user_data.j2')
-rw-r--r--playbooks/aws/openshift-cluster/templates/user_data.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/aws/openshift-cluster/templates/user_data.j2 b/playbooks/aws/openshift-cluster/templates/user_data.j2
index 3621a7d7d..4b8554c87 100644
--- a/playbooks/aws/openshift-cluster/templates/user_data.j2
+++ b/playbooks/aws/openshift-cluster/templates/user_data.j2
@@ -44,7 +44,7 @@ runcmd:
- xfs_growfs /var
{% endif %}
-{% if deployment_vars[deployment_type].sudo %}
+{% if deployment_vars[deployment_type].become %}
- path: /etc/sudoers.d/99-{{ deployment_vars[deployment_type].ssh_user }}-cloud-init-requiretty
permissions: 440
content: |