warmbowski / ec2_lamp_stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##EC2 Lamp Stack Provisioning This repo is a basic setup for provisioning complete LAMP stack servers on a base CentOS 6.5 image hosted on EC2. It can provision multiple hosts with duplicate configurations.

  • make sure ansible and boto are installed
  • add aws credentials to ~/.boto file
    [Credentials]
    aws_access_key_id = REDACTED
    aws_secret_access_key = REDACTED
    
  • put your IAM public key in ~/.ssh/ansible_setup.pem and chmod 600
  • clone this repo and cd into project folder
  • run ansible-playbook -vv -i localhost, site.yml
  • after playbook is complete, go to ip address of loadbalancer
  • refresh to see load balancing

###Resources used creating this aws cli setup: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html

problem with pip install on mavericks+: ansible/ansible#7146

ansible/ec2 docs: http://docs.ansible.com/ansible/ec2_module.html

blogs with example: https://djaodjin.com/blog/deploying-on-ec2-with-ansible.blog.html http://allandenot.com/devops/2015/01/31/provisioning-ec2-hosts-with-ansible.html https://github.com/adenot/blog-ansible-provision-ec2 http://tomoconnor.eu/blogish/getting-started-ansible/#.VjPM5xNVikp http://tomoconnor.eu/blogish/part-3-ansible-and-amazon-web-services/#.VjPT4BNVikr

About