public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Managing multiple systems with identical hardware
Date: Tue, 01 Oct 2013 10:04:54 -0400	[thread overview]
Message-ID: <524AD686.9000204@orlitzky.com> (raw)
In-Reply-To: <CAN0CFw2+JVYOvAstO06EMmBO96Mt+rPzx0Ny4Q+o=+h9uCDJcw@mail.gmail.com>

Jumping in randomly:

With portage-2.2 stable, you can now put sets in overlays. This has
greatly simplified our shared configuration, because I can push out a
base set of packages to every system just by including it in our overlay
(which is configured on every machine).

If you can push out package sets, you can push out configuration. I've
recently started pushing out our Apache configs this way. I have a
package called apache2-macros, and an ebuild in our overlay for
apache2-macros-x.y.z. This is part of the set that gets installed on all
web servers, so when I update the apache2-macros package and ebuild, it
automatically gets pushed to the web servers during the next update.

You can use -9999 instead for convenience, but then you'll have to
remember to re-emerge it now and then.

For the config files that /differ/, I just use a makefile. I have a git
repo laid out like the filesystem hierarchy, i.e. in the root of the
repo I have "etc", and "usr" directories containing any config files
that need to be copied to /etc or /usr. The makefile isn't very
complicated, one magic rule handles most of the files which are plain
text and wind up in /etc. Here's a short example.

  FILES = /etc/conf.d/net \
          /etc/portage/env

  all: $(FILES)

  /%: ./%
  	cp $< $@
  	chmod 644 $@

You can add more files without touching the rules unless you need
different permissions.



  reply	other threads:[~2013-10-01 14:05 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25 21:18 [gentoo-user] Managing multiple systems with identical hardware Grant
2013-09-25 21:42 ` Alan McKinnon
2013-09-26  9:08   ` Grant
2013-09-26 20:42     ` Alan McKinnon
2013-09-27  4:33       ` Johann Schmitz
2013-09-27  5:34         ` Alan McKinnon
2013-09-27 10:37       ` Grant
2013-09-27 19:44         ` Alan McKinnon
2013-09-27 20:30           ` [gentoo-user] " James
2013-09-29 18:36             ` Grant
2013-09-29 20:39               ` Alan McKinnon
2013-09-29 18:31           ` [gentoo-user] " Grant
2013-09-29 19:06             ` Neil Bothwick
2013-09-29 20:57             ` Alan McKinnon
2013-09-30 17:31               ` Grant
2013-09-30 19:28                 ` thegeezer
2013-09-30 19:31                 ` Alan McKinnon
2013-09-30 19:53                   ` Frank Steinmetzger
2013-10-01  6:19                     ` Grant
2013-10-01 14:04                       ` Michael Orlitzky [this message]
2013-10-01 15:00                         ` Neil Bothwick
2013-09-30 21:02                   ` Neil Bothwick
2013-10-01  6:26                     ` Grant
2013-10-01  6:07                   ` Grant
2013-10-01  6:20                     ` Alan McKinnon
2013-10-02 18:54                       ` Grant
2013-12-12 23:54                         ` Grant
2013-12-13  0:16                           ` Poison BL.
2013-12-13  0:34                             ` wraeth
2013-12-13  2:06                               ` Grant
2013-12-13  9:12                                 ` Neil Bothwick
2013-12-13  1:49                             ` Grant
2013-12-13  7:57                               ` Alan McKinnon
2013-12-13  9:18                               ` Neil Bothwick
2013-12-13  7:52                           ` Alan McKinnon
2013-10-01  7:43                     ` Neil Bothwick
2013-10-01 18:37                   ` joost

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=524AD686.9000204@orlitzky.com \
    --to=michael@orlitzky.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