summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-node/config.yml
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-03-10 12:10:29 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-03-10 12:10:29 -0400
commitfc2dd1cd305077ab9b6ee20fffb1bfe472c25985 (patch)
tree84b4788df88bf61e6c18c9cbb4f3cef12ebb4991 /playbooks/aws/openshift-node/config.yml
parentabe9dcfcdd29bb20c73a1d3735eb1d136b602ce4 (diff)
parentb6300dd7139ef37a039831bab6064179e3398d88 (diff)
downloadopenshift-fc2dd1cd305077ab9b6ee20fffb1bfe472c25985.tar.gz
openshift-fc2dd1cd305077ab9b6ee20fffb1bfe472c25985.tar.bz2
openshift-fc2dd1cd305077ab9b6ee20fffb1bfe472c25985.tar.xz
openshift-fc2dd1cd305077ab9b6ee20fffb1bfe472c25985.zip
Merge pull request #70 from lhuard1A/fix_aws
Fix AWS playbooks
Diffstat (limited to 'playbooks/aws/openshift-node/config.yml')
-rw-r--r--playbooks/aws/openshift-node/config.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/playbooks/aws/openshift-node/config.yml b/playbooks/aws/openshift-node/config.yml
index 129464e1f..9662168c4 100644
--- a/playbooks/aws/openshift-node/config.yml
+++ b/playbooks/aws/openshift-node/config.yml
@@ -23,6 +23,12 @@
| oo_select_keys(groups['tag_env-host-type_' + oo_env + '-openshift-master'])
| oo_collect(attribute='ansible_default_ipv4.address') }}"
when: groups['tag_env-host-type_' + oo_env + '-openshift-master'] is defined
+ - name: Setting openshift_master_public_ips fact on localhost
+ set_fact:
+ openshift_master_public_ips: "{{ hostvars
+ | oo_select_keys(groups['tag_env-host-type-' + oo_env + '-openshift-master'])
+ | oo_collect(attribute='ec2_ip_address') }}"
+ when: groups['tag_env-host-type-' + oo_env + '-openshift-master'] is defined
- name: "Configure instances"
hosts: oo_hosts_to_config
@@ -36,8 +42,8 @@
- {
role: openshift_node,
openshift_master_ips: "{{ hostvars['localhost'].openshift_master_ips | default(['']) }}",
- # TODO: add openshift_Master_public_ips
+ openshift_master_public_ips: "{{ hostvars['localhost'].openshift_master_public_ips | default(['']) }}",
openshift_env: "{{ oo_env }}"
- # TODO: openshift_public_ip: set to aws instance public ip
+ openshift_public_ip: "{{ ec2_ip_address }}"
}
- os_env_extras