Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor tidy up of examples

  • Loading branch information...
commit ff0611c9dd820a083d4eca387378cf3b41577d23 1 parent 657cc87
@lwade authored
View
2  eucalyptus-playbook/examples/eucalyptus-userconsole-lb-ec2.yml
@@ -61,8 +61,6 @@
- name: Install Eucalyptus User Console
action: yum pkg=eucalyptus-console state=latest
- notify:
- - restart console
- name: Configure User Console Endpoint
action: lineinfile dest=/etc/eucalyptus-console/console.ini state=present regexp=^clchost line=clchost:" ${clchost}"
View
5 eucalyptus-playbook/templates/haproxy.cfg.j2
@@ -1,4 +1,3 @@
-{% set inst = ec2 %}
global
log 127.0.0.1 local2
@@ -29,8 +28,6 @@ frontend main *:8888
#---------------------------------------------------------------------
backend console
- {% for instance in inst.instances %}
+ {% for instance in ec2.instances %}
server {{ instance.id }} {{ instance.public_ip }}:8888 check
{% endfor %}
-
-# Single out a specific system with: server console1 {{ inst.instances[0].public_ip }}:8888 check
View
36 eucalyptus-playbook/templates/haproxy.cfg.j2.bak
@@ -0,0 +1,36 @@
+{% set inst = ec2 %}
+global
+ log 127.0.0.1 local2
+
+ chroot /var/lib/haproxy
+ pidfile /var/run/haproxy.pid
+ maxconn 4000
+ user haproxy
+ group haproxy
+ daemon
+
+ stats socket /var/lib/haproxy/stats
+
+defaults
+ mode http
+ timeout connect 5000ms
+ timeout client 50000ms
+ timeout server 50000ms
+
+#---------------------------------------------------------------------
+# main frontend which proxys to the backends
+#---------------------------------------------------------------------
+
+frontend main *:8888
+ default_backend console
+
+#---------------------------------------------------------------------
+# round robin balancing between the various backends
+#---------------------------------------------------------------------
+
+backend console
+ {% for instance in inst.instances %}
+ server {{ instance.id }} {{ instance.public_ip }}:8888 check
+ {% endfor %}
+
+# Single out a specific system with: server console1 {{ inst.instances[0].public_ip }}:8888 check
Please sign in to comment.
Something went wrong with that request. Please try again.