This is simple python code to demonstrate how to add or remove instance from ELB and monitor the status oinstances
Pre prerequisites: 1.Install python and boto 2.Amaxon root account 3. Set accesskey and secretkey in your bashprofile
##Instructions python elbadd.py python elbremove.py python elbstatus.py #Note : this can be modified to pass elb name as paramenter
Ansible script to install and setup LAMP stack.
Pre prerequisites:
- Install ansible in your local environment
- Amazon root account
- Set accesskey and secretkey in your bashprofile
- Under hosts file change the ip to your instance IP
##Instructions
ansible-playbook --sudo --inventory-file=hosts playbook.yml -u ubuntu --verbose
##phpadmin:
You now only need to add those variable into playbook.yml
phpmyadmin:
-
user: mysql user
pass: mysql password
hostname: phpmyadmin hostname
pma_dbname: phpmyadmin database name
http://docs.ansible.com/ http://labs.qandidate.com/ http://stackoverflow.com/questions/23242067/how-to-install-phpmyadmin-on-debian-by-ansible http://docs.ansible.com/ansible/apt_module.html
etc