summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-node/configure_nodes.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-09-29 22:25:19 -0700
committerGitHub <noreply@github.com>2017-09-29 22:25:19 -0700
commit1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd (patch)
tree6daefe4dc950f91e7e864595fe38a31ed1c62876 /playbooks/common/openshift-node/configure_nodes.yml
parentd1e51603d4cc7a3b7ad8381c730ac51ae4037139 (diff)
parentba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4 (diff)
downloadopenshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.tar.gz
openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.tar.bz2
openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.tar.xz
openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.zip
Merge pull request #5565 from mgugino-upstream-stage/provisioning-centos-support
Automatic merge from submit-queue. Changes necessary to support AMI building Currently, AMI building does not work. These changes implement the necessary steps to build an AMI for usage as a 'golden node image'.
Diffstat (limited to 'playbooks/common/openshift-node/configure_nodes.yml')
-rw-r--r--playbooks/common/openshift-node/configure_nodes.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/playbooks/common/openshift-node/configure_nodes.yml b/playbooks/common/openshift-node/configure_nodes.yml
new file mode 100644
index 000000000..072986d09
--- /dev/null
+++ b/playbooks/common/openshift-node/configure_nodes.yml
@@ -0,0 +1,17 @@
+---
+- name: Configure nodes
+ hosts: oo_nodes_to_config:!oo_containerized_master_nodes
+ vars:
+ openshift_node_master_api_url: "{{ hostvars[groups.oo_first_master.0].openshift.master.api_url }}"
+ openshift_node_first_master_ip: "{{ hostvars[groups.oo_first_master.0].openshift.common.ip }}"
+ openshift_docker_hosted_registry_network: "{{ hostvars[groups.oo_first_master.0].openshift.common.portal_net }}"
+ openshift_no_proxy_internal_hostnames: "{{ hostvars | oo_select_keys(groups['oo_nodes_to_config']
+ | union(groups['oo_masters_to_config'])
+ | union(groups['oo_etcd_to_config'] | default([])))
+ | oo_collect('openshift.common.hostname') | default([]) | join (',')
+ }}"
+ roles:
+ - role: os_firewall
+ - role: openshift_node
+ openshift_ca_host: "{{ groups.oo_first_master.0 }}"
+ - role: nickhammond.logrotate