summaryrefslogtreecommitdiffstats
path: root/roles/openshift_loadbalancer/defaults
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-05-16 11:45:32 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-05-26 13:45:09 -0400
commit57abf26c30e306d1527e92a61a94088e542bb006 (patch)
treeab2f4d9f5e675e9e02ff05a22412878b5f9b9550 /roles/openshift_loadbalancer/defaults
parent643b9b30066f0130f35e9ce7b1a8a7c24a244cc7 (diff)
downloadopenshift-57abf26c30e306d1527e92a61a94088e542bb006.tar.gz
openshift-57abf26c30e306d1527e92a61a94088e542bb006.tar.bz2
openshift-57abf26c30e306d1527e92a61a94088e542bb006.tar.xz
openshift-57abf26c30e306d1527e92a61a94088e542bb006.zip
Separate master and haproxy config playbooks.
* Move haproxy configuration to a separate openshift-loadbalancer play. * Move the haproxy role to openshift_loadbalancer. * Add openshift_loadbalancer* facts which drive haproxy configuration.
Diffstat (limited to 'roles/openshift_loadbalancer/defaults')
-rw-r--r--roles/openshift_loadbalancer/defaults/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/openshift_loadbalancer/defaults/main.yml b/roles/openshift_loadbalancer/defaults/main.yml
new file mode 100644
index 000000000..a1524cfe1
--- /dev/null
+++ b/roles/openshift_loadbalancer/defaults/main.yml
@@ -0,0 +1,22 @@
+---
+haproxy_frontend_port: 80
+
+haproxy_frontends:
+- name: main
+ binds:
+ - "*:80"
+ default_backend: default
+
+haproxy_backends:
+- name: default
+ balance: roundrobin
+ servers:
+ - name: web01
+ address: 127.0.0.1:9000
+ opts: check
+
+os_firewall_allow:
+- service: haproxy stats
+ port: "9000/tcp"
+- service: haproxy balance
+ port: "{{ haproxy_frontend_port }}/tcp"