summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-09-25 18:23:00 -0400
committerMichael Gugino <mgugino@redhat.com>2017-09-26 09:55:44 -0400
commit8066f159814f241613f93432f2e568852d038408 (patch)
tree0c2fbaf921cda43d7cf9737b96439a9420f13a3f /playbooks/aws/openshift-cluster
parent4ceb4bd931fa48b1f666d2258fff763b29bffba8 (diff)
downloadopenshift-8066f159814f241613f93432f2e568852d038408.tar.gz
openshift-8066f159814f241613f93432f2e568852d038408.tar.bz2
openshift-8066f159814f241613f93432f2e568852d038408.tar.xz
openshift-8066f159814f241613f93432f2e568852d038408.zip
More variables in AWS provisioning plays
This commit adds more optional variables to provision hosts in AWS environments. These changes allow provisioning instances that utilize an ssh_user other than root.
Diffstat (limited to 'playbooks/aws/openshift-cluster')
-rw-r--r--playbooks/aws/openshift-cluster/build_ami.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/aws/openshift-cluster/build_ami.yml b/playbooks/aws/openshift-cluster/build_ami.yml
index fc11205d8..828fa9400 100644
--- a/playbooks/aws/openshift-cluster/build_ami.yml
+++ b/playbooks/aws/openshift-cluster/build_ami.yml
@@ -47,9 +47,12 @@
groups: nodes
name: "{{ instancesout.instances[0].public_dns_name }}"
+- hosts: nodes
+ gather_facts: False
+ tasks:
- name: set the user to perform installation
set_fact:
- ansible_ssh_user: root
+ ansible_ssh_user: "{{ openshift_aws_build_ami_ssh_user | default(root) }}"
- name: normalize groups
include: ../../byo/openshift-cluster/initialize_groups.yml