2012-03-07 17:35:18 +01:00
2012-07-28 04:16:14 +02:00
Introducing Ansible
`` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ``
2012-04-19 16:13:45 +02:00
Ansible is a radically simple model-driven configuration management, deployment,
2012-07-28 04:16:14 +02:00
and command execution framework. Other tools in this space have been too complicated for too long,
require too much bootstrapping, and have too much learning curve. By comparison, Ansible is dead simple
and painless to extend. Puppet and Chef have about 60k lines of code. Ansible's core is a little over 2000 lines.
2012-08-18 16:23:17 +02:00
Ansible isn't just for configuration management -- it's also great for ad-hoc tasks, quickly firing off commands against nodes, and it excels at complex multi-tier deployment tasks, being designed for that purpose from day one.
2012-07-28 04:16:14 +02:00
Systems management doesn't have to be complicated. We've learned well from the "Infrastructure is Code" movement.
Infrastructure should be easy and powerful to command, but it should not look like code, lest it acquire the disadvantages of a software project -- bugs, complexity, and overhead. Infrastructure configurations should be simple, easy to develop, and easy to audit. This is Ansible's philosophy and the main reason it's different. Read on, though, and we'll tell you more.
+---------------------------------------------------------------------+
| Key Features |
+=====================================================================+
| Dead simple setup |
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| Can be easily run from a checkout, no installation required |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| No agents or software to install on managed machines |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| Ultra-secure; uses existing SSHd out of the box |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| Connect as any user, not just root, and sudo as needed |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| Super fast & parallel by default |
+---------------------------------------------------------------------+
| Supports Kerberized SSH, jump hosts, forwarding, etc |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
| Modules are idempotent, but you can also easily use shell commands |
+---------------------------------------------------------------------+
| Modules can be written in ANY language |
+---------------------------------------------------------------------+
2012-08-18 16:23:17 +02:00
| Orchestrates load balancer rotations and outage windows |
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| Awesome API for creating very powerful distributed applications |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
| Pluggable transports (SSH is just the default) |
+---------------------------------------------------------------------+
2012-07-28 16:17:14 +02:00
| Can draw inventory data from external sources like EC2 and Cobbler |
2012-07-28 04:16:14 +02:00
+---------------------------------------------------------------------+
| The easiest config management system to use, ever. |
+---------------------------------------------------------------------+
2012-03-07 17:35:18 +01:00
2012-03-11 01:48:53 +01:00
Architecture
2012-04-19 16:45:41 +02:00
`` ` ` ` ` ` ` ` ` ``
2012-03-11 01:48:53 +01:00
2012-03-31 16:43:34 +02:00
.. image :: http://ansible.github.com/ansible_arch2.jpg
2012-07-28 04:16:14 +02:00
:alt: "Architecture Diagram"
:width: 800
:align: center
+--------------------------------------------------------------------------------------------------------+
| Tell Me More |
+====================================+===================================================================+
| Multi-node control & orchestration | Ansible is especially strong at expressing complex multi-node |
| | deployment processes, executing ordered sequences on |
| | different sets of nodes through :doc: `playbooks` . Performing |
| | steps on all your webservers, then some steps on your database |
| | servers, and then some steps on monitoring servers -- all the |
| | while sharing variables between them is trivial. |
+------------------------------------+-------------------------------------------------------------------+
2012-07-28 04:30:36 +02:00
| Doesn't choose sides in the | Modules can be written in Bash, Perl, Python, Ruby, whatever. |
| language war | Playbooks are not a programming language, but a data format. |
2012-07-28 04:16:14 +02:00
+------------------------------------+-------------------------------------------------------------------+
| Infrastructure Is Not Code, | Playbooks are not a programming language, they are designed to be |
| Infrastructure Is Data | super-easy to write, and easy to audit by non-developers. You |
| | will be able to skim and very quickly understand your entire |
| | configuration policy. |
+------------------------------------+-------------------------------------------------------------------+
| Three In One | Ansible handles multiple command and control |
| | problems in one tool. You don't need to use a config tool, a |
| | deployment tool, and yet another ad-hoc parallel task execution |
| | tool -- Ansible will do all three. |
+------------------------------------+-------------------------------------------------------------------+
| Lower Attack Surface, No Agents | Ansible is very secure. Ansible uses SSH as a transport, |
| | resulting in a much lower attack surface, and requires no agents |
| | to be running on managed machines. If a central server |
2012-08-31 04:58:09 +02:00
| | containing your playbooks is compromised, your nodes are not -- |
2012-07-28 04:16:14 +02:00
| | which is NOT the case of most other tools, which can, more or |
| | less, turn into a botnet. Our security approach is to avoid |
| | writing custom crypto code altogether, and rely on the most |
| | secure part of the Linux/Unix subsystem that your machines are |
| | already using -- openssh. |
+------------------------------------+-------------------------------------------------------------------+
2012-03-07 17:35:18 +01:00
2012-07-28 04:30:36 +02:00
+-----------------------------------------------------------------------------------------------------------+
| Community |
+===========================================================================================================+
| Your ideas and contributions are welcome. We're also happy to help |
| you with questions about Ansible. |
+------------------------+----------------------------------------------------------------------------------+
| Get the source | Visit the `project page <https://github.com/ansible/ansible> `_ on Github |
+------------------------+----------------------------------------------------------------------------------+
| File a bug | View the `issue tracker <https://github.com/ansible/ansible/issues> `_ |
+------------------------+----------------------------------------------------------------------------------+
| Spread the word | Watch slides on `Speakerdeck <http://speakerdeck.com/u/mpdehaan/p/ansible> `_ |
+------------------------+----------------------------------------------------------------------------------+
| Join the mailing list | Visit the `Google Group <http://groups.google.com/group/ansible-project> `_ |
+------------------------+----------------------------------------------------------------------------------+
| Chat | Visit the channel on `FreeNode <http://webchat.freenode.net/?channels=ansible> `_ |
+------------------------+----------------------------------------------------------------------------------+
2012-07-28 04:56:53 +02:00
| Share & Learn | Share `playbooks, modules, articles, and scripts <http://bit.ly/NNwUgY> `_ |
+------------------------+----------------------------------------------------------------------------------+
2012-07-28 04:16:14 +02:00
+-----------------------------------------------------------------------------------------------------------+
2012-08-09 04:17:32 +02:00
| What (Real) People Are Saying |
2012-07-28 04:16:14 +02:00
+===========================================================================================================+
| "I've been trying to grok Chef these last weeks, and really, I don't get it. I discovered ansible |
| yesterday at noon, successfully ran it at 1pm, made my first playbook by 2pm, and pushed two small |
| [contributions to the project] before the office closed... Do that with any other config management |
| software!" |
+-----------------------------------------------------------------------------------------------------------+
| "Ansible is much more firewall-friendly. I have a number of hosts that are only accessible via reverse |
| SSH tunnels, and let me tell you getting puppet or chef to play nice with that is a nightmare." |
+-----------------------------------------------------------------------------------------------------------+
| "This software has really changed my life as an network admin, the simplicity ansible comes with is |
| really childs-play and I really adore its design. No more hassle with SSL keys, DNS based 'server |
| entries' (e.g. puppet and what not). Just plain (secure!) SSH keys and one is good to go." |
+-----------------------------------------------------------------------------------------------------------+
2012-07-28 04:42:07 +02:00
| "You may get a kick out of the fact that I'm using ansible to install puppetmaster(s). I'm starting to |
| migrate all my stuff to the much more sensical ansible. Nice work." |
+-----------------------------------------------------------------------------------------------------------+
| "Simple as hell" |
2012-08-09 04:17:32 +02:00
+-----------------------------------------------------------------------------------------------------------+
| "I swear, I have gotten more done with Ansible in three days than I did in not getting chef installed |
| in three weeks." |
2012-07-28 04:16:14 +02:00
+-----------------------------------------------------------------------------------------------------------+
2012-08-17 04:04:07 +02:00
| "Puppet was hell... gave up on Chef... found ansible and couldn't be happier." |
+-----------------------------------------------------------------------------------------------------------+
| "Really impressed with Ansible. Up and running in ¼ of the time it took to get going with Puppet." |
+-----------------------------------------------------------------------------------------------------------+
2012-07-28 04:16:14 +02:00
2012-07-28 04:30:36 +02:00
+--------------------------------------------------------------------------------------------------+
| Presented By... |
+==================================================================================================+
| Ansible was created and is run by `Michael DeHaan <http://michaeldehaan.net> `_ |
| (`@laserllama <http://twitter.com/#!/laserllama> `_ ), a Raleigh, NC |
2012-08-17 04:09:45 +02:00
| based software developer and architect, who also created the popular open-source |
2012-07-28 04:30:36 +02:00
| DevOps install server `Cobbler <http://cobbler.github.com/> `_ . |
| Cobbler is used to deploy mission critical systems all over the |
| planet, in industries ranging from massively multiplayer gaming, core |
| internet infrastructure, finance, chip design, and more. Michael also |
| helped co-author `Func <http://fedorahosted.org/func/> `_ , a precursor to Ansible, which is used |
| to orchestrate systems in lots of diverse places. He's worked on systems |
| software for IBM, Motorola, Red Hat's Emerging Technologies Group, |
| Puppet Labs, and is now with `rPath <http://rpath.com> `_ . Reach Michael by email |
| `here <mailto:michael.dehaan@gmail.com> `_ . |
+--------------------------------------------------------------------------------------------------+
2012-07-28 04:16:14 +02:00
Documentation
`` ` ` ` ` ` ` ` ` ` ``
2012-03-07 17:35:18 +01:00
.. toctree ::
2012-07-28 04:16:14 +02:00
:maxdepth: 1
2012-03-07 17:35:18 +01:00
gettingstarted
patterns
2012-03-09 04:50:00 +01:00
examples
2012-03-07 17:35:18 +01:00
modules
2012-03-11 20:34:21 +01:00
YAMLSyntax
2012-03-07 17:35:18 +01:00
playbooks
2012-05-13 17:00:02 +02:00
playbooks2
2012-05-13 17:56:09 +02:00
bestpractices
2012-03-07 17:35:18 +01:00
api
2012-03-14 17:50:40 +01:00
moduledev
2012-03-10 03:50:00 +01:00
faq
2012-07-26 05:33:32 +02:00
who_uses_ansible
2012-03-08 19:53:48 +01:00
2012-07-28 04:30:36 +02:00
2012-08-03 06:01:23 +02:00