Minor improvements

- default to ansible_default_ipv4.interface
- move "repository" variable to webservers
- mention 1.2 and CentOS 6 requirements in readme
pull/63/head
Tim Gerla 11 years ago
parent 0f7ebe34ed
commit db5329949f
  1. 3
      lamp_haproxy/README.md
  2. 1
      lamp_haproxy/group_vars/all
  3. 8
      lamp_haproxy/group_vars/lbservers
  4. 15
      lamp_haproxy/group_vars/webservers

@ -1,7 +1,8 @@
LAMP Stack + HAProxy: Example Playbooks
-----------------------------------------------------------------------------
(This example requires Ansible 1.2)
- Requires Ansible 1.2
- Expects CentOS/RHEL 6 hosts
This example is an extension of the simple LAMP deployment. Here we'll install
and configure a web server with an HAProxy load balancer in front, and deploy

@ -3,4 +3,3 @@
httpd_port: 80
ntpserver: 192.168.1.2
repository: http://github.com/bennojoy/mywebapp.git

@ -16,4 +16,10 @@ daemonname: myapplb
balance: roundrobin
# Ethernet interface on which the load balancer should listen
iface: eth0
# Defaults to the first interface. Change this to:
#
# iface: eth1
#
# ...to override.
#
iface: '{{ ansible_default_ipv4.interface }}'

@ -1,8 +1,17 @@
---
# Variables for the web server configuration
# Ethernet interface on which the web server should listen
iface: eth0
# Ethernet interface on which the web server should listen.
# Defaults to the first interface. Change this to:
#
# iface: eth1
#
# ...to override.
#
iface: '{{ ansible_default_ipv4.interface }}'
# this is V5 of the test webapp.
# this is the repository that holds our sample webapp
repository: http://github.com/bennojoy/mywebapp.git
# this is the sha1sum of V5 of the test webapp.
webapp_version: 351e47276cc66b018f4890a04709d4cc3d3edb0d