Intro and newbie question

Hi folks,

I've been using Puppet for a couple of years now and was using Dashboard as
my ENC for my "play stuff." With Dashboard going away (or at least not
being maintained) I have migrated to Foreman.

I just started with foreman (this week) and am looking to bring it into my
work environment. It is going to be the community version at least for a
while since getting funding around here is a regular PITA. My hope is once
the "powers that be" get a feel for how useful Puppet and Foreman are
they'll be easier to coax some $$ out of.

The question I have is with respect to stored configs. A module that I
want to bring into the mix uses stored configs to develop a list of nodes.

What is the "best practice" for stored configs under the Foreman umbrella.
Normally I'd just throw a PostgreSQL database together and call it a day
(or maybe PuppetDB) but I would like to know how others are doing this.

> Hi folks,
>
> I've been using Puppet for a couple of years now and was using Dashboard as
> my ENC for my "play stuff." With Dashboard going away (or at least not
> being maintained) I have migrated to Foreman.

Welcome to the community :slight_smile:

> The question I have is with respect to stored configs. A module that I
> want to bring into the mix uses stored configs to develop a list of nodes.
>
> What is the "best practice" for stored configs under the Foreman umbrella.
> Normally I'd just throw a PostgreSQL database together and call it a day (or
> maybe PuppetDB) but I would like to know how others are doing this.

Foreman is pretty orthogonal to storeconfigs - it doesn't require
them, nor does it mind if you use them. Just use a new db, don't try
to share Foreman's db with Puppet, that will make a mess.

If you're open to writing your own modules to accomplish your aims,
there's also a Puppet function[1] for Foreman which allows you to
query the Foreman API in your manifest, thus returning things like
names/ips/facts etc for other hosts in your infrastructure. It's an
alternative to storeconfigs if you're not happy about adding the extra
database.

HTH
Greg

[1]https://github.com/theforeman/puppet-foreman/blob/master/lib/puppet/parser/functions/foreman.rb

ยทยทยท On 5 June 2014 21:29, Peter Berghold wrote: