Re: [Puppet Users] environments and import

2012-02-29 Thread Marek Dohojda
Not sure that this is what you are looking for. however I think better way is to set your environment in puppet.conf. Like this: [prod] manifest=$confdir/$enironment/site.pp That way you have it all defined, and seperated. Also modules can be defined that way. Disclaimer not in front of co

[Puppet Users] environments and import

2012-02-29 Thread Me
Is it a known issue that you can't use the $environment variable in an "import" line? This is from site.pp on a system using environments, and it doesn't work: --- notify { 'environment_notify': message => "NOTICE: This system is being configured with the environment ${

[Puppet Users] No child processes error message in dashboard

2012-02-29 Thread mukulm
Hi, I am getting the "Could not evaluate: No child processes" error message in dashboard for the task as /Stage[main]/Ubuntu_laptop/Exec[/bin/echo -e 'runinterval=7200' >> / etc/puppet/puppet.conf] but when I execute the puppet syntax (puppetd -td) manually in terminal on the node then it does not

[Puppet Users] Re: hiera puppet backend weirdness

2012-02-29 Thread Chad Huneycutt
I was able to track this down. Apparently $puppet_master_storedconfigs is either reserved or too long. When I changed it to $puppet_master_storedcfgs, the catalog compiled. Go figure. On Wed, Feb 29, 2012 at 7:09 PM, Chad Huneycutt wrote: > I'm really digging hiera, but I have a problem that I

[Puppet Users] Reminder: Changes to apt.puppetlabs.com have happened

2012-02-29 Thread Matthaus Litteken
At the beginning of the year we shuffled our repository structure to use apt.puppetlabs.com without a trailing /debian or /ubuntu. This means that your repository lists should be changed to something like the following: deb http://apt.puppetlabs.com/ $dist main and deb-src http://apt.puppetlabs.c

Re: [Puppet Users] Re: Windows Puppet 2.7.12rc1-7-g281901e hands at end of run

2012-02-29 Thread Josh Cooper
Hi Daniel, On Wed, Feb 29, 2012 at 2:33 PM, Daniel wrote: > Those items corrected the issues except that it hangs. It copies the > file as specified and sets all the permissions then just hangs. > > puppet agent --verbose --server master.puppet.marketvine.com -- > logdest c:\junk\puppetinfo_43

Re: [Puppet Users] Private key troubles after a new install and a reboot

2012-02-29 Thread Tom
Yes indeed, that was it! Things were getting switched around from /var/lib/puppet/ssl to /etc/puppet/ssl. Thanks for the help! Tom On Wednesday, February 29, 2012 1:21:31 PM UTC-8, Russell VT wrote: > > Any chance you've hit one of those conditions where package defaults point > the SSLDI

Re: [Puppet Users] Exec provider shell with 'for' loop

2012-02-29 Thread Antidot SAS
Thx I'll think about it. Le 29 févr. 2012 22:58, "Elias Abacioglu" a écrit : > > > Antidot SAS skrev 2012-02-29 11:04: > >> >> I have extremely big trouble using " instead of ', any idea? >> >> You could try replacing double escaping \\ and see if that works. > > Perhaps it's simpler if you have

[Puppet Users] hiera puppet backend weirdness

2012-02-29 Thread Chad Huneycutt
I'm really digging hiera, but I have a problem that I just can't seem to work out: I am working on a puppet module, and I have two classes: puppet::agent and puppet::master. The layout of the classes are very similar, but hiera can only successfully find my variables in one of them. $confdir/env

Re: [Puppet Users] Private key troubles after a new install and a reboot

2012-02-29 Thread Markus Falb
On 29.2.2012 21:55, Tom wrote: > Ok, I'm new to puppet, but I've got everything working for my setup. > Almost. > > I'm trying to set up a new server, using cobbler, and then puppet. > > CentOS 6.2 > Puppet 2.7.11 > Cobbler 2.0.11 > > I have things set up so I can use kickstart to install the se

[Puppet Users] Re: Windows Puppet 2.7.12rc1-7-g281901e hands at end of run

2012-02-29 Thread Daniel
Those items corrected the issues except that it hangs. It copies the file as specified and sets all the permissions then just hangs. puppet agent --verbose --server master.puppet.marketvine.com -- logdest c:\junk\puppetinfo_430.txt notice: Starting Puppet client version 2.7.12 info: Caching cat

Re: [Puppet Users] Puppet windows File permissions

2012-02-29 Thread Josh Cooper
Hi Marco, On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. wrote: > Hi Josh, > I'm runnig from cmd.exe, I'm using Administrator account on the windows > box, this is the output for the command that you asked: > > C:\Users\Administrator>whoami /groups > > GROUP INFORMATION > - > >

Re: [Puppet Users] Exec provider shell with 'for' loop

2012-02-29 Thread Elias Abacioglu
Antidot SAS skrev 2012-02-29 11:04: I have extremely big trouble using " instead of ', any idea? You could try replacing double escaping \\ and see if that works. Perhaps it's simpler if you have file { /tmp/script.sh : content => "for ...$variable" } or using a template and create a .erb

Re: [Puppet Users] Doc about RH6 + Passenger

2012-02-29 Thread Adam Heinz
I use puppet to bootstrap my puppet master. Here is my passenger module (reliably tested on Fedora 14 and CentOS 6). class httpd::passenger { package {[ gcc, ruby-devel, rubygems ]: ensure => latest, provider => yum, } package { rack: ensure => "1.0.1",

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

2012-02-29 Thread Elias Abacioglu
I have a similar problem. I did not find a way to install just the 32bit package. I wanted to install 32 bit compat-libstdc++33.i686 because HP Operations Agent needs it, even if it's a 64 bit agent. You can do like this: package { 'compat-libstdc++-33.i686' : ensure => present } But the pro

Re: [Puppet Users] Private key troubles after a new install and a reboot

2012-02-29 Thread Russell Van Tassell
Any chance you've hit one of those conditions where package defaults point the SSLDIR to /var/lib/puppet/ssl instead of /etc/puppet/ssl? I've seen this, specifically, when moving between RedHat/CentOS RPMs and gems, just as an example. (or, they're specified one way in your puppet.conf, and expecte

[Puppet Users] Private key troubles after a new install and a reboot

2012-02-29 Thread Tom
Ok, I'm new to puppet, but I've got everything working for my setup. Almost. I'm trying to set up a new server, using cobbler, and then puppet. CentOS 6.2 Puppet 2.7.11 Cobbler 2.0.11 I have things set up so I can use kickstart to install the server on boot. It installs puppet and facter from t

Re: [Puppet Users] Modifying a FACT Value In a Manifest

2012-02-29 Thread Peter Bukowinski
On Feb 29, 2012, at 1:10 PM, Matt Mencel wrote: > In my network every subnets default gateway is X.X.X.1. That router gateway > is always running ntpd which I want to give be default as the ntp server in > every hosts ntp.conf. > > Since there is no official "default gateway" fact yet, what I

Re: [Puppet Users] Puppet windows File permissions

2012-02-29 Thread Marco Parra D.
Hi Josh, I'm runnig from cmd.exe, I'm using Administrator account on the windows box, this is the output for the command that you asked: C:\Users\Administrator>whoami /groups GROUP INFORMATION - Group Name Type SID Attributes ===

RE: [Puppet Users] Modifying a FACT Value In a Manifest

2012-02-29 Thread Kinzel, David
> In my network every subnets default gateway is X.X.X.1. That router gateway > is always running ntpd which I want to give be default as the ntp server in > every hosts ntp.conf. > Since there is no official "default gateway" fact yet, what I want to be able > to do in my manifest is take th

Re: [Puppet Users] return status from puppet agent

2012-02-29 Thread Antidot SAS
Thx for info Le 29 févr. 2012 17:41, "Gary Larizza" a écrit : > I believe running puppet agent with -t or --test will turn on > --detailed-exitcode which provides extended non-zero exit codes (2 for > resource changes, 4 for transaction failures) > http://projects.puppetlabs.com/issues/4968 > >

[Puppet Users] Modifying a FACT Value In a Manifest

2012-02-29 Thread Matt Mencel
In my network every subnets default gateway is X.X.X.1. That router gateway is always running ntpd which I want to give be default as the ntp server in every hosts ntp.conf. Since there is no official "default gateway" fact yet, what I want to be able to do in my manifest is take the $ipaddress f

Re: [Puppet Users] Re: About dashboard with parameterized classes

2012-02-29 Thread Nan Liu
On Wed, Feb 29, 2012 at 2:37 AM, Smith wrote: > Hello, > > Thanks for the info ! > But what I'm trying to do is to pass parameters from the dashboard to > the class. > > For example the following : > > class ntp ($ntp_servers) { > ... > } You need either a wrapper class class ntp::wrapper { cl

Re: [Puppet Users] Puppet windows File permissions

2012-02-29 Thread Josh Cooper
Hi Marco, On Wed, Feb 29, 2012 at 5:46 AM, mparrad wrote: > Hi Guys, I'm recently start working with puppet and mostly puppet for > windows, On linux works perfect, but on windows works fine!, but I got a > issue working on c:\windows\system32\inetsrv\config folder, I need modify > the file appl

Re: [Puppet Users] return status from puppet agent

2012-02-29 Thread Gary Larizza
I believe running puppet agent with -t or --test will turn on --detailed-exitcode which provides extended non-zero exit codes (2 for resource changes, 4 for transaction failures) http://projects.puppetlabs.com/issues/4968 On Wed, Feb 29, 2012 at 2:46 AM, Antidot SAS wrote: > Hi everyone, > > >

Re: [Puppet Users] Windows Puppet 2.7.12rc1-7-g281901e hands at end of run

2012-02-29 Thread Josh Cooper
Hi Daniel, On Wed, Feb 29, 2012 at 7:36 AM, Daniel wrote: > I just installed the latest rc 1.7 to solve another issue I had. It > solved the issue, but I'm getting a different issue. > > I'm running it interactively from an administrator command prompt. It > connects to the master puppet serve

[Puppet Users] Re: SSL certificates issues with some of the nodes

2012-02-29 Thread mukulm
I had build a new client & sync the client with ntp server for the first time but i am getting a certificate error as "err: Could not request certificate: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key" ? what is t

Re: [Puppet Users] Re: About dashboard with parameterized classes

2012-02-29 Thread Kenneth Lo
We have a similar setup. The way we do this is to simply enforce as a procedure to create a group and each class we declared, then we would reference the class in that group, and create variables under that group. >From dashboard's organization standpoint we would only assign nodes to a group (inst

[Puppet Users] Windows Puppet 2.7.12rc1-7-g281901e hands at end of run

2012-02-29 Thread Daniel
I just installed the latest rc 1.7 to solve another issue I had. It solved the issue, but I'm getting a different issue. I'm running it interactively from an administrator command prompt. It connects to the master puppet server, processes the configuration items then gives an error. The interes

[Puppet Users] Re: Puppet Agent on Windows

2012-02-29 Thread Daniel
I installed the latest rc from: puppetlabs-puppet-2.7.12rc1-7- g281901e.zip https://github.com/puppetlabs/puppet/zipball/2.7.x I no longer get the fork error. It connects to the master puppet server and runs the configuration. But, it gets a different error at the end. As the new error does

[Puppet Users] Puppet windows File permissions

2012-02-29 Thread mparrad
Hi Guys, I'm recently start working with puppet and mostly puppet for windows, On linux works perfect, but on windows works fine!, but I got a issue working on c:\windows\system32\inetsrv\config folder, I need modify the file applicationHost.config using puppet, to keep centralized the config f

Re: [Puppet Users] Unable to generate the puppet documentation

2012-02-29 Thread Dan White
Here's the command I use: puppetdoc --outputdir //htdocs/puppetmaster \ --mode rdoc --manifestdir /etc/puppet/manifests \ --modulepath /etc/puppet/modules I hope this helps. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tri

[Puppet Users]

2012-02-29 Thread Manuel Fernández Panzuela
Hello everyone, I'm testing puppetmaster with mongrel and apache over Ubuntu 11.10 To do it i'm following that guide: http://projects.reductivelabs.com/projects/puppet/wiki/Using_Mongrel_On_Enterprise_Linux I'm looking for a file to set some ports in ubuntu, but i can find any file to do it. How c

[Puppet Users] return status from puppet agent

2012-02-29 Thread Antidot SAS
Hi everyone, Is that normal that when I have some puppet actions made but with no error the return status is not "0": [root@]:/var/spool/mail # puppet agent -t --verbose info: Retrieving plugin info: Loading facts in root_home info: Loading facts in meminbytes info: Loading facts in fact

[Puppet Users] Re: About dashboard with parameterized classes

2012-02-29 Thread Smith
Hello, Thanks for the info ! But what I'm trying to do is to pass parameters from the dashboard to the class. For example the following : class ntp ($ntp_servers) { ... } Add this class to dashboard, in a group called "Global" and set in this group a parameter key = ntp_servers with value = som

[Puppet Users] Exec provider shell with 'for' loop

2012-02-29 Thread Antidot SAS
Hi everyone, I am trying to exec the following command: exec { 'Apply all kernel variables' : path=> '/bin:/usr/bin:/usr/local/bin', user=> 'root', logoutput => true, provider=> shell, command => "for file in ${config_file} ${c

Re: [Puppet Users] Doc about RH6 + Passenger

2012-02-29 Thread Arnau Bria
On Tue, 28 Feb 2012 09:02:09 -0500 Eric Lake wrote: > If I remember right I used a combination of mostly > http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger and a > little of > http://www.uncompiled.com/centos-6-puppet-27-mcollective-foreman-rabbitto > get my install working on CentOS

[Puppet Users] Re: pass values to puppet-lvm

2012-02-29 Thread Matt
I get the same problem with CentOS. No error but no LV created. I've tried with Ubuntu client and same issue. Something might be wrong within the module... Matt On Feb 4, 1:59 am, Luke wrote: > Oh well. Maybe thislvmmodule doesn't like centos or something :( > > Thanks for all your help Felix.