[Puppet Users] Re: Looping through all registered client nodes?

2012-02-27 Thread Paul Tötterman
Hi, I'm looking to see if there's a way that I can set up a class on my puppetmaster node to loop through all of the defined nodes and add a hosts entry for the internal IP. I think I'm good with the actual adding of the entry, but I'm curious as to how to get access to all defined

Re: [Puppet Users] Re: Best way to test changes?

2012-02-27 Thread wen1023 wu
To avoid these problems, you can use Puppet’s dry run mode (also called noop mode, for ‘no operation’ puppet agent --test --noop 在 2012年2月24日 下午11:15,Jos Houtman j...@hyves.nl写道: We have a stable environment and an evironment for every developer. Upon changes we manually test the change

[Puppet Users] Can not retrieve file from puppet master linux to puppet agent windows

2012-02-27 Thread Shirley
Hello, As the subject described, I tried to retrieve a file from linux master to windows agent with the init.pp below : class test { file { “C:/ProgramData/testfile.txt”: ensure = present, mode = 0644, owner = test, group = Administrators, source =

Re: [Puppet Users] Certificate Annoyance: Time Differential

2012-02-27 Thread ygor
A suggestion based on how I deal with this : I use Cobbler to load the operating system and do basic configurations. Then I hand off to Puppet. One thing I do with Cobbler is the initial setting of the system clock using ntpdate or ntpd -q Hope this helps -Original Message- From:

[Puppet Users] Tags issue

2012-02-27 Thread linuxbsdfreak
Hi , I am using tags according to environments Eg: prd_env and stg_env How do i implement a default node Eg: node default inherits basenode { tag(prd_eu)|(stg_eu)) include general } The above does not work. I invoke the puppe agent puppet agent --test --noop

[Puppet Users] 2.7.9 - 2.7.11 Error 403

2012-02-27 Thread ollies...@googlemail.com
Hello, Thought I would upgrade the masters then tried to join a new client. All the /etc/puppet/*.conf files are the same. This is running split CA/Masters running behind F5 and running under Passenger on RHEL6 Now getting 403 errors. info: Retrieving plugin err: /File[/var/lib/puppet/lib]:

[Puppet Users] Re: Connections from any host to puppetmaster server times out

2012-02-27 Thread jcbollinger
On Feb 24, 3:21 pm, weloki wel...@gmail.com wrote: Thanks for the response John. I was able to ping the master from the hosts and port 8140 was open/ listening. The only firewall on the master was UFW, but I hadn't modified it. The master was actually a VM and the hosts were a mix of VMs

[Puppet Users] Re: 2.7.9 - 2.7.11 Error 403

2012-02-27 Thread ollies...@googlemail.com
Never mind found I did indeed screw with auth.conf - my bad. Nice to see facts only loading once this time... On Feb 27, 1:43 pm, ollies...@googlemail.com paul.seym...@barcap.com wrote: Hello, Thought I would upgrade the masters then tried to join a new client. All the /etc/puppet/*.conf

[Puppet Users] Re: Deploying puppet via NFS

2012-02-27 Thread jcbollinger
On Feb 24, 1:38 pm, Forrie for...@gmail.com wrote: Also, the puppet I'm using (on all systems) is installed from the gem. You did not directly answer the key question, which I now think is this: Is it possible that you used the system's Ruby (or the system's gem) to install the openssl or

[Puppet Users] Re: Mounts occasionally not applied on first run

2012-02-27 Thread jcbollinger
On Feb 24, 9:16 am, Gonzalo Servat gser...@gmail.com wrote: On Sat, Feb 25, 2012 at 2:06 AM, jcbollinger john.bollin...@stjude.orgwrote: I have not noticed this behavior, but you're a little vague. Yes, I guess I wasn't sure what I could provide in terms of detail so your questions

[Puppet Users] Re: roolback to previouse configuration

2012-02-27 Thread jcbollinger
On Feb 25, 2:19 pm, ruslan usifov ruslan.usi...@gmail.com wrote: Thanks jcbollinger for detailed answer For many resource types, another alternative to to purge unmanaged resources via the 'Resources' meta-resource type. I misunderstand what you talking about? Could you share some links?

[Puppet Users] About dashboard with parameterized classes

2012-02-27 Thread Smith
Hi all, I'll use puppet to manage +/- 10 servers, but I'm facing some problems about facter variables, dashboard and parameters. I try to use this module : http://projects.puppetlabs.com/projects/1/wiki/Resolv_Conf_Patterns class resolver { # noop } define resolv_conf($domainname =

[Puppet Users] Re: About dashboard with parameterized classes

2012-02-27 Thread Smith
Sorry, forgot to include relevant infos : I'm using puppet 2.6.13 from epel repository with dashboard 1.2.6 On Feb 27, 3:56 pm, Smith gilles6...@gmail.com wrote: Hi all, I'll use puppet to manage +/- 10 servers, but I'm facing some problems about facter variables, dashboard and parameters.

Re: [Puppet Users] Can not retrieve file from puppet master linux to puppet agent windows

2012-02-27 Thread Craig White
On Feb 27, 2012, at 2:41 AM, Shirley wrote: Hello, As the subject described, I tried to retrieve a file from linux master to windows agent with the init.pp below : class test { file { “C:/ProgramData/testfile.txt”: ensure = present, mode = 0644, owner = test, group =

[Puppet Users] Coder Society, Doing Instead of Talking

2012-02-27 Thread Adron Hall
Hello All, Recently a new group, organized around coding, implementing, hacking on, and generally doing things to better ourselves as developers, devops, or otherwise has been formed called Coder Society. At this time we're putting together groups in Seattle, Portland, and San Francisco. I'd

[Puppet Users] yum install vs yum upgrade with package resource

2012-02-27 Thread Jeff Whiting
I'm running puppet out in aws and am running into a problem automatically ensuring the latest openssl version. I have the package resource defined as: package { 'openssl' : ensure = latest, } Unfortunately I'm getting this error:

[Puppet Users] Puppet-dashboard and successful exec = change

2012-02-27 Thread psyber
I have a script that I exec every puppet run that contacts a web site to fetch a version number for a program then compares it to the installed version number to determine if they match. If they match the script exits, if they don't match it downloads a tarball and runs a somewhat complex set

Re: [Puppet Users] Certificate Annoyance: Time Differential

2012-02-27 Thread Derek J. Balling
Well, we do it with kickstart and -- typically -- do the same thing. But for some reason it wasn't able to reach the NTP server during kickstart and it was never able to sync the clock before things really got rolling. And it just occurred to me that since, ostensibly, puppet could be in charge

Re: [Puppet Users] Certificate Annoyance: Time Differential

2012-02-27 Thread Jon Davis
My solution was to run ntpdate before I ran the puppet join. Since all my client machines are ubuntu, I know it's pre-installed. After that, puppet installs the ntp service. My join command looks something like: `apt-get install puppet -y ntpdate pool.ntp.org puppet agent --server

Re: [Puppet Users] Can not retrieve file from puppet master linux to puppet agent windows

2012-02-27 Thread Josh Cooper
On Mon, Feb 27, 2012 at 1:41 AM, Shirley xiaole.che...@gmail.com wrote: Linux master : ubuntu 11.10, puppet 2.7.1 Windows agent : 2008 r2 x64, puppet 2.7.1 Windows agent support was added in 2.7.6, however, we have fixed a number of issues since then, including the one you are running into.

Re: [Puppet Users] Puppet-dashboard and successful exec = change

2012-02-27 Thread Nan Liu
On Mon, Feb 27, 2012 at 8:34 AM, psyber psyb...@gmail.com wrote: I have a script that I exec every puppet run that contacts a web site to fetch a version number for a program then compares it to the installed version number to determine if they match. If they match the script exits, if they

[Puppet Users] Re: 32bit and 64bit version of a package

2012-02-27 Thread Alan Laird
On Feb 23, 3:39 pm, Nathan Powell nat...@nathanpowell.org wrote: On Thu, Feb 23, 2012 at 5:57 PM, AlanLairda...@laird.net wrote: I'm trying to write a recipe to install the latest libstdc++ in both 32bit and 64bit flavors and running into issues.  Yum only wants to install the 64bit version

Re: [Puppet Users] Error at the end of a puppet agent run...

2012-02-27 Thread Olaf Reitmaier Veracierta
I think the problem happens when you configure agents to send reports. In this case when you run the agent in the console the output is not cached just showed and the log is empty so the report is also empty. # puppet agent --verbose --trace --no-daemonize My output is... notice: Starting

[Puppet Users] Re: Deploying puppet via NFS

2012-02-27 Thread Forrie
I installed this using the full path to the shared gem, simply: /local/bin/gem install puppet The puppet code, et al, is in the proper place under /local/lib/ I don't need to worry about the installation, I can overwrite it any time -- this is my test platform. I did bootstrap ruby and

[Puppet Users] Re: Deploying puppet via NFS

2012-02-27 Thread Forrie
Here are the errors in full, and demonstrating the entire path: [ /local]# bin/gem list *** LOCAL GEMS *** facter (1.6.5) puppet (2.7.11) [ /local]# bin/puppet --version /local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- openssl

RE: [Puppet Users] Re: Deploying puppet via NFS

2012-02-27 Thread Kinzel, David
Here are the errors in full, and demonstrating the entire path: [ /local]# bin/gem list *** LOCAL GEMS *** facter (1.6.5) puppet (2.7.11) [ /local]# bin/puppet --version /local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- openssl

[Puppet Users] Re: Puppet Agent on Windows

2012-02-27 Thread Igor
Yes, we are running it as a windows service. We are using nssm as a wrapper, here is how we created the service: nssm.exe install puppet-agent c:\ruby187\bin\puppet.bat agent -- logdest c:\puppet.log The puppet.bat is the default that the install script creates. Thanks, Igor On Feb 27, 12:48 

[Puppet Users] Re: 32bit and 64bit version of a package

2012-02-27 Thread jcbollinger
On Feb 27, 11:28 am, Alan Laird a...@laird.net wrote: On Feb 23, 3:39 pm, Nathan Powell nat...@nathanpowell.org wrote: On Thu, Feb 23, 2012 at 5:57 PM, AlanLairda...@laird.net wrote: I'm trying to write a recipe to install the latest libstdc++ in both 32bit and 64bit flavors and

[Puppet Users] Using puppet cert generate on a client -- why doesn't this work?

2012-02-27 Thread Rich Rauenzahn
I'm running a two headed puppetmaster and have disabled crl's. Let's call them the primary and the secondary. The primary and secondary both use the primary as their master. The secondary only is used when the primary isn't responding (I wrap the puppetd call in cron with a short shell script)

[Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Mohamed Lrhazi
From my ENC, I return something like, for a given node: nfs_mounts: - [/data, fas3319-518.example.com:/vol/crddb_data/test] and in my manifests I added: define mount_nfs_shares() { $mount_point = $name[0] $mount_device = $name[1] notice(mount_point:

Re: [Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Kelsey Hightower
On Mon, Feb 27, 2012 at 4:17 PM, Mohamed Lrhazi lrh...@gmail.com wrote: From my ENC, I return something like, for a given node: nfs_mounts: - [/data, fas3319-518.example.com:/vol/crddb_data/test] and in my manifests I added: define mount_nfs_shares() { $mount_point =

[Puppet Users] Re: Could not find node. cannot compile

2012-02-27 Thread Mohamed Lrhazi
Chaging my ENC to output this, adding double quotes: nfs_mounts: - [/data, fas3319-518.uis.georgetown.edu:/vol/onecrddb_data/test] and adding a notice($nfs_mounts) to the manifests, gives this log: [daemon.notice] (Scope(Class[Gu_misc])) nfs_mounts:

Re: [Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Nan Liu
On Mon, Feb 27, 2012 at 1:17 PM, Mohamed Lrhazi lrh...@gmail.com wrote: From my ENC, I return something like, for a given node:  nfs_mounts:      - [/data, fas3319-518.example.com:/vol/crddb_data/test] and in my manifests I added:   define mount_nfs_shares() {        $mount_point =

Re: [Puppet Users] Re: Puppet Agent on Windows

2012-02-27 Thread Josh Cooper
Hi Igor, On Mon, Feb 27, 2012 at 12:54 PM, Igor icher...@gmail.com wrote: Yes, we are running it as a windows service. We are using nssm as a wrapper, here is how we created the service: nssm.exe install puppet-agent c:\ruby187\bin\puppet.bat agent -- logdest c:\puppet.log Can you set

Re: [Puppet Users] Re: Could not find node. cannot compile

2012-02-27 Thread Kelsey Hightower
On Mon, Feb 27, 2012 at 4:32 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Chaging my ENC to output this, adding double quotes: nfs_mounts: - [/data, fas3319-518.uis.georgetown.edu:/vol/onecrddb_data/test] and adding a notice($nfs_mounts) to the manifests, gives this log:

Re: [Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Kelsey Hightower
On Mon, Feb 27, 2012 at 4:33 PM, Nan Liu n...@puppetlabs.com wrote: On Mon, Feb 27, 2012 at 1:17 PM, Mohamed Lrhazi lrh...@gmail.com wrote: From my ENC, I return something like, for a given node: nfs_mounts: - [/data, fas3319-518.example.com:/vol/crddb_data/test] and in my

[Puppet Users] Re: Puppet Agent on Windows

2012-02-27 Thread Igor
Here you go: Mon Feb 27 13:41:20 -0800 2012 Puppet (notice): Starting Puppet client version 2.7.11 Mon Feb 27 13:41:20 -0800 2012 Puppet (err): Could not run: fork() function is unimplemented on this machine Mon Feb 27 13:41:20 -0800 2012 Puppet (err): c:/Ruby187/bin/c:/Ruby187/

[Puppet Users] Re: Deploying puppet via NFS

2012-02-27 Thread Forrie
Did you build this on a system with openssl-devel or equivalent installed? Or install openssl+devel headers into your /local location? BINGO! That was the problem. THANK YOU. What really gets me is that I would never have figured this out, based on the ambiguous error message. I just

Re: [Puppet Users] Re: Puppet Agent on Windows

2012-02-27 Thread Josh Cooper
Hi Igor, Are you using the ruby interpreter from rubyinstaller.org? Or cygwin? On Mon, Feb 27, 2012 at 1:43 PM, Igor icher...@gmail.com wrote: Here you go: Mon Feb 27 13:41:20 -0800 2012 Puppet (notice): Starting Puppet client version 2.7.11 Mon Feb 27 13:41:20 -0800 2012 Puppet (err):

Re: [Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Mohamed Lrhazi
Thank you guys, and thanks Nan. I see my mistakes now. Mohamed. On Mon, Feb 27, 2012 at 4:39 PM, Kelsey Hightower kel...@puppetlabs.com wrote: On Mon, Feb 27, 2012 at 4:33 PM, Nan Liu n...@puppetlabs.com wrote: On Mon, Feb 27, 2012 at 1:17 PM, Mohamed Lrhazi lrh...@gmail.com wrote: From my

[Puppet Users] how to test a single class?

2012-02-27 Thread Sonia Hamilton
(Puppet 0.25.4). Is there an easy way of doing a puppet client run with just one class, so I can test it? I've inherited an old, crufty puppet setup with lots of classes, and I want to go through each class one by one and watch the puppet client running against puppetd. Thanks, Sonia. -- You

[Puppet Users] Re: Puppet Agent on Windows

2012-02-27 Thread Igor
We are using the ruby installer from the Puppet windows page: http://rubyforge.org/frs/download.php/74293/rubyinstaller-1.8.7-p334.exe http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows Here are the command you wanted me to run: C:\Ruby187\binruby -v ruby 1.8.7 (2011-02-18

Re: [Puppet Users] how to test a single class?

2012-02-27 Thread Nan Liu
On Mon, Feb 27, 2012 at 4:13 PM, Sonia Hamilton so...@snowfrog.net wrote: (Puppet 0.25.4). Is there an easy way of doing a puppet client run with just one class, so I can test it? I've inherited an old, crufty puppet setup with lots of classes, and I want to go through each class one by one

Re: [Puppet Users] how to test a single class?

2012-02-27 Thread Sonia Hamilton
* Nan Liu n...@puppetlabs.com [2012-02-27 17:02:49 -0800]: On Mon, Feb 27, 2012 at 4:13 PM, Sonia Hamilton so...@snowfrog.net wrote: (Puppet 0.25.4). Is there an easy way of doing a puppet client run with just one class, so I can test it? I've inherited an old, crufty puppet setup