From 07387a29fde108f48ca3513b340cfd3671d5d7a2 Mon Sep 17 00:00:00 2001 From: bennojoy Date: Tue, 12 Mar 2013 22:09:40 +0530 Subject: [PATCH] update readme again --- lamp_haproxy/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lamp_haproxy/README.md b/lamp_haproxy/README.md index 84a7fb0..ff43f13 100644 --- a/lamp_haproxy/README.md +++ b/lamp_haproxy/README.md @@ -5,7 +5,7 @@ This example is an extension of the simple lamp deployment, In this example we d This also has the capability to add/remove nodes from the deployment. It also includes examples to do a rolling update of a stack without affecting the service. -***Setup Entire Site. +###Setup Entire Site. Firstly we setup the entire stack, configure the 'hosts' inventory file to include the names of your hosts on which the stack would be deployed. [webservers] @@ -22,17 +22,17 @@ After which we execute the following command to deploy the site. The deployment can be verified by accessing the webpage." lynx http://:8888. multiple access should land you up in different webservers. -***Remove a node from the cluster. +###Remove a node from the cluster. Removal of a node from the cluster would be as simple as executing the following command: ansible-playbook -i hosts playbooks/remove_webservers.yml --limit=web2 -***Adding a node to the cluster. +###Adding a node to the cluster. Adding a node to the cluster can be done by executing the following command: ansible-playbook -i hosts playbooks/add_webservers.yml --limit=web2 -***Rolling update of the entire site or a single hosts +###Rolling update of the entire site or a single hosts Rolling updates are the preffered way to do an update as this wont affect the end users, In this example the hosts are updated in serial fashion, which means that only one server would be updated at one time, this behaviour can be changed by setting the 'serial' keyword in webservers.yml file. Once the code has been updated in the repository which can be defined in the group_vars/all file, execute the following command: