public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Ansible, puppet and chef
Date: Wed, 17 Sep 2014 10:08:23 +0200	[thread overview]
Message-ID: <54194177.3000504@gmail.com> (raw)
In-Reply-To: <bd925620dcfacd4c0209cbdc15592eab@shmu.sk>

On 17/09/2014 09:07, Tomas Mozes wrote:
> On 2014-09-16 22:43, Alan McKinnon wrote:
>> Anyone here used ansible and at least one of puppet/chef?
>>
>> What are your thoughts?
>>
>> I've made several attempts over the years to get puppet going but never
>> really got it off the ground. Chef I stay away from (likely due to the
>> first demo of it I saw and how badly that went....)
>>
>> Puppet seems to me a good product for a large site with 1000 hosts.
>> Not so much for ~20 or so. Plus puppet's language and configs get large
>> and hard to keep track of - lots and lots of directory trees with many
>> things mentioning other things. (Nagios has the same problem if you
>> start keeping host, services, groups and commands in many different
>> files)
>>
>> I've stumbled upon ansible, it seems much better than puppet for
>> smallish sites with good odds I might even keep the whole thing in my
>> head at any one time :-)
>>
>> Anyone care to share experiences?
> 
> We use ansible.
> 
> I like it because you don't need any agents to install, just the ssh
> keys and python, which is mandatory on gentoo anyway. We use a
> minimalistic script that bootstraps machines (xen-domU) and then
> everything else is configured via ansible. Since version 1.6 there is
> the portage module to install software and you can do pretty stuff with
> replace/lineinfile/template/copy modules.
> 
> The roles are a good way of keeping your systems equal. We have a common
> role for all gentoo machines, then roles specific for dom0 and domU
> machines and then the actual roles of a project (project-app for
> application server of a project). You can even more abstract it to have
> a common application server or a common database, but since you can
> include other playbooks, we don't use it that way (also to not get lost
> in too many levels of abstractions).
> 
> For upgrades you either write precise playbooks (for example, before you
> used a specific "testing" package and now you want a newer "testing"
> one) where you delete the previous package.accept_keywords line and
> insert the new one. Or by having a small number of servers it's often
> faster by clusterssh.


That's almost exactly the same setup I have in mind.

How complex do the playbooks get in real-life?


-- 
Alan McKinnon
alan.mckinnon@gmail.com



  reply	other threads:[~2014-09-17  8:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16 20:43 [gentoo-user] Ansible, puppet and chef Alan McKinnon
2014-09-17  1:30 ` Alec Ten Harmsel
2014-09-17  2:56   ` [gentoo-user] " James
2014-09-17  7:07   ` [gentoo-user] " Alan McKinnon
2014-09-17  5:46 ` [gentoo-user] " Hans de Graaff
2014-09-17  8:06   ` Alan McKinnon
2014-09-17  7:07 ` [gentoo-user] " Tomas Mozes
2014-09-17  8:08   ` Alan McKinnon [this message]
2014-09-17 12:46     ` Tomas Mozes
2014-09-17 13:24       ` Alan McKinnon
2014-09-17  7:34 ` J. Roeleveld
2014-09-17  8:12   ` Alan McKinnon
2014-09-17  8:55     ` J. Roeleveld
2014-09-17  9:19 ` Eray Aslan
2014-09-17  9:34   ` J. Roeleveld
2014-09-17 12:07     ` Alan McKinnon
2014-09-17 12:36       ` Tomas Mozes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54194177.3000504@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox