summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/templates/user_data.j2
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2016-04-21 00:45:28 -0400
committerJason DeTiberus <jdetiber@redhat.com>2016-05-05 21:23:19 -0400
commit866bab53db58352d56e33b8d97ce3b982a850cb9 (patch)
tree952e38c88c3f39a2ea7d98eafb17b85889d9a974 /playbooks/aws/openshift-cluster/templates/user_data.j2
parente4c7c26436d4daf2cbccd54bc91cb5f3471c3dc0 (diff)
downloadopenshift-866bab53db58352d56e33b8d97ce3b982a850cb9.tar.gz
openshift-866bab53db58352d56e33b8d97ce3b982a850cb9.tar.bz2
openshift-866bab53db58352d56e33b8d97ce3b982a850cb9.tar.xz
openshift-866bab53db58352d56e33b8d97ce3b982a850cb9.zip
aws provider fixes
- fix errors in userdata template - update origin centos ami - ensure ec2_tag_sub-host-type is set after launch - disable openshift_use_dnsmasq for now - Remove use of vars_files in includes
Diffstat (limited to 'playbooks/aws/openshift-cluster/templates/user_data.j2')
-rw-r--r--playbooks/aws/openshift-cluster/templates/user_data.j25
1 files changed, 3 insertions, 2 deletions
diff --git a/playbooks/aws/openshift-cluster/templates/user_data.j2 b/playbooks/aws/openshift-cluster/templates/user_data.j2
index 2a3974a8c..b1087f9c4 100644
--- a/playbooks/aws/openshift-cluster/templates/user_data.j2
+++ b/playbooks/aws/openshift-cluster/templates/user_data.j2
@@ -3,8 +3,10 @@
mounts:
- [ xvdb ]
- [ ephemeral0 ]
+{% endif %}
write_files:
+{% if type in ['node', 'master'] and 'docker' in volume_defs[type] %}
- content: |
DEVS=/dev/xvdb
VG=docker_vg
@@ -12,8 +14,7 @@ write_files:
owner: root:root
permissions: '0644'
{% endif %}
-
-{% if deployment_vars[deployment_type].become %}
+{% if deployment_vars[deployment_type].become | bool %}
- path: /etc/sudoers.d/99-{{ deployment_vars[deployment_type].ssh_user }}-cloud-init-requiretty
permissions: 440
content: |