summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-node/containerized_nodes.yml
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-09-27 17:22:51 -0400
committerMichael Gugino <mgugino@redhat.com>2017-09-28 13:50:33 -0400
commitba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4 (patch)
tree0ac9c7ecea0836812a0062164ed67e8c0d7ae5bb /playbooks/common/openshift-node/containerized_nodes.yml
parente3d5519c6d68b9aa162a58e1a897b6e4f6b0eea1 (diff)
downloadopenshift-ba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4.tar.gz
openshift-ba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4.tar.bz2
openshift-ba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4.tar.xz
openshift-ba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4.zip
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/containerized_nodes.yml')
-rw-r--r--playbooks/common/openshift-node/containerized_nodes.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/playbooks/common/openshift-node/containerized_nodes.yml b/playbooks/common/openshift-node/containerized_nodes.yml
new file mode 100644
index 000000000..6fac937e3
--- /dev/null
+++ b/playbooks/common/openshift-node/containerized_nodes.yml
@@ -0,0 +1,19 @@
+---
+- name: Configure containerized nodes
+ hosts: oo_containerized_master_nodes
+ serial: 1
+ 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