Re: [Puppet Users] Can an template (erb file) get installed via a package resource?

2012-08-01 Thread red
Thank you Calvin. I will give that a try. On Wednesday, August 1, 2012 3:52:02 PM UTC-7, Calvin Walton wrote: > > On Wed, 2012-08-01 at 14:47 -0700, red wrote: > > Hello all, > > > > I am new to puppet and I am try to come up with a proof of concept for > > setting up a DNS server. > > I thi

Re: [Puppet Users] duplicate resources across defined types

2012-08-01 Thread Dan Bode
On Wed, Aug 1, 2012 at 7:37 PM, Joe Topjian wrote: > Hi Dan, > > This is actually a pretty common modeling problem in Puppet. >> > > I figured it had to be common as this type of configuration can exist in a > lot of other system administration areas. > > >> I just wrote a function called ensure_

Re: [Puppet Users] duplicate resources across defined types

2012-08-01 Thread Joe Topjian
Hi Dan, This is actually a pretty common modeling problem in Puppet. > I figured it had to be common as this type of configuration can exist in a lot of other system administration areas. > I just wrote a function called ensure_resource that is intended to solve > this problem. > > https://gith

[Puppet Users] Re: Announce: Puppet 2.7.19rc1 Available

2012-08-01 Thread Moses Mendoza
All, Due to an error on my part munging the various commits for the changelog, a substantial number of commits didn't make it into the changelog in the original email. Below is an updated changelog. I sincerely apologize for any confusion. A more accurate reflection of the contributors for this r

Re: [Puppet Users] duplicate resources across defined types

2012-08-01 Thread Dan Bode
Hi Joe, On Tue, Jul 31, 2012 at 6:41 PM, Joe Topjian wrote: > Hello, > > I am hoping that someone might be able to shed some light on the best way > to solve an issue. > > > https://github.com/puppetlabs/puppetlabs-apache/commit/c2c75a62b7dafced8a6120a14bacfc8be7539282

[Puppet Users] Announce: Facter 1.6.11rc1 Available

2012-08-01 Thread Moses Mendoza
Facter 1.6.11rc1 is a maintenance release candidate in the 1.6.x branch with bug fixes. It includes contributions from Andrew Parker, Matthaus Litteken, Dominic Cleal, Andrew Elwell, Michael Stahnke. Downloads are available at: * Source: https://downloads.puppetlabs.com/facter/facter-1.6.11rc1.t

[Puppet Users] Announce: Puppet 2.7.19rc1 Available

2012-08-01 Thread Moses Mendoza
Puppet 2.7.19rc1 is a maintenance release candidate for Puppet in the 2.7.x series. It includes bug fixes, including improvements around the Windows package provider. This release is largely the result of a recent effort to reduce open Pull Requests against Puppet and contains a number of contribut

[Puppet Users] Require failed but still executing

