Symfony2 in London 29/10/14
Maxime Thoonsen
Symfony2
NodeJs
AngularJs
Ansible
Maxime Thoonsen
Dev @Theodo
WHAT ABOUT YOU?
PROD
PREPROD
STAGING
LOCAL
PROD + PREPROD + STAGING + N DEV =
Ansible is an automation tool
Ansible is simple
# Ansible
config.vm.provision "ansible" do |ansible|
ansible.sudo = true
ansible.playbook = "provision/playbook.yml"
ansible.limit = "vagrant" # hosts group
ansible.inventory_path = "provision/hosts/vagrant"
ansible.verbose = "v" #Use vvvv to get more log
end
ansible-galaxy install kosssi.composer,v1.0.3
The list of our favorites roles
My symfony playbook
ansible-galaxy install -i kosssi.apache,v1.0.1 --force
ansible-galaxy install -i ANXS.mysql,v1.0.2 --force
ansible-galaxy install -i kosssi.php,v1.0.0 --force
ansible-galaxy install -i kosssi.composer,v1.0.3 --force
[vagrant]
symfony.dev
[webservers:children]
vagrant
[dbservers:children]
vagrant
[prod]
symfony.prod
[webservers:children]
prod
[dbservers:children]
prod
/provision/hosts/vagrant :
/provision/hosts/prod :
- name: Provision website
hosts: webservers
sudo: yes
vars_files:
- vars/php.yml
- vars/apache.yml
roles:
- { role: kosssi.php, tags: php }
- { role: kosssi.composer, tags: composer }
- { role: kosssi.apache, tags: apache }
- { role: www-data, tags: www-data }
Many devs like Ansible !
Few sysadmins appreciate it
Now I love Devops !
Ansible is easy to learn
Follow him !
Nico
(Don't follow him...)