diff options
author | Tim Gerla <tim@gerla.net> | 2013-03-20 08:40:39 +0400 |
---|---|---|
committer | Tim Gerla <tim@gerla.net> | 2013-03-20 08:40:39 +0400 |
commit | 8bd50b81bef34e6b57663b64d7711ee183400b92 (patch) | |
tree | 77d5ee9a982f2f1d1b0bbbdc5664fc4b9ff8afa8 /lamp_simple | |
parent | 9e93ab5e7ca14716dfc0c5140328aa512a1cd7b4 (diff) |
additional minor stylistic/typo fixes
Diffstat (limited to 'lamp_simple')
-rw-r--r-- | lamp_simple/README.md | 17 | ||||
-rw-r--r-- | lamp_simple/site.yml | 2 |
2 files changed, 9 insertions, 10 deletions
diff --git a/lamp_simple/README.md b/lamp_simple/README.md index 877f161..bb459c2 100644 --- a/lamp_simple/README.md +++ b/lamp_simple/README.md @@ -1,11 +1,11 @@ Building a simple LAMP stack and deploying Application using Ansible Playbooks. ------------------------------------------- -This playbooks is meant to be a reference and starters guide to building Ansible Playbooks. These playbooks were tested on Centos 6.x so we recommend Centos to test these modules. +These playbooks are meant to be a reference and starter's guide to building Ansible Playbooks. These playbooks were tested on CentOS 6.x so we recommend that you use CentOS or RHEL to test these modules. ### Installing Ansible -Running this playbook requires setting up Ansible first, luckily this is a very simple process on Centos 6.x: +Running this playbook requires setting up Ansible first. Luckily this is a very simple process on CentOS 6.x: yum install http://epel.mirrors.arminco.com/6/x86_64/epel-release-6-8.noarch.rpm yum install python PyYAML python-paramiko python-jinja2 @@ -13,16 +13,16 @@ Running this playbook requires setting up Ansible first, luckily this is a very cd ansible source hacking/env-setup -Generate/Synchronize your ssh keys(Optional you can pass -k parameter to prompt for password) +Generate/synchronize your SSH keys (optional you can pass -k parameter to prompt for password) ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys -Create a sample inventory file (File containing the hostnames) +Create a sample inventory file. The inventory file contains a grouped list of hostnames that are managed by Ansible. The command below will just add "localhost" to the host list. echo "localhost" > ansible_hosts -Test if we are setup properly +Test if we are setup properly: ansible -i ansible_hosts localhost -m ping localhost | success >> { @@ -31,8 +31,7 @@ Test if we are setup properly } - -Now we setup our Lamp Stack, The stack can be on a single node or multiple nodes. The inventory file 'hosts' defines the nodes in which the stacks should be configured. +Now we set up our LAMP stack. The stack can be on a single node or multiple nodes. The inventory file 'hosts' defines the nodes in which the stacks should be configured. [webservers] localhost @@ -40,8 +39,8 @@ Now we setup our Lamp Stack, The stack can be on a single node or multiple nodes [dbservers] bensible -Here the webserver would be configured on the localhost and the dbserver on bensible. The stack can be deployed using the following command. +Here the webserver would be configured on the local host and the dbserver on a server called "bensible". The stack can be deployed using the following command: ansible-playbook -i hosts site.yml -Once Done, you can check by browsing to http://<ipofhost>/index.php +Once done, you can check the results by browsing to http://localhost/index.php. You should see a simple test page and a list of databases retrieved from the database server.
\ No newline at end of file diff --git a/lamp_simple/site.yml b/lamp_simple/site.yml index 57ac736..f3aada9 100644 --- a/lamp_simple/site.yml +++ b/lamp_simple/site.yml @@ -1,5 +1,5 @@ --- -#This Playbook deploys the whole application stack in this site. +# This Playbook deploys the whole application stack in this site. - include: playbooks/db.yml - include: playbooks/web.yml |