2012-08-01 Thread Sylvain Kalache
Hi, I want to find a way to make sure that the Nagios configuration is valid before performing a reload, and I came up with this: exec { 'check_nagios_config': subscribe => File['/etc/nagios/objects'], refreshonly => true, command => '/usr/bin/nagios -v /etc/nagios/nagios.cfg',

Re: [Puppet Users] Re: What data to restore an existing Puppet Master?

2012-08-01 Thread Mitchell Hashimoto
On Wed, Aug 1, 2012 at 3:35 PM, Nick Fagerlund < nick.fagerl...@puppetlabs.com> wrote: > Hey, Mitchell, > > HMM. Sounds like the docs team needs to get on this. > > (<-- is 1/2 the docs team) > > I'm going to name some special directory or file names below. These are > all puppet config settings,

Re: [Puppet Users] Can an template (erb file) get installed via a package resource?

2012-08-01 Thread Calvin Walton
On Wed, 2012-08-01 at 14:47 -0700, red wrote: > Hello all, > > I am new to puppet and I am try to come up with a proof of concept for > setting up a DNS server. > I think I can just get by with just running puppet directly on my > host without setting up a master/agent type configuration. > Th

[Puppet Users] Re: What data to restore an existing Puppet Master?

2012-08-01 Thread Nick Fagerlund
Hey, Mitchell, HMM. Sounds like the docs team needs to get on this. (<-- is 1/2 the docs team) I'm going to name some special directory or file names below. These are all puppet config settings, and you can get the current value for them on any machine by running puppet master --configprint .

Re: [Puppet Users] Running "make" via puppet manifest

2012-08-01 Thread Calvin Walton
On Wed, 2012-08-01 at 12:56 -0700, Mike Reed wrote: > Hello all, > > I've been banging my head against the wall trying to get this "make" to run > and I was hoping to get some opinions as to why this might not be working. > The module in question looks like this: Lets take a look in order: >

[Puppet Users] Can an template (erb file) get installed via a package resource?

2012-08-01 Thread red
Hello all, I am new to puppet and I am try to come up with a proof of concept for setting up a DNS server. I think I can just get by with just running puppet directly on my host without setting up a master/agent type configuration. This maybe related to the my problem but I suspect not. Here'

[Puppet Users] Announce: Puppet Enterprise 2.5.3 Available

2012-08-01 Thread Moses Mendoza
Dear Puppet Enterprise Users, Puppet Enterprise 2.5.3 is now available. This is a maintenance release of PE with bug fixes. As a current Puppet Enterprise user, you can upgrade to this new version as part of your annual subscription. As always, if upgrading, it is recommended to upgrade your mast

Re: [Puppet Users] Running "make" via puppet manifest

2012-08-01 Thread Darren Chamberlain
* Mike Reed [2012/08/01 12:56]: > # This will run the make which will line up everything to install > the drivers from source. > exec { "/usr/src/ChelsioUwire-1.0.2.26 make > KDIR=/usr/src/linux-headers-2.6.32-41" : > path => "/usr/src/ChelsioUwire-1.0.2.26" , >

Re: [Puppet Users] rand losing its randomness after using fqdn_rand

2012-08-01 Thread David Schmitt
On 2012-08-01 14:28, Felipe Ortega wrote: So, with this setup, on every run of the puppet agent, a new shadow password was assigned to the user. Well, in fact it was always the same cleartext password, but as the salt was different on every run, the shadow password of the user was different too,

Re: [Puppet Users] exec command on master

2012-08-01 Thread David Schmitt
On 2012-08-01 18:47, Anton Swood wrote: Hello all. I have one simple question. Can I after executing manifest implement some command on master? You could link up to the report processor. That's triggered on the master after a run. Best Regards, David -- You received this message because y

[Puppet Users] Re: Running "make" via puppet manifest

2012-08-01 Thread Ben L
I have some similar manifests, and I usually deploy a script (via a file type) and then use an exec to run the script. This seems cleaner to me (rather then a chain of exec statements) and insulates the scripting from Puppet. Ben On Wednesday, August 1, 2012 2:56:11 PM UTC-5, Mike Reed wrote:

Re: [Puppet Users] Running "make" via puppet manifest

2012-08-01 Thread Peter Berghold
On Wed, Aug 1, 2012 at 3:56 PM, Mike Reed wrote: > > # This will run the make which will line up everything to install > the drivers from source. > exec { "/usr/src/ChelsioUwire-1.0.2.26 make > KDIR=/usr/src/linux-headers-2.6.32-41" : > path => "/usr/src/ChelsioUwi

[Puppet Users] Running "make" via puppet manifest

2012-08-01 Thread Mike Reed
Hello all, I've been banging my head against the wall trying to get this "make" to run and I was hoping to get some opinions as to why this might not be working. The module in question looks like this: class install-lei_chelsio_driver { # This will place the chelsio tarball locally in

[Puppet Users] puppet and ruby 1.9.3 / puppet doc and rdoc 3.x

2012-08-01 Thread llow...@oreillyauto.com
Does anyone know the current status of making puppet work with ruby 1.9.3 and/or the closely related issue of puppet doc working with rdoc 3.x? I saw that http://projects.puppetlabs.com/issues/11786 is accepted with a target of 3.0, but the issue has no activity since it was changed to "accepte

Re: [Puppet Users] rand losing its randomness after using fqdn_rand

2012-08-01 Thread Calvin Walton
On Wed, 2012-08-01 at 18:58 +0100, R.I.Pienaar wrote: > From: "Eric Shamow" > > Not sure that this should be considered a bug in fqdn_rand - the idea > > with fqdn_rand is that it should generate the same random number > > each time it is run in order to maintain idempotency. > > The bug is that

Re: [Puppet Users] err: Invalid parameter hostgroup at line 370 on node

2012-08-01 Thread Calvin Walton
On Wed, 2012-08-01 at 08:56 -0700, david.gar...@gmail.com wrote: > Hello, > > I can't wrap my head around what is causing this error. After rebooting the > box I get this error. If I remove the $hostgroup parameter is errors at > $product_domain and down the line. What is going wrong here? I have

Re: [Puppet Users] rand losing its randomness after using fqdn_rand

2012-08-01 Thread R.I.Pienaar
- Original Message - > From: "Eric Shamow" > To: puppet-users@googlegroups.com > Sent: Wednesday, August 1, 2012 10:48:26 AM > Subject: Re: [Puppet Users] rand losing its randomness after using fqdn_rand > > Not sure that this should be considered a bug in fqdn_rand - the idea > with fq

Re: [Puppet Users] rand losing its randomness after using fqdn_rand

2012-08-01 Thread Eric Shamow
Not sure that this should be considered a bug in fqdn_rand - the idea with fqdn_rand is that it should generate the same random number each time it is run in order to maintain idempotency. The salt will be different on *different* hosts, but it will be the same on the same host. -Eric -- E

[Puppet Users] Re: err: Invalid parameter hostgroup at line 370 on node

2012-08-01 Thread david.gar...@gmail.com
When I comment the line out I still get a related error: #puppet agent --test --verbose err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter short_alias at line 370 on node nagios warning: Not using cache on failed catalog err: Could not retrieve catalog; skip

Re: [Puppet Users] rand losing its randomness after using fqdn_rand

2012-08-01 Thread R.I.Pienaar
- Original Message - > From: "Felipe Ortega" > To: puppet-users@googlegroups.com > Sent: Wednesday, August 1, 2012 5:28:23 AM > Subject: [Puppet Users] rand losing its randomness after using fqdn_rand > > > Hi, > > > I'm a newbie puppet user, and I'm facing some weird behaviour in my

Re: [Puppet Users] Installing a customized package: use custom repo / overwrite / patch?

2012-08-01 Thread Eugene Kirpichov
Hi Calvin, Thanks, your solution is exactly what I need! So simple and elegant and obvious in retrospect :) среда, 1 августа 2012 г., 8:49:42 UTC-7 пользователь Calvin Walton написал: > > On Mon, 2012-07-30 at 14:51 -0700, Eugene Kirpichov wrote: > > Hello puppet-users, > > > > I need to use

