Am 05.06.2010 05:33, schrieb Daniel Pittman:
David Schmitt<[email protected]> writes:
On 6/4/2010 3:45 AM, Daniel Pittman wrote:
Well, my use case pretty much always comes down to "do something for this data
about this host", and hasn't ever gotten more than two levels deep:
backuppc::server needs a per-client configuration
per-client configuration needs this clients mount-points and excludes
the load-balancer needs the hostname and ip of every app-server
Just as another "data point", I cover those things also with export/collect,
but do not need an ERB template, by actually creating the needed file
fragments (usable for volcane's concat) on the source hosts. Collection can
then use the<<||>> query language to select what's needed, in my cases
always by tag.
That approach has great flexibility, without the pain of accessing the DB
myself.
Heh. I use exactly this technique in my current backuppc configuration, and
it is a huge PITA to maintain. Sure, it works, by implementing a custom
template system on the target machine and pushing around fragments of files to
populate it.
So, my aim here is to get rid of the need to work around the fact that puppet
doesn't let me ask questions of another node to eliminate all that.
I guess tastes vary, though, if you think using concat is nicer than using
something that wraps the puppet database. :)
Well, the puppet database is not an "official" interface, although the
schema is quite stable lately. Using resource collection though, is an
official interface and it does query the underlying database well enough.
I'd really like to see your backuppc module, especially since mine isn't
very sophisticated yet.
Best Regards, David
--
dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at
Klosterneuburg UID: ATU64260999
FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg
--
You received this message because you are subscribed to the Google Groups "Puppet
Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.