summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/defaults
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-10-30 11:07:41 -0400
committerScott Dodson <sdodson@redhat.com>2017-10-30 15:27:00 -0400
commitc088db59c873adb675439e9635c302115c50ba6d (patch)
treea121651d152f6973e652243ba55ff3cd40974d2e /roles/openshift_master/defaults
parent0b0dea682dfc957651c035eb822afe89d16895af (diff)
downloadopenshift-c088db59c873adb675439e9635c302115c50ba6d.tar.gz
openshift-c088db59c873adb675439e9635c302115c50ba6d.tar.bz2
openshift-c088db59c873adb675439e9635c302115c50ba6d.tar.xz
openshift-c088db59c873adb675439e9635c302115c50ba6d.zip
Add arbitrary firewall port config to master too
Diffstat (limited to 'roles/openshift_master/defaults')
-rw-r--r--roles/openshift_master/defaults/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_master/defaults/main.yml b/roles/openshift_master/defaults/main.yml
index 3da861d03..1b3ee21d6 100644
--- a/roles/openshift_master/defaults/main.yml
+++ b/roles/openshift_master/defaults/main.yml
@@ -12,7 +12,7 @@ r_openshift_master_clean_install: false
r_openshift_master_etcd3_storage: false
r_openshift_master_os_firewall_enable: true
r_openshift_master_os_firewall_deny: []
-r_openshift_master_os_firewall_allow:
+default_r_openshift_master_os_firewall_allow:
- service: api server https
port: "{{ openshift.master.api_port }}/tcp"
- service: api controllers https
@@ -24,6 +24,8 @@ r_openshift_master_os_firewall_allow:
- service: etcd embedded
port: 4001/tcp
cond: "{{ groups.oo_etcd_to_config | default([]) | length == 0 }}"
+r_openshift_master_os_firewall_allow: "{{ default_r_openshift_master_os_firewall_allow | union(openshift_master_open_ports | default([])) }}"
+
# oreg_url is defined by user input
oreg_host: "{{ oreg_url.split('/')[0] if (oreg_url is defined and '.' in oreg_url.split('/')[0]) else '' }}"