[Puppet Users] exec command on master

2012-08-01 Thread Anton Swood
Hello all. I have one simple question. Can I after executing manifest implement some command on master? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5d

[Puppet Users] rand losing its randomness after using fqdn_rand

2012-08-01 Thread Felipe Ortega
Hi, I'm a newbie puppet user, and I'm facing some weird behaviour in my testing environment. I'm using Debian packages from testing/Wheezy (version 2.7.18) via apache+passenger installation. Also: $ ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux] I developed the following custom

[Puppet Users] Which version of railties for puppet-dashboard?

2012-08-01 Thread Nanuk Krinner
Hi, I want to package puppet-dashboard, and I need to find out which version of railties it does use. puppet-dashboard seems to use rails 2.3.11, and railties is a requirement to rails only since version 3.0. So what version of railties should the package require? Thanks in advance, Nanuk --

[Puppet Users] Re: Is is possible/acceptable to create a private puppet forge?

2012-08-01 Thread Jonathan Kinred
I work for a large company with a number of disparate groups using Puppet. A private forge would provide a central publishing point and help us to collaborate. We have modules which are private to our company due to IP restrictions or simply aren't useful outside of our company so the public fo

[Puppet Users] err: Invalid parameter hostgroup at line 370 on node

2012-08-01 Thread david.gar...@gmail.com
Hello, I can't wrap my head around what is causing this error. After rebooting the box I get this error. If I remove the $hostgroup parameter is errors at $product_domain and down the line. What is going wrong here? I have facters defined for nagios server. I am testing this where nagios server (p

Re: [Puppet Users] Installing a customized package: use custom repo / overwrite / patch?

2012-08-01 Thread Calvin Walton
On Mon, 2012-07-30 at 14:51 -0700, Eugene Kirpichov wrote: > Hello puppet-users, > > I need to use puppet to install a slightly modified version of a > package (modify a few lines in the scripts it installs), but I don't > want to build my own version of the package and distribute it via a > priva

