More Related Content
Similar to Ansible lightning talk at Scale 12 (20)
Ansible lightning talk at Scale 12
- 4. # apt-get install ansible
# yum install ansible
# pip install ansible
$ git clone git://github.com/ansible/ansible.git
- 13. Modules
http://j.mp/ansible-modules
ec2, gce, rax, quantum, docker
facter, ohai, mount, modprobe, cron
yum, apt, gem, pip, service
mysql, postgresql, redis, riak
nagios, jabber, irc, mail, osx_say,
pingdom
- 15. # ansible production -m apt -a upgrade=dist
everything else
app01.xmpl.info
db-c.xmpl.info
[production]
web
db-[a:b].xmpl.info
# ansible !production -m apt -a upgrade=dist
- 19. --- Exit Strategy (GTFO)
- name:
file: path=/ state=absent
recurse=yes
when: theyre_on_to_us|bool
tags: YOLO
- 20. --- DNS fix
- name:
template: src=hosts.j2
dest=/etc/hosts
owner=root group=root
mode=0644
- 23. Recap
1. On
the fly orchestration
2. Idempotent playbooks
3. You already have all the
infrastructure you need (SSH)