Re: [Puppet Users] Thoughts on preseed vs config files?

2012-05-04 Thread Dan Carley
On 2 May 2012 19:42, Brian Gupta wrote: > So having an internal debate on whether to use puppet managed debian > preseed files to configure packages prior to installation or > installing with no-config and using puppet to manage the config files > after the fact. > > The end of the discussion is

Re: [Puppet Users] Re: Can you check a setting set in puppet.conf from within a module

2012-05-04 Thread Dan Carley
On 25 April 2012 08:30, Peter wrote: > Hi Gary, > > Thank you very much! I thought it may have been a scoping issue! > > Peter. > > On Apr 25, 8:56 am, Gary Larizza wrote: > > Hey Peter, > > > > You should be able to do $settings::storeconfigs to get that value. > Speaking of scope, you probab

Re: [Puppet Users] Module organization

2012-05-04 Thread Luke Bigum
Thomas, Consider the following: node 'linux_machine', 'mac_machine' { class { "mail": } } class mail { if ($operatingsystem == 'MacOSX') { class { "mail::mac": } } elsif ($operatingsystem == 'RedHat') { class { "mail::rhel": } } } At a high level, all your machines are configur

Re: [Puppet Users] forcing user resource provider to be local files only?

2012-05-04 Thread Luke Bigum
Hi Philip, What's wrong with letting Puppet decide on the provider automatically? user { "luke": ensure => present, home => '/home/luke', password => 'zzz' } On 04/05/12 01:33, Philip Brown wrote: I see that there are an assorted bunch of "provider" types for resource type user.

Re: [Puppet Users] Puppet class not working after use augeas-0.10.0-3

2012-05-04 Thread Dominic Cleal
On 04/05/12 04:57, heriyanto wrote: > Yes nice.. its work thank you Dominic, but its still execute even its > already changed its normal for new augeas? because for old augeas not > trying to change if already change. "returns: executed successfully" Which version of Puppet are you using? Bug #

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-04 Thread Craig Dunn
All sounds very good... Here’s what’s new: * Hiera data keys can be namespaced o (e.g. 'dns::nameserver': '8.8.8.8') Namespace scoping is defiantly a massive improvement to Hiera - Im curious how this affects back ends though... Will lookup("nameserver") called from Puppet in a cla

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-04 Thread R.I.Pienaar
- Original Message - > From: "Pieter van de Bruggen" > > * How should we integrate hiera_array() and hiera_hash() ? > * How should we integrate hiera ’s “default” and “override” > parameters? > * How should we handle overlaps between data supplied by Hiera > and d

Re: [Puppet Users] mixing source & content (templates) in concat::fragment

2012-05-04 Thread Wolf Noble
I've been using this, which works pretty well for a template selector: file { "foo": content => inline_template( file( "/literal/path/to/template/on/puppetmaster/$hostname.erb", "/literal/path/to/template/on/puppetmaster/$devicename.erb", "/literal/path/to/templ

[Puppet Users] Re: logging to syslog does not distinct between errors notice and warning.

2012-05-04 Thread Ano nym
Hey, same problem here. Is there a fix since these poste available? kind regards, Ano Am Donnerstag, 19. November 2009 10:43:53 UTC+1 schrieb Rene: > > Hi > > If I run puppetd on a client with -l console I see things like: > ... > warning: //Node[default]/packages/ > notice: ... > err: ...

[Puppet Users] Puppet Dashboard not reporting hosts.....

2012-05-04 Thread Kaya Saman
Hi, I am still learning Puppet meaning that I'm still struggling through things. I have setup Puppet on CentOS 6.x (latest release), installed the Puppet Labs repos and followed the instructions on the site: http://docs.puppetlabs.com/guides/setting_up.html So far I am able to get the server t

Re: [Puppet Users] Puppet logging

2012-05-04 Thread John Kennedy
On Thu, May 3, 2012 at 8:07 AM, Bernd Adamowicz wrote: > You should try > > ** ** > > debug = true > > verbose = true > > ** ** > > in your agent and/or master configurations. Some more hints on monitoring > and on Nagios/Icinga checks are found here:

[Puppet Users] Re: Using templates from another module

2012-05-04 Thread jcbollinger
On May 3, 9:13 am, Josh wrote: > In fact, after messing about a lot more this seems like a terrible idea > since it removes the 'module as a stand-alone entity' concept and > introduces a whole load of complexity. I agree. > This leaves me with global templates or just including all my templ

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-04 Thread Ashley Penney
On Fri, May 4, 2012 at 5:05 AM, R.I.Pienaar wrote: > > I think the plan was that there would be a priority order as below: > > - someone wrote in a manifest: class{"foo": something => something} > - an ENC supplied the values for something on the class foo > - someone did "include foo" or clas

