Ansible -new kid in configuration management world

  • View
    180

  • Download
    0

Embed Size (px)

Text of Ansible -new kid in configuration management world

  • ANSIBLEnewkidinconfigurationmanagementworld

    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#main()

    Tuesday 5 November 13

    https://raw.github.com/ansible/ansible/devel/library/system/modprobehttps://raw.github.com/ansible/ansible/devel/library/system/modprobehttps://raw.github.com/ansible/ansible/devel/library/system/modprobehttps://raw.github.com/ansible/ansible/devel/library/system/modprobe

  • 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

    http://www.slideshare.net/gnosek/warsztaty-ansiblehttp://www.slideshare.net/gnosek/warsztaty-ansiblehttp://bit.ly/ansible-warsztatyhttp://bit.ly/ansible-warsztaty