[Puppet Users] Easy way to debug code

2013-07-10 Thread Michael Dodwell
Hi, Trying to write a generic function to deal with either arrays or strings. Here's a cutdown version of what I'm writing highlighting the problem I have. All i'm trying to do is take 'server1.testing.com' from the variable $server (the variable being either a string or an array) and assign i

Re: [Puppet Users] Puppet Razor doesn't recognize Scientific Linux?

2013-07-10 Thread Peter Bukowinski
Actually, you get a different error pointing to init.pp. You also need to modify manifests/init.pp on line 42 to include 'Scientific'. -- Peter Bukowinski On Jul 10, 2013, at 8:36 PM, Stefan Lasiewski wrote: > I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat > Ente

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Dan White
On Jul 10, 2013, at 5:28 PM, Kent R. Spillner wrote: > What's the use case for running NTP from cron? http://www.nsa.gov/ia/_files/os/redhat/NSA_RHEL_5_GUIDE_v4.2.pdf In general, they recommend running a daemon only when absolutely necessary. The ntp daemon is only necessary for a time-server

Re: [Puppet Users] Puppet Razor doesn't recognize Scientific Linux?

2013-07-10 Thread Wolf Noble
It seems like the match is 'Scientific' not 'Scientific Linux' but I'm nowhere near a computer to check MobileMail > On Jul 10, 2013, at 19:36, Stefan Lasiewski wrote: > > I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat > Enterprise Linux, similar to CentOS. > >

[Puppet Users] Puppet Razor doesn't recognize Scientific Linux?

2013-07-10 Thread Stefan Lasiewski
I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat Enterprise Linux, similar to CentOS. I am following the instructions at http://forge.puppetlabs.com/puppetlabs/razor to install Puppet Razor on my new Puppet Master node. The instructions say: Installation Install p

[Puppet Users] Re: Problem retreiving catalog

2013-07-10 Thread Nikolay Georgieff
I solved my issue. Cloned the shared db for Foreman (emptied the type column @ hosts table) and updated the external_node.rb with the latest one. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

[Puppet Users] Announce: Facter 1.7.2 Available

2013-07-10 Thread Matthaus Owens
Facter 1.7.2 is a bugfix release in the 1.7 series. To see a list of the issues addressed by this release, check out the 1.7.2 version in our issue tracker at: https://projects.puppetlabs.com/versions/403 Downloads are available at: * Source: https://downloads.puppetlabs.com/facter/facter-1.7.2.

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Jason Slagle
On 07/10/2013 06:33 PM, Jason Slagle wrote: If you use hiera and puppet 3, specifying servers is as easy as putting ntp::servers in hiera. Bah! And the reply to gets me again - this was a quick note just to him - hence no trimming and the top post. Sorry about that. Jason -- You receive

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Jason Slagle
If you use hiera and puppet 3, specifying servers is as easy as putting ntp::servers in hiera. Jason On 07/10/2013 04:52 PM, Dan White wrote: OK. Here are some wish-list items: Using ntp by cron rather than as a daemon An easy way to specify your own, internal time servers without tearing up

[Puppet Users] Automating Change Ticket Creation following module deployment

