From 866bab53db58352d56e33b8d97ce3b982a850cb9 Mon Sep 17 00:00:00 2001 From: Jason DeTiberus Date: Thu, 21 Apr 2016 00:45:28 -0400 Subject: 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 --- playbooks/aws/openshift-cluster/templates/user_data.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'playbooks/aws/openshift-cluster/templates') 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: | -- cgit v1.2.3