Date post: | 24-Jul-2015 |
Category: |
Technology |
Upload: | okars-gavrisevs |
View: | 21 times |
Download: | 0 times |
Ansible
Oskars Gavrisevs
Ansible : architecture
• Comes in two flavors:• Ansible stand alone (simple setup, works
out of box, no GUI , daemon-less approach)
• Ansible Tower ( for enterprise)
Ansible : architecture
Ansible : installation
• On host:• Ansible installation (+1.6)
• On target host :• Python 2.6 > • Different dep. for some modules (Example
: python boto for AWS.S3, …)
Ansible : installation (2)
Puppet: architecture
• Also two options :• Puppet apply (for run directly on target
host )• Puppet Master ( for enterprise)
Puppet: architecture
Puppet : installation
• Master requires :• Puppet Master • Dashboard • MySQL• Ruby• Apply certs.
• On clients :• Ruby 1.8.5 > (+ ruby dependencies )• Puppet agent
Puppet : Dashboard
Puppet : ecosystem
Puppet : ecosystem (2)
Puppet : ecosystem (3)
Ansible : ecosystem
Ansible : ecosystem (2)
Ansible / Puppet : ecosystem
• Ansible : + Lot out of box modules • Ansible : - Most modules are OS specific
(Example : firewall : ufw = Debian/Ubuntu , Centos = ? )
• Puppet : - less core modules • Puppet : + core modules are more generic
Ansible / Puppet : dependencys
• Puppet : Native «puppet module install puppetlabs-apache --version 0.0.2»
• Puppet : librarian-puppet (gem)• Ansible : Native «ansible-galaxy install -r
roles.txt -p roles»
Puppet / Ansible : execution order
Puppet : «It will execute it in a consistent but unpredictable order, with the exception of any explicit or implicit dependencies in the code» * Ansible : sequential execution order
* -http://stackoverflow.com/questions/9523878/puppet-execution-flow
Puppet : dependency graph
Puppet : dependency graph (2)
Puppet : code
Ansible : Code