summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-loadbalancer/private/config.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-11-22 08:28:39 -0500
committerGitHub <noreply@github.com>2017-11-22 08:28:39 -0500
commit16e4acfe143e954c07c774c5c163fbd4ff1e4647 (patch)
tree85bd1bde9394a52731585caac94fc781c04820d9 /playbooks/openshift-loadbalancer/private/config.yml
parentc1c4f92cdfce46945fdf51d0219980134b73861f (diff)
parentfcec6bc2caad1f9b84666fc5b17d0af6658b7999 (diff)
downloadopenshift-16e4acfe143e954c07c774c5c163fbd4ff1e4647.tar.gz
openshift-16e4acfe143e954c07c774c5c163fbd4ff1e4647.tar.bz2
openshift-16e4acfe143e954c07c774c5c163fbd4ff1e4647.tar.xz
openshift-16e4acfe143e954c07c774c5c163fbd4ff1e4647.zip
Merge pull request #6146 from mtnbikenc/consolidate-openshift-loadbalancer
Playbook Consolidation - openshift-loadbalancer
Diffstat (limited to 'playbooks/openshift-loadbalancer/private/config.yml')
-rw-r--r--playbooks/openshift-loadbalancer/private/config.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/playbooks/openshift-loadbalancer/private/config.yml b/playbooks/openshift-loadbalancer/private/config.yml
new file mode 100644
index 000000000..d737b836b
--- /dev/null
+++ b/playbooks/openshift-loadbalancer/private/config.yml
@@ -0,0 +1,51 @@
+---
+- name: Load Balancer Install Checkpoint Start
+ hosts: all
+ gather_facts: false
+ tasks:
+ - name: Set load balancer install 'In Progress'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_loadbalancer:
+ status: "In Progress"
+ start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
+- name: Configure firewall and docker for load balancers
+ hosts: oo_lb_to_config:!oo_masters_to_config:!oo_nodes_to_config
+ vars:
+ openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag }}"
+ roles:
+ - role: os_firewall
+ - role: openshift_docker
+ when: openshift.common.is_containerized | default(False) | bool and not skip_docker_role | default(False) | bool
+
+- name: Configure load balancers
+ hosts: oo_lb_to_config
+ vars:
+ openshift_loadbalancer_frontends: "{{ (openshift_master_api_port | default(8443)
+ | oo_openshift_loadbalancer_frontends(hostvars | oo_select_keys(groups['oo_masters']),
+ openshift_use_nuage | default(false),
+ nuage_mon_rest_server_port | default(none)))
+ + openshift_loadbalancer_additional_frontends | default([]) }}"
+ openshift_loadbalancer_backends: "{{ (openshift_master_api_port | default(8443)
+ | oo_openshift_loadbalancer_backends(hostvars | oo_select_keys(groups['oo_masters']),
+ openshift_use_nuage | default(false),
+ nuage_mon_rest_server_port | default(none)))
+ + openshift_loadbalancer_additional_backends | default([]) }}"
+ openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag }}"
+ roles:
+ - role: openshift_loadbalancer
+ - role: tuned
+
+- name: Load Balancer Install Checkpoint End
+ hosts: all
+ gather_facts: false
+ tasks:
+ - name: Set load balancer install 'Complete'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_loadbalancer:
+ status: "Complete"
+ end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"