Ansible -new kid in configuration management world
-
Upload
maciej-sawicki -
Category
Software
-
view
190 -
download
0
Transcript of Ansible -new kid in configuration management world
ANSIBLEnew kid in configuration management world
Maciej Sawicki, Warsaw, November 2013
Tuesday 5 November 13
WHY ANSIBLE?
agent-less
easy to start
python powered
“Batteries are Included”
Tuesday 5 November 13
POTENTIAL PROBLEMS
agent less == potentially slow, potential firewall issues
# include magic from lib/ansible/module_common.py
Tuesday 5 November 13
#!/usr/bin/env python2#coding: utf-8 -*-# https://raw.github.com/ansible/ansible/devel/library/system/modprobe
def main(): module = AnsibleModule( argument_spec={ 'name': {'required': True}, 'state': {'default': 'present', 'choices': ['present', 'absent']}, }, supports_check_mode=True, ) args = { 'changed': False, 'failed': False, 'name': module.params['name'], 'state': module.params['state'], }
#some code
# this is magic, see lib/ansible/module_common.py#<<INCLUDE_ANSIBLE_MODULE_COMMON>>main()
Tuesday 5 November 13
DEMO
Tuesday 5 November 13
NEXT STEPS
http://www.ansibleworks.com/docs/
http://www.slideshare.net/gnosek/warsztaty-ansible
http://bit.ly/ansible-warsztatytaty
http://devopsu.com/books/taste-test-puppet-chef-salt-stack-ansible.html
Tuesday 5 November 13