I’m very happy to see the first Python Conference in the Philippines.
And yes I am one of the speaker who volunteered to talk on sysadmin topic. 🙂
PyCon Philippines is a volunteer-run, not-for-profit conference centered around the Python programming language.
This conference is for:
Novice, intermediate, and experienced Python developers
Authors of/contributors to open-source Python libraries and tools
Programmers coming from other languages who are trying out Python
College students interested in programming/software development
Anyone who wants to know more about the Python programming language, whether new to programming or experienced
The event will be on June 30-July 1, 2012. Register now.
For more information see Philippines Pycon website.
Using Ansible for a number of machines, using pull architecture.
The goal here is to be able to launch a number of instance by pulling ansible playbooks.
The file user-data-ansible-pull contains:
Assuming you setup your AWS EC2 or euca-tools:
prompt$ ec2-run-instances ami-a29943cb -t t1.micro \
-k gsg-keypair -f ~/Desktop/user-data-ansible-pull
How it works?
1. Run the instance and use the user-data.
2. user-data will be executed by cloud-init and will install needed packages for ansible.
3. Install ansible via git clone
4. Setup ansible hosts variable.
5. Run ansible-pull, set parameter to a git playbook repository to clone.
6. From playbook, ansible-pull reads the local.yml whic defines the tasks to be executed.
(On the Ansible docs, it features another trick to setup a cronjob fetch for new playbooks.
See ansible examples on github. )
Simple eh? Let’s start writing more playbooks, includes these at local.yml.
Fire away your new Openstack and EC2 instances.