ansible

13
Jasim Muhammed

Upload: jasim-muhammed

Post on 15-Jul-2015

159 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Ansible

Jasim Muhammed

Page 2: Ansible

ME?• Senior Software Engineer @

Nuventure, working for Rightside.

• Hacking flask, SQLAlchemy, grunt, jQuery, Jenkins and Ansible.

• Do lot of other things with team :)

Page 3: Ansible

WHAT IS ANSIBLE?

• Meaning: fictitious machine capable of faster communication than light

Page 4: Ansible

WHAT IS ANSIBLE?

• Ansible is a configuration management and provisioning tool, similar to Chef, Puppet or Salt

• Automates the job of ‘manual configuration’ and setting up of servers, machines

Page 5: Ansible

ADVANTAGES OF ANSIBLE• Ansible is setup on one computer or

VM, and could control other VMS via SSH

• No client installation is needed on remote machines

• Simple to code, using YAML files and INI

• Jinja2 variables support

Page 6: Ansible

VARIABLES, INVENTORY, ROLES PLAYBOOKS,

Page 7: Ansible

VARIABLES

• YAML files

• Defining a set of variables for set of host groups/hosts

Page 8: Ansible

INVENTORY

• INI Files

• Helps to group hosts

Page 9: Ansible

ROLES

• YAML files

• A series of tasks to execute

• Configuration files are generated from templates

• Variables are filled in tasks and templates at runtime

Page 10: Ansible

PLAYBOOKS

• YAML files

• A series of roles executed together on a group of machines

Page 11: Ansible

Running ping on all servers

Page 12: Ansible

Typical Ansible folder structure