Re: [Puppet Users] Re: Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-19 Thread Luke Bigum
Hi Ken, Your site and your practices (and the problems that go with it) are similar to our own. I've answered by describing what we think the way forward for Puppet is for us, hopefully you find it helpful and get some ideas :-) I feel your pain when you say there are changes languishing in

[Puppet Users] ensure file content with filename different on each host

2012-04-19 Thread Fabien COMBERNOUS
Hi, I have several hosts. Each host have to contain a file like /a/path/com.apple.screensaver.BC2A8418-FC5B-5825-B3F1-0072B100A4B4.plist. The content have to be the same on all hosts. But the BC2A8418-FC5B-5825-B3F1-0072B100A4B4 part of the file name is different on each host. Is it

[Puppet Users] Re: ensure file content with filename different on each host

2012-04-19 Thread Fabien
Great help was provided by irc. Here the manifest : class screensaver { $username = admin file { /Users/$username/Library/Preferences/ByHost/ com.apple.screensaver.$::sp_platform_uuid.plist: owner = $username, group = staff,

[Puppet Users] Re: function template: use of variable '$string' = BUG?

2012-04-19 Thread Antidot SAS
Hi, A little love about my bug? Am I the only one with this problem or are we thousand :D ? On Tue, Apr 17, 2012 at 10:57 PM, Antidot SAS antidot...@gmail.com wrote: Hi everyone, I am using puppet setup with gem: --

[Puppet Users] Re: $lsbdistcodename stays the same after dist-upgrade

2012-04-19 Thread ScOut3R
Just in case someone stumbles upon this. The cause is this bug: https://projects.puppetlabs.com/issues/9109 The solution is to update the puppetmaster to =2.7.8. Best regards, Mate 2012. április 18., szerda 14:50:59 UTC+2 időpontban ScOut3R a következőt írta: Dear List, i was running a

[Puppet Users] Re: Virtual resources for a list of server ip addresses in Apache config

2012-04-19 Thread jcbollinger
On Apr 18, 7:09 am, Robert Rothenberg rob...@gmail.com wrote: I should add that I am using a masterless puppet environment, so a global list of all nodes is not available. As far as I am aware, there is no solution available entirely Puppet that would work in masterless mode. Some

[Puppet Users] ssh_authorized_keys fails if a line is empty

2012-04-19 Thread Maurice Meeden
Hi group, we want to manage our authorized_keys with puppet and are trying ssh_authorized_keys. Everything works as expected, but if ~/.ssh/ authorized_keys contains en empty line, puppet raises an error and generate a complete new file: debug: Prefetching parsed resources for ssh_authorized_key

[Puppet Users] puppet-lint error

2012-04-19 Thread Joseph
Hi, this is not strictly puppet related but I am hoping someone here who uses puppet-lint can tell me what is going on here. $ puppet-lint init.pp /Users/jc/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/ rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the

[Puppet Users] access variables from calling ressource

2012-04-19 Thread Andreas Paul
I need to create a XML file for our Nagios server. This XML file needs to contain all Tomcats on this server, which are created with a parameterized puppet ressource. What I need is something like this: root nametest1/name nametest2/name /root from these ressources example::ressource {

[Puppet Users] vcsrepo rake installation?

2012-04-19 Thread Ernest Beinrohr
Hi, I have trouble installing vcsrepo. I cloned vcsrepo onto my Centos6 and when I run rake i get this: (in /etc/puppet/modules/vcsrepo) ** Invoke default (first_time) ** Invoke spec (first_time) ** Execute spec ./spec/unit/puppet/provider/vcsrepo/cvs_spec.rb:3: undefined method

Re: [Puppet Users] Trying to build Ruby 1.8.7 on a RHEL5 systems

2012-04-19 Thread Jo Rhett
On Apr 18, 2012, at 6:27 PM, Dan White wrote: On Apr 18, 2012, at 6:08 PM, Jo Rhett wrote: On Apr 16, 2012, at 6:51 PM, Dan White wrote: I got a bunch of error complaining about rpaths, and in the output was a suggestion to prepend an environment setting to the command -- like this:

Re: [Puppet Users] puppet-lint error

2012-04-19 Thread Patrick Carlisle
It looks like an incompatibility between puppet-lint and ruby 1.9, which removed the String#each method that was in earlier versions. On Wed, Apr 18, 2012 at 11:30 PM, Joseph cheng...@gmail.com wrote: Hi, this is not strictly puppet related but I am hoping someone here who uses puppet-lint can

[Puppet Users] Cron job isn't running

2012-04-19 Thread thinkwell
I only need to run puppet weekly, so I made this little shell script and put in the the /etc/cron.weekly folder, but it's not running. If I run the script manually, it works just fine. Why not from cron? #!/bin/bash # # Cron job managed by Puppet

Re: [Puppet Users] Trying to build Ruby 1.8.7 on a RHEL5 systems

2012-04-19 Thread Dan White
- Jo Rhett jrh...@netconsonance.com wrote: For ruby, go to ruby.org and find the latest patchlevel for 1.8.7 and put that number at the top of the spec file. FYI: ruby.org is a parked domain. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is

Re: [Puppet Users] Cron job isn't running

2012-04-19 Thread Christopher Wood
Usually cron problems like this are because of the way cron shrinks your $PATH environment variable. Read man 5 crontab and man 8 cron, or find them on the web. Or use the full path to your puppet executable. Why don't you have puppet set up the cron job for you? That way puppet will install

[Puppet Users] Migrate installation to different directory

2012-04-19 Thread JA
Hi Everyone; I want puppet to be installed in /app/puppet instead of the default /etc. I cannot figure out how to get the puppetmasterd to look for the config file (puppet.conf) in /app/puppet instead of /etc/puppet. If anyone can help, I would really appreciate it! -- You received this

Re: [Puppet Users] Migrate installation to different directory

2012-04-19 Thread Craig White
On Apr 19, 2012, at 12:56 PM, JA wrote: Hi Everyone; I want puppet to be installed in /app/puppet instead of the default /etc. I cannot figure out how to get the puppetmasterd to look for the config file (puppet.conf) in /app/puppet instead of /etc/puppet. If anyone can help, I would

Re: [Puppet Users] ssh_authorized_keys fails if a line is empty

2012-04-19 Thread Stefan Schulte
On Thu, Apr 19, 2012 at 07:20:10AM -0700, Maurice Meeden wrote: Hi group, we want to manage our authorized_keys with puppet and are trying ssh_authorized_keys. Everything works as expected, but if ~/.ssh/ authorized_keys contains en empty line, puppet raises an error and generate a complete

Re: [Puppet Users] access variables from calling ressource

2012-04-19 Thread Denmat
Hi, This should work: $res = ['test1','test2'] example::ressource { $res: } with the caveat that I can't see your code or how you get your vars. Have tried Hiera? Makes these things relatively simple. Den On 20/04/2012, at 1:23, Andreas Paul xorp...@googlemail.com wrote: I need to create

Re: [Puppet Users] Migrate installation to different directory

2012-04-19 Thread Stefan Schulte
On Thu, Apr 19, 2012 at 03:56:37PM -0400, JA wrote: Hi Everyone; I want puppet to be installed in /app/puppet instead of the default /etc. I cannot figure out how to get the puppetmasterd to look for the config file (puppet.conf) in /app/puppet instead of /etc/puppet. If anyone can help,

RE: [Puppet Users] Cron job isn't running

2012-04-19 Thread Dave Burkholder
Well, I tried adding the full command path, and set the cron job to cron.hourly but that didn't work. :-( The reason I used a cron job (managed by Puppet as a file) was so that anacron would run the job on reboot if the system was down at 4:00 AM Sunday. I only need once-a-week running, but I do

[Puppet Users] Migrating from an older version of puppet. classes not found.

2012-04-19 Thread Gino Lisignoli
Hello! I'm migrating from an older version of puppet (puppet --version = 0.25.4) to 2.6.2. The current directory structure of puppet is: puppet | |---manifest | | | |---site.pp | |---classes | | | |---whole bunch of .pp files,no sub directories, no

[Puppet Users] Using puppet for release management?

2012-04-19 Thread Will S. G.
I'm trying to convince my company to use puppet as the release management engine to publish the bits for Drupal to the web servers. The reason why I want this is to cut off the developers from production, but also create a process and procedure for code release to the stage and production