Re: [Puppet Users] Using file{} with array parameter fails

2012-08-01 Thread Axel Bock
thanks for the reply, I actually made an error in my declaration. I used two variables which I had just moved out of scope, and so I declared two empty File[] objects - and puppet complained. When your solution didn't work either it hit me :) . thanks greetings! Axel. Am Dienstag, 31.

Re: [Puppet Users] NFS mounts with puppet creates error

2012-08-01 Thread Axel Bock
Hello Christopher, that's a nice explanation. I thought only the contents _under_ .../nfs-mounted/ would be server-side, not the mount-point itself. Well you always learn more. no_root_squash is not an option, I will have a look as how to manage that properly on our server side. Mainly I

[Puppet Users] Issues with some modules !!!

2012-08-01 Thread Rakesh Kathpal
Hi, I am new to puppet and have started evaluating various features in last few days. I am not a developer and am mostly going to use the modules available on github or puppet forge. Currently I have tried all easier modules and they seem to work perfectly without any issues, but now the problem

[Puppet Users] Issues with installing some modules !!!

2012-08-01 Thread Rakesh K
Hi, I am new to puppet and have started evaluating various features in last few days. I am not a developer and am mostly going to use the modules available on github or puppet forge. Currently I have tried all easier modules and they seem to work perfectly without any issues, but now the

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 =

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 jacob.m.mcc...@usps.govwrote: Try something like the following instead (added 'incl' and 'lens'

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 ekirpic...@gmail.comwrote: 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

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]/dump 0',

[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 set. For

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 from.

[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

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

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

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

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 private

[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

[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] 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

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

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

2012-08-01 Thread R.I.Pienaar
- Original Message - From: Felipe Ortega orteg...@gmail.com 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

[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;

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 --

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 Calvin Walton
On Wed, 2012-08-01 at 18:58 +0100, R.I.Pienaar wrote: From: Eric Shamow e...@puppetlabs.com 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

[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] 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

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

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] Running make via puppet manifest

2012-08-01 Thread Darren Chamberlain
* Mike Reed mjohn.reed at gmail.com [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 =

[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

[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.

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: class

[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] 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. This

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, and you

[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',

[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

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 joe.topj...@cybera.ca wrote: Hello, I am hoping that someone might be able to shed some light on the best way to solve an issue.

[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

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.

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 joe.topj...@cybera.ca 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

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 think I can