2013-07-10 Thread Worker Bee
Hi Everyone; This is a way-out there question but, I wanted to see if anyone has any advise to offer. We have an API to our Change Management System. Presently, I have a perl script that creates a record in the change mgmt system but, the script is somewhat manual (ie the use has to execute the

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Matthew Burgess
On 10 July 2013 18:57, Ashley Penney wrote: > Hi guys, > > As I mentioned in a previous email I've refactored ntp and released a > 1.0.0 release candidate. There's one outstanding "flaw" remaining that's > bothering me and I wanted to solicit opinions on the list. We currently > maintain a temp

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Kent R. Spillner
What's the use case for running NTP from cron? In general, that's considered bad practice, and unnecessary because of ntpd's maturity. A few years ago we were bitten by NTP running out of cron on RedHat Enterprise Linux 6.0 systems because of the "tickless kernel." On Jul 10, 2013, at 15:52,

Re: [Puppet Users] MCollective Puppet plugin - runall not working

2013-07-10 Thread R.I.Pienaar
- Original Message - > From: "Jon Ward" > To: puppet-users@googlegroups.com > Sent: Wednesday, July 10, 2013 5:15:59 PM > Subject: [Puppet Users] MCollective Puppet plugin - runall not working > > Hi, > > I've got the Puppet plugin for MCollective installed and working, however > the '

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Dan White
OK. Here are some wish-list items: Using ntp by cron rather than as a daemon An easy way to specify your own, internal time servers without tearing up the class. In the Red Hat template (since that's what I work on) : There is no resource to ensure the driftfile exists or has the proper permi

[Puppet Users] Puppet Master and Puppet Dashboard Server Fails to Send Report to itself

2013-07-10 Thread phundisk
I have a puppet master who cannot send its puppet report to the puppet dashboard server, which is located on itself. All the clients are successfully sending the reports every time. I have tried multiple options on the puppet master but I have yet to figure out as to why this is not sending c

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Ashley Penney
On Wed, Jul 10, 2013 at 5:14 AM, Matthias Saou wrote: > > It looks really nice and clean! I would personally only have a few very > minor nitpicks : > > * Shouldn't the placeholder files/README.markdown be removed? > * Space between class name and parenthesis inconsistency : >"class foo(...

[Puppet Users] Re: One resource immediately after another

2013-07-10 Thread jcbollinger
On Wednesday, July 10, 2013 10:48:48 AM UTC-5, Jérémie Sebban wrote: > > I don't remember where I found this, but I'm now using this all over my > manifests: > > file { 'toto1': > content => bla1, > } -> > > exec { 'toto2': > command => bla2, > } -> > > And so on... -> :) > > Hope it can work

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread jcbollinger
On Wednesday, July 10, 2013 9:03:02 AM UTC-5, Trevor Vaughan wrote: > > Just out of curiosity, has anyone done a performance analysis on moving to > the Anchor -> Class dependency structure? > > Since these classes are small, it shouldn't be *too* bad but I can see > issues with using this patt

[Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Ashley Penney
Hi guys, As I mentioned in a previous email I've refactored ntp and released a 1.0.0 release candidate. There's one outstanding "flaw" remaining that's bothering me and I wanted to solicit opinions on the list. We currently maintain a template per distribution that is close to the stock dist

Re: [Puppet Users] Recommended method of running puppet periodically on mac os x

2013-07-10 Thread Peter Bukowinski
On Jul 10, 2013, at 4:32 AM, Paul Tötterman wrote: > Hi, > > I tried asking this question on ask.puppetlabs.com, but haven't got any > responses yet: > > https://ask.puppetlabs.com/question/1975/recommended-method-of-running-puppet-periodically-on-mac-os-x/ > > Is there some source of puppet

Re: [Puppet Users] Problem retreiving catalog

2013-07-10 Thread Nikolay Georgieff
Hi Ohad, I have the same issue since I've upgraded to 1.2. What do you mean with "would need to dump the db into a new foreman db (or puppet)"? Currently I'm sharing the same database for puppet and foreman. Should I just clone the same database and reconfigure Foreman and Puppet to use both d

Re: [Puppet Users] Renaming puppet binary to use with two puppet agent instances

2013-07-10 Thread John V.
This isn't about two masters, but two agents. The reason being is permissions.. sudo, ldap, nfs, ntp, etc is managed by a separate group. Everything else is up to us. We do not have access to that master and they are using 2.7, while we would like to use the 3.x version. It's not the best situ

[Puppet Users] MCollective Puppet plugin - runall not working

2013-07-10 Thread Jon Ward
Hi, I've got the Puppet plugin for MCollective installed and working, however the 'runall' action always discovers 0 enabled nodes. # mco puppet runall 2 > 2013-07-10 15:57:16: Running all nodes with a concurrency of 2 > 2013-07-10 15:57:16: Discovering enabled Puppet nodes to manage > 2013-07-1

Re: [Puppet Users] get some issues using rake command with puppet enterprise VM

2013-07-10 Thread Justin Stoller
On Wed, Jul 10, 2013 at 2:15 AM, Wen Andes wrote: > Hi, all, > > I use puppet enterprise VM (pe 3.0) with dashboard (version 2.0 built-in) > to set up my very simple env. but in the master node, when I want to check > the 'rake' API, I failed with '-bash: rake: command not found'. And I also > se

[Puppet Users] Re: One resource immediately after another

2013-07-10 Thread Jérémie Sebban
I don't remember where I found this, but I'm now using this all over my manifests: file { 'toto1': content => bla1, } -> exec { 'toto2': command => bla2, } -> And so on... -> :) Hope it can work for your case, I use this rather than "require" to have lighter and more readable manifests. J

Re: [Puppet Users] multiple masters and CA's - what's the issue?

2013-07-10 Thread Trevor Vaughan
It's generally easier to just back up that one directory to your backup system (you have one, right?). Recovery then becomes a breeze in general. The only thing to watch out for is to keep a good handle on when your CA cert expires and give yourself a good two weeks to get everything rolled over t

[Puppet Users] puppet notifications

2013-07-10 Thread Stan
Hello, I configured puppet to receive notifications when there is a change, but it does not work. Is there a module to install? My configuration is it correct? Puppet configuration : [master] tag = /etc/puppet/tagmail.conf reportdir = /var/lib/puppet/reports reporturl

[Puppet Users] puppet agent --test errors

2013-07-10 Thread Joseph Mwesigwa Bbaale
Hello puppet-users. I am really new to puppet so, please pardon me if my question has rather an obvious answer. I have tried to install puppet on both a Debian 6 VM and CentOS 6.3 VM but always get this error along the way: ## Setting up the database... Configuring postgresql server... Postg

Re: [Puppet Users] How to download host specific file

2013-07-10 Thread Peter Bukowinski
On Jul 9, 2013, at 8:36 PM, Mani Devarajan wrote: > Hello, > We have close to 10 nodes running puppet agent, and currently all of them > download same file from puppet master. > > Current definition: > file { /etc/test.conf: > mode => 440, > owner => root, > group => root,

[Puppet Users] multiple masters and CA's - what's the issue?

2013-07-10 Thread Klavs Klavsen
Hi, I've just setup a new secondary master - following http://docs.puppetlabs.com/guides/scaling_multiple_masters.html Nice docu. Much easier than when I first did it (with 0.24 :) One thing I'm wondering about, is why there can be ONLY 1 CA ? is it because of the CRL ? I was thinking of copy

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Trevor Vaughan
Just out of curiosity, has anyone done a performance analysis on moving to the Anchor -> Class dependency structure? Since these classes are small, it shouldn't be *too* bad but I can see issues with using this pattern blindly in terms of memory usage and catalog size/transmission size. Alternati

Re: [Puppet Users] Re: puppet cert error

2013-07-10 Thread Felipe Salum
Hi Jason, Yes I did something similar but I just recovered a snapshot from my volume before the corrupted certs happened and replace everything. Regards, Felipe On Jul 10, 2013 10:13 AM, "binaryred" wrote: > Felipe, > > Not sure if you found an answer to this, but I had the same problem and > f

Re: [Puppet Users] Invalid resource type anchor.

2013-07-10 Thread Kevin D
I also believe that stdlib needs to be in the same directory of the referenced (or specified) module path. In other words, if moduleA is in /etc/pupppet/modules, then stdlib needs to be in the same parent directory as moduleA. Consequently, if moduleB is in /var/temp/puppet/modules, std needs

[Puppet Users] Puppet Developer Certification Available Now

2013-07-10 Thread Jamie Rosa
I wanted to let everyone know that the Puppet Developer certification exam is now ready. A huge thank you to everyone who helped us by beta testing this exam to make sure that we had the right set of questions! As a reminder, we also have the Puppet Professional Certification in addition to the Pu

[Puppet Users] How to download host specific file

2013-07-10 Thread Mani Devarajan
Hello, We have close to 10 nodes running puppet agent, and currently all of them download same file from puppet master. Current definition: file { /etc/test.conf: mode => 440, owner => root, group => root, content => template('vem/test.conf.erb') } New definit

[Puppet Users] get some issues using rake command with puppet enterprise VM

2013-07-10 Thread Wen Andes
Hi, all, I use puppet enterprise VM (pe 3.0) with dashboard (version 2.0 built-in) to set up my very simple env. but in the master node, when I want to check the 'rake' API, I failed with '-bash: rake: command not found'. And I also see that the 'gem' command failed. but in fact rubygem is inst

[Puppet Users] Re: One resource immediately after another

2013-07-10 Thread jcbollinger
On Tuesday, July 9, 2013 7:01:54 AM UTC-5, Nevorotin Vadim wrote: > > I need to apply three resources one immediatelly after another. It's a > ifdown/ifup commands, and command to generate /etc/network/interfaces file. > I need to do ifdown, then rebuild interfaces, then ifup. Do you really?

[Puppet Users] Re: puppet cert error

2013-07-10 Thread binaryred
Felipe, Not sure if you found an answer to this, but I had the same problem and found that my problem was corrupt certificate requests were generated while the disk was full. After I cleaned up the disk, I had to clear out the /var/lib/puppet/ssl/ca/requests directory and then everything worke

Re: [Puppet Users] Invalid resource type anchor.

2013-07-10 Thread jcbollinger
On Tuesday, July 9, 2013 9:52:26 AM UTC-5, banjer wrote: > > I had to install the puppet stdlib module with: > > *puppet module install puppetlabs/stdlib* > > > and that fixed the issue. It wasn't available in my /etc/puppet/modules. > I'm not sure if its *supposed* to be installed by default.

[Puppet Users] Re: One resource immediately after another

2013-07-10 Thread Elias Probst
Am Dienstag, 9. Juli 2013 19:22:01 UTC+2 schrieb Nevorotin Vadim: > I've found a hack to forbid File resources with source attribute to be > applied before all ifup's: > > Exec["ifup $iface"] -> File <| source != [] |> > > Unfortunatelly, it's undefined undocumented behavior, so the problem is >

Re: [Puppet Users] Disable tagmail store in dev environment

2013-07-10 Thread Dan White
Command line option is " --no-report" “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "Lothar Gesslein" To: puppet-users@googlegroups.co

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Francis Pereira
Thanks Matthias ~Francis http://7terminals.com On Wed, Jul 10, 2013 at 5:31 PM, Matthias Saou wrote: > On Wed, 10 Jul 2013 17:09:25 +0530 > Francis Pereira wrote: > > > How do you get the service to restart if the config file changes ? > > Look at the ~> (and not ->) at the bottom of init.pp

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Matthias Saou
On Wed, 10 Jul 2013 17:09:25 +0530 Francis Pereira wrote: > How do you get the service to restart if the config file changes ? Look at the ~> (and not ->) at the bottom of init.pp, where the config class notifies the service class : Anchor['ntp::begin'] -> Class['::ntp::install'] -> Class['

[Puppet Users] Disable tagmail store in dev environment

2013-07-10 Thread Lothar Gesslein
Hi, We use the tagmail report so we get mails about errors on the agents. This works fine and is quite useful for the production environment. Now we also have a [dev] environment, where having errors is expected. I can not find any way to disable the tagmail store only for the dev-environment. No

Re: [Puppet Users] Fwd: [Module team] Much ado about modules

2013-07-10 Thread Nikola Petrov
On Tue, Jul 09, 2013 at 09:23:39AM -0700, jcbollinger wrote: > > > On Monday, July 8, 2013 11:02:25 AM UTC-5, Ashley Penney wrote: > > > > > > This is definitely something we want to do and need to do. I've been a > > little hesitant to wade down into the whole "these are the specific > > para

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Francis Pereira
How do you get the service to restart if the config file changes ? ~Francis http://7terminals.com On Wed, Jul 10, 2013 at 2:44 PM, Matthias Saou wrote: > On Tue, 9 Jul 2013 18:21:52 -0400 > Ashley Penney wrote: > > > http://forge.puppetlabs.com/puppetlabs/ntp/1.0.0-rc1 or github is > > where

[Puppet Users] dashboard groups

2013-07-10 Thread Peter Berghold
Is there a global variable (or variables) that get set when a group gets defined in dashboard? What I'm trying to do is in a template have a conditional such that if a host is in one group do "this" and if not in that group do "that". -- Peter L. Berghold salty.cowd...@g

[Puppet Users] Re: The handy Grail of Modules Standards

2013-07-10 Thread Alessandro Franceschi
An update on the works. There's a github organization where discussion and code can be provided in a more "neutral" way: https://github.com/stdmod The contents of the Good docs have been collected and moved to https://github.com/stdmod/puppet-modules Here you can see a list of possible naming s

Re: [Puppet Users] puppetlabs-ntp 1.0.0-rc1

2013-07-10 Thread Matthias Saou
On Tue, 9 Jul 2013 18:21:52 -0400 Ashley Penney wrote: > http://forge.puppetlabs.com/puppetlabs/ntp/1.0.0-rc1 or github is > where you can grab the latest if you're willing to test it. > > If you have any feedback regarding the general design of the module > this is an excellent place to hash it

[Puppet Users] Recommended method of running puppet periodically on mac os x

2013-07-10 Thread Paul Tötterman
Hi, I tried asking this question on ask.puppetlabs.com, but haven't got any responses yet: https://ask.puppetlabs.com/question/1975/recommended-method-of-running-puppet-periodically-on-mac-os-x/ Is there some source of puppet & mac os x knowledge that I'm unaware of? I was kind of hoping that