Re: [Puppet Users] Modify Facter Value

2012-08-01 Thread Wolf Noble
I'm doing something similar in one environment… I've come to realize this method contains less awesome than I'd anticipated. What I'd suggest doing, is changing the file deployed to the client into a template that's deployed via puppet.. have that template set the content correctly for the machi

[Puppet Users] ssh keymaster new key notification

2012-08-01 Thread Radosław Antoniuk
I am using the key rotation mechanism of ssh::auth, along these guidelines. ssh::auth::key {[ "alice", "bob" ]: maxdays => 90 } Now, because not all of my stations are puppet-managed, is there any way to notify the user that his key got expired and that he has to update the key? A hook to the s

Re: [Puppet Users] Re: export a file from a node to another node

2012-08-01 Thread thijso
Uh, crap. Should include the files of course. Here they are... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/CRol4KKqo6cJ. To post to this group, send ema

Re: [Puppet Users] Re: export a file from a node to another node

2012-08-01 Thread thijso
I distribute my root keys through the following setup: A custom fact ('ssh_pub_keys.rb') exports my root pub keys. Then I include the 'dasar::ssh_keys::root' class on my nodes (see 'root.pp'). Now I can ssh from all my machines that have that include into all my other machines that have it too.

[Puppet Users] puppet trying to parse backup files

2012-08-01 Thread lth
Is there a way to tell puppet not to try and parse certain files? It keeps trying to parse backup files and I get errors like: err: Could not load downloaded file /var/lib/puppet/lib/puppet/parser/functions/private_path.rb~: Function private_path already defined In this case there's a real priv

Re: [Puppet Users] Get extra error output when debugging custom types?

2012-08-01 Thread ZJE
On Tuesday, July 31, 2012 6:07:40 PM UTC-5, Stefan Schulte wrote: > > On Tue, Jul 31, 2012 at 03:24:15PM -0700, ZJE wrote: > > Is it possible to get extra output when running custom types? Right now, > > I'm getting an error message and I'm not sure where in the code it's > being > > thrown f

[Puppet Users] Re: Access @resouce in custom type

2012-08-01 Thread ZJE
On Tuesday, July 31, 2012 6:54:14 PM UTC-5, Nick Lewis wrote: > > On Tuesday, July 31, 2012 2:05:28 PM UTC-7, ZJE wrote: >> >> Is it possible to access @resource variables inside a type? >> >> I would like to make some decisions on parameters based on other >> parameters that may have already been

Re: [Puppet Users] Re: Long processing time using Augeas

2012-08-01 Thread Dominic Cleal
On 31/07/12 19:16, Jake - USPS wrote: > Try something like the following instead (added 'incl' and 'lens' and > removed context as its default based on incl is what you had) : > > augeas { 'homeLV': > incl => '/etc/fstab', > lens => 'Fstab.lns', > changes => [ > 'set *[file = "/home"]/du

Re: [Puppet Users] Installing a customized package: use custom repo / overwrite / patch?

2012-08-01 Thread Bryan Hunt
On Mon, Jul 30, 2012 at 10:51 PM, Eugene Kirpichov wrote: > Hello puppet-users, > > I need to use puppet to install a slightly modified version of a > package (modify a few lines in the scripts it installs) > Which script, the init script? Which package? * Add separate file resources to overwri

Re: [Puppet Users] Re: Long processing time using Augeas

2012-08-01 Thread Alexander Holte-Davidsen
This did indeed make a huge difference. From about 10 seconds when loading everything, down to 0.22 seconds(!). Thanks for your help, Jake! / Alexander On Tue, Jul 31, 2012 at 8:16 PM, Jake - USPS wrote: > Try something like the following instead (added 'incl' and 'lens' and > removed context a

Re: [Puppet Users] exec in master transfer files to the node

2012-08-01 Thread David Schmitt
On 31.07.2012 20:09, Nikolaos Hatzopoulos wrote: exec { "sshkeygen": path=> "/usr/bin:/usr/sbin:/bin", creates => [ "puppet:///myuser/files/$username/id_rsa" , "puppet:///myuser/files/$username/id_rsa.pub" ], command => generate("/bi