[Puppet Users] Re: Using templates from another module

2012-05-04 Thread Josh
> > I'm missing something here: why do you not want to put the template > into the module that uses it? > Basically, we are an ISP and have a whole bunch of different platforms with different network configurations, that also differ depending which datacentre they are in. I was hoping to hav

[Puppet Users] Re: Using templates from another module

2012-05-04 Thread jcbollinger
On May 3, 6:27 am, Josh wrote: > Now, in the 'my_network' module I have a definedtype that generates > /etc/network/interfaces from a given ERB template which is associated with > the platform, simplified version: > > define my_network::interfaces ($template = $title) { >   file { '/etc/network/

[Puppet Users] Re: Puppet 3.0 and Hiera

2012-05-04 Thread Josh
I'm not sure if its in there but one thing that would be *amazing* would be support for empty arrays/hashes. E.g. $hash1 = hiera_hash('hash1', {}) $hash1 = hiera_hash('hash2', {}) This means that now I can do a: merge_hash($hash1, $hash2) This will now work regardless of whether I have declare

[Puppet Users] Re: Issue: packages with same name, different providers.

2012-05-04 Thread jcbollinger
On May 3, 10:29 am, Alan Franzoni wrote: > Hello, > I've just run into an issue I'm not able to solve. > > I need to have puppet install both the mysql package through yum, AND > the mysql gem. > > Those are the pieces of my config as I'm trying to use it: > > package { 'mysql-all': >         en

[Puppet Users] Re: Check if class has been included?

2012-05-04 Thread jcbollinger
On May 4, 1:54 am, Dan Carley wrote: > On 3 May 2012 23:32, jcbollinger wrote: > > > > > Hmm.  I guess I misunderstood your objective.  It is still true that > > 'defined' is not a good approach, however, and also that > > os::motd::register is a bit rude to not take care of declaring its > > d

[Puppet Users] Re: Using templates from another module

2012-05-04 Thread Josh
> > I don't like that at all. Generally speaking, defined types should > not manage resources whose identity is independent of the type > parameters. > Yeah, I already binned that lot off and just used a class instead, as I say I was messing about to try and get it working > Ideally, thou

[Puppet Users] Re: Using templates from another module

2012-05-04 Thread Josh
> > (or can I ... can you just use multi-line yaml formatting and get the > template from there? Will give it a whirl) > ...of course not, what was I thinking :( -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the

[Puppet Users] Managing system yum repositories with yumrepo cache issues

2012-05-04 Thread Andy Taylor
Hi, I'm trying to get my yum module to manage system repositories like CentOS-Base. My yum module is part of a pre run stage so it puts the necessary repositories in place before other modules try to install anything. I've just run into a problem though; when Puppet installs a repo via yumrepo, i

Re: [Puppet Users] forcing user resource provider to be local files only?

2012-05-04 Thread Philip Brown
On Fri, May 4, 2012 at 1:18 AM, Luke Bigum wrote: > Hi Philip, > > What's wrong with letting Puppet decide on the provider automatically? > > user { "luke": ensure => present, home => '/home/luke', password => > 'zzz' } > We use NIS compat mode. we have 32,000 users through NIS. Puppe

[Puppet Users] Resource namespace issues with modules

2012-05-04 Thread Alan Franzoni
Hello, this is somewhat related to https://groups.google.com/forum/?hl=it&fromgroups#!topic/puppet-users/uqZKLikYbJs but I wanted to ask since it seems a more general issue. with puppet 2.7.14, puppet-module-tool has been pulled into core puppet, hence I think pre-cooked modules will become more

Re: [Puppet Users] RHEL 6 and ActiveRecord issues

2012-05-04 Thread Jeff Chapin
Is anyone successfully running a puppet master with stored configs on RHEL 6? If so, would they be able to share version information or setup documentation? Thanks, Jeff On Tue, May 1, 2012 at 1:57 PM, Jeff Chapin wrote: > All, > > I am trying to install puppet master version 2.7.13 on Red Hat

[Puppet Users] Re: Puppet 3.0 and Hiera

2012-05-04 Thread Jeremy Carroll
We use Hiera backed Puppet here at Klout. Mainly for the reasons of separating configuration data from puppet modules. We have had great success, and I welcome this change to puppet core. Reminds me of some of Chef's "Deep Merge" functionality. Here are a few of my thoughts. - Name spacing v

Re: [Puppet Users] Puppet Dashboard not reporting hosts.....

2012-05-04 Thread Nan Liu
On Fri, May 4, 2012 at 3:59 AM, Kaya Saman wrote: > Hi, > > I am still learning Puppet meaning that I'm still struggling through things. > > > I have setup Puppet on CentOS 6.x (latest release), installed the > Puppet Labs repos and followed the instructions on the site: > > http://docs.puppetlabs

Re: [Puppet Users] Re: Puppet 3.0 and Hiera

2012-05-04 Thread R.I.Pienaar
- Original Message - > From: "Jeremy Carroll" > To: puppet-users@googlegroups.com > Sent: Friday, May 4, 2012 5:19:37 PM > Subject: [Puppet Users] Re: Puppet 3.0 and Hiera > > We use Hiera backed Puppet here at Klout. Mainly for the reasons of > separating configuration data from puppet

[Puppet Users] Re: Puppet 3.0 and Hiera

2012-05-04 Thread Jeremy Carroll
We use Hiera backed Puppet here at Klout. Mainly for the reasons of separating configuration data from puppet modules. We have had great success, and I welcome this change to puppet core. Reminds me of some of Chef's "Deep Merge" functionality. Here are a few of my thoughts. - Name spacing v

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-04 Thread Ohad Levy
On Fri, May 4, 2012 at 12:05 PM, R.I.Pienaar wrote: > > > - Original Message - > > From: "Pieter van de Bruggen" > > > > > > > * How should we integrate hiera_array() and hiera_hash() ? > > * How should we integrate hiera ’s “default” and “override” > > parameters? > > *

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-04 Thread Daniel Pittman
On Fri, May 4, 2012 at 12:05 PM, Ohad Levy wrote: > On Fri, May 4, 2012 at 12:05 PM, R.I.Pienaar wrote: >> - Original Message - >> > From: "Pieter van de Bruggen" >> >> >> >> > >> >     * How should we integrate hiera_array() and hiera_hash() ? >> >     * How should we integrate hiera ’

Re: [Puppet Users] Managing system yum repositories with yumrepo cache issues

2012-05-04 Thread Jo Rhett
I just have it run a "yum clean all" exec command every time a repo is updated. Since they all refer to the same exec, it only happens once after the repos are updated. The tricky part is ensuring that anything trying to update software in the same run has a require=> set that ensures all the

[Puppet Users] Template populated from multiple defines

2012-05-04 Thread Jared Curtis
I'm trying to create a file similar to this Name User One Phone 111222 Name User Two I want to be able to add users in this fashion app::users { 'user1': name => 'User One', phone => '111222'; 'user2': name => 'User Two'; } Then use a template to create the a

Re: [Puppet Users] Puppet logging

2012-05-04 Thread Michael Baydoun
Is your daemon started with a different --logdest=/path/file specified? On Fri, May 4, 2012 at 7:45 AM, John Kennedy wrote: > > On Thu, May 3, 2012 at 8:07 AM, Bernd Adamowicz < > bernd.adamow...@esailors.de> wrote: > >> You should try >> >> ** ** >> >> debug = true >> >

Re: [Puppet Users] Managing system yum repositories with yumrepo cache issues

2012-05-04 Thread Eric Shamow
Just a note - it's better to do yum clean metadata than all in most cases. There's no reason to drop all that cached package stuff - you just want to get rid of the repo index. -- Eric Shamow Professional Services http://puppetlabs.com/ (c)631.871.6441 On Friday, May 4, 2012 at 5:11 PM,

Re: [Puppet Users] Puppet logging

2012-05-04 Thread John Kennedy
Nope... Thanks, John John Kennedy On Fri, May 4, 2012 at 8:08 PM, Michael Baydoun wrote: > Is your daemon started with a different --logdest=/path/file specified? > > On Fri, May 4, 2012 at 7:45 AM, John Kennedy wrote: > >> >> On Thu, May 3, 2012 at 8:07 AM, Bernd Adamowicz < >> bernd.adamow.

Re: [Puppet Users] Puppet logging

2012-05-04 Thread Michael Baydoun
Can you post your full puppet.conf? Redact anything sensitive. On Fri, May 4, 2012 at 9:27 PM, John Kennedy wrote: > Nope... > Thanks, > John > > John Kennedy > > > > > On Fri, May 4, 2012 at 8:08 PM, Michael Baydoun wrote: > >> Is your daemon started with a different --logdest=/path/file speci