Re: [Puppet Users] Dashboard, node classes, what do they do part 2

2012-03-01 Thread Romeo Theriault
On Thu, Mar 1, 2012 at 11:51, Peter Berghold wrote: > Hi folks, > > Went back and did some more reading and found the intriguing entry in the > Dashboard documentation > > "The classes the console knows about are a subset of the classes in your > puppet master’s collection of modules. You must add

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Will S. G.
I'm not being descriptive, I know. I'll clarify as pseudo-code; I'm essentially attempting to declare a variable in node.pp as such: node 'util-mysql0' inherits default { $mysqlsr = [define value] } So: - Define variable - Create the condition in the template - If var

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Peter Bukowinski
In this case, you should check for the variable's value, as well: <% if has_variable?("mysqlsrv") and mysqlsrv == 'mysqlsrv' %> But it sounds like you might be having a variable scoping issue. Where in your nodes.pp file do you have $mysqlsrv defined? -- Peter (from phone) On Mar 1, 2012, at 1

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Denmat
Right, didn't properly read your original post. You're declaring this in node.pp. Where are you declaring the template call? Can you paste how you are doing this so we can see? http://docs.puppetlabs.com/learning/templates.html#some-simple-erb In that link puppetlabs talk about the scopes of v

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Will S. G.
Thanks Den, What if I were to define a string instead of boolean? $mysqlsrv = 'mysqlsrv' That means <% if has_variable?( "mysqlsrv" ) then %> should work, no? Even with your recommended solution, I end up with Could not find value for 'mysqlsrv,' which is what I ran into while troubleshooti

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Denmat
Hi, That is a string you are checking in the has_variable not a Boolean. So if you put 'true' or 'false' they both pull the var into existence. So as far as I recall, you got two options. Try declaring the var like so: $mysqlsrv = true Or you run the template like this: > <% if has_variable?

[Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Will S. G.
I have a template for zabbix_agentd.conf.erb that has the following line in it: <% if has_variable?( "mysqlsrv" ) then %> UserParameter=FromDual.MySQL.check,/usr/local/mysql_performance_monitor/FromDualMySQLagent.pl /usr/local/mysql_performance_monitor/etc/FromDualMySQLagent.conf <% end %> I

Re: [Puppet Users] Re: Puppet Master VMs

2012-03-01 Thread Brian Gallew
Also, there are some known issues with certain Ruby builds that cause the puppet daemon to randomly hang. Sometimes it's best to have cron run your puppet jobs. On Thu, Mar 1, 2012 at 3:01 PM, Alexander Swen wrote: > Thanks Markus, that's a very usefull tip. will follow! > > > >> # Whether to s

Re: [Puppet Users] Re: Puppet Master VMs

2012-03-01 Thread Alexander Swen
Thanks Markus, that's a very usefull tip. will follow! > # Whether to sleep for a pseudo-random (but consistent) amount of time > before > # a run. > # splay = false > best regards, Alex -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To vie

Re: [Puppet Users] Re: Puppet Master VMs

2012-03-01 Thread Markus Falb
On 1.3.2012 22:41, Alexander Swen wrote: > On Thursday, March 1, 2012 10:18:56 PM UTC+1, Scott Merrill wrote: > because we restart all those > agents using cron every night (because of mem leak in ruby 1.8) the mem > load is a bit high on this master when all those agents try to fetch > their cata

Re: [Puppet Users] Puppet Master VMs

2012-03-01 Thread Gary Larizza
On Thu, Mar 1, 2012 at 1:33 PM, Jeffrey Watts wrote: > I am. I run ours on a 1GB RAM VM with 2 vCPUs. We manage about 500 Linux > servers, each checking in every 30 mins. It's pretty much idle, though I'm > gradually rolling out our modules so our catalog currently compiles fast. > I'm using Webri

[Puppet Users] Dashboard, node classes, what do they do part 2

2012-03-01 Thread Peter Berghold
Hi folks, Went back and did some more reading and found the intriguing entry in the Dashboard documentation "The classes the console knows about are a subset of the classes in your puppet master’s collection of modules. You must add classes to the console manually if you want to assign them to an

Re: [Puppet Users] Puppet Master VMs

2012-03-01 Thread Peter Bukowinski
On Mar 1, 2012, at 4:18 PM, Scott Merrill wrote: > Is anyone running their Puppet Master server(s) as virtual guests? If > so, how big are those VMs in terms of memory and virtual CPUs, and how > many Puppet clients are they serving? > > Thanks! > Scott I run puppetmaster (2.7.11) and dashboard

[Puppet Users] Re: Puppet Master VMs

2012-03-01 Thread Alexander Swen
On Thursday, March 1, 2012 10:18:56 PM UTC+1, Scott Merrill wrote: > > Is anyone running their Puppet Master server(s) as virtual guests? If > so, how big are those VMs in terms of memory and virtual CPUs, and how > many Puppet clients are they serving Hi scott, we do. our puppet master runs as a

Re: [Puppet Users] Puppet Master VMs

2012-03-01 Thread Jeffrey Watts
I am. I run ours on a 1GB RAM VM with 2 vCPUs. We manage about 500 Linux servers, each checking in every 30 mins. It's pretty much idle, though I'm gradually rolling out our modules so our catalog currently compiles fast. I'm using Webrick, and plan on moving to Passenger/Apache whenever it starts

[Puppet Users] Puppet Master VMs

2012-03-01 Thread Scott Merrill
Is anyone running their Puppet Master server(s) as virtual guests? If so, how big are those VMs in terms of memory and virtual CPUs, and how many Puppet clients are they serving? Thanks! Scott -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

Re: [Puppet Users] How to use create_resources with a define

2012-03-01 Thread Mohamed Lrhazi
Ooops... My yaml was wrong.. it said: nfs_mounts: - mount1: mount_point: "/data" mount_device: "fas3319-518.example.com:/vol/onecrddb_data/test" - mount2: mount_point: "/data2" mount_device: "fas3319-518.example.com:/vol/onecrddb_data

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

2012-03-01 Thread Daniel
Thank you. On Feb 29, 6:59 pm, Josh Cooper wrote: > 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 --ver

[Puppet Users] puppet 2.7.11 + ruby 1.9.3 + passenger

2012-03-01 Thread Chad Huneycutt
So does anyone have a working setup with puppet 2.7.11 + ruby 1.9.3 + passenger? I am currently using rack-1.0.1 (rack-1.4.1 had same behavior) and passenger 3.0.11, and I get some authentication problems (shown below). If I use an auth.conf that is wide open (auth any, allow *), the agent can su

[Puppet Users] Re: Casting Fixnum to String (Hiera/YAML)

2012-03-01 Thread Krzysztof Wilczynski
Hi Lars, [...] > It would be nice for a plain Integer (Fixnum) to work as well when > it's coming from a YAML file. When you introduce a numeric value through the manifest, then Puppet will do the right thing during parsing it, but when you introduce Integer or Float from Hiera, then you will get

Re: [Puppet Users] How to use create_resources with a define

2012-03-01 Thread Mohamed Lrhazi
Thanks guys. The hash thing sounds like my problem... but I still get the same error!! undefined method `[]' for nil:NilClass at /etc/puppet/environments/production_ml623/modules/gu_misc/manifests/init.pp:81 on node onecrddb-test-1 where line 81 is: create_resources(mount_nfs_shares, $nfs_mo

Re: [Puppet Users] How to use create_resources with a define

2012-03-01 Thread Tim Mooney
In regard to: [Puppet Users] How to use create_resources with a define,...: I have not used the create_resources function before, looks like exactly what I need indeed. How do I use it with a define.. my ENC outputs something like: nfs_mounts: - mount_point: "/data" mount_devi

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Marco Parra D.
Hi Josh, by the way, this is the link that I found to solve my trouble, works perfect on Windows 2008 R2 64 bits. http://www.ghisler.ch/wiki/index.php/On_64-bit_Windows_versions,_some_files_and_folders_shown_by_Windows_Explorer_are_not_shown_by_Total_Commander!#Affected_files_and_folders Regard

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Marco Parra D.
Hi Josh, Looking in the web, I found the solution that you mentioned, c:\windows\Sysnative, and works perfect to me! thank you for your help C:\Users\Administrator>puppet agent --test notice: Ignoring --listen on onetime run info: Retrieving plugin info: Caching catalog for cscltest01.office

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Josh Cooper
Hi Marco, On Thu, Mar 1, 2012 at 6:17 AM, Marco Parra D. wrote: > Hi Josh, thank you for reply, > > On 29-02-2012 19:12, Josh Cooper wrote: > > 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 t

Re: [Puppet Users] How to use create_resources with a define

2012-03-01 Thread Gary Larizza
I would do something like this: ** In your YAML file --- nfs_mounts mount1: mount_point: '/data' mount_device : "fas3319-518.example.com:/vol/onecrddb_data/test" mount2: mount_point : "/data2" mount_device : "fas3319-518.example.com:/vol/onecrddb_data/test2" ** In site

[Puppet Users] How to use create_resources with a define

2012-03-01 Thread Mohamed Lrhazi
I have not used the create_resources function before, looks like exactly what I need indeed. How do I use it with a define.. my ENC outputs something like: nfs_mounts: - mount_point: "/data" mount_device: "fas3319-518.example.com:/vol/onecrddb_data/test" - mount_point:

Re: [Puppet Users] environments and import

2012-03-01 Thread Me
Thanks. We're doing that too. I'd like to be able to use $environment on an import line as well. Is it a known issue that you cannot? On Wed, Feb 29, 2012 at 10:17 PM, Marek Dohojda wrote: > Not sure that this is what you are looking for.  however I think better way > is to set your environment

[Puppet Users] Re: How to have multi-line external variables ? Failed with extlookup and Dashboard

2012-03-01 Thread Alexandre
Found out that a CSV file with value like alex,"line1 line2" will do the trick, but alex,"line1 line2 \"line3" will not work and alex,"line1 line2 ""line3" will work On Mar 1, 4:58 pm, Alexandre wrote: > Is there a way to be able to externalize multi-line va

[Puppet Users] How to have multi-line external variables ? Failed with extlookup and Dashboard

2012-03-01 Thread Alexandre
Is there a way to be able to externalize multi-line variable (eg to contain pem keys, etc...), to be used like file { "/tmp/alex": content => $::alex # In dashboard: alex = line1\nline2 } file { "/tmp/alex2": content => extlookup('alex') # alex,line1\nline2 } I t

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

2012-03-01 Thread Matt Mencel
Thanks to both of you... :) Matt -- *From: *"Peter Bukowinski" *To: *puppet-users@googlegroups.com *Sent: *Wednesday, February 29, 2012 1:01:14 PM *Subject: *Re: [Puppet Users] Modifying a FACT Value In a Manifest On Feb 29, 2012, at 1:10 PM, Matt Mencel wrote: In

Re: [Puppet Users] Puppet windows File permissions

2012-03-01 Thread Marco Parra D.
Hi Josh, thank you for reply, On 29-02-2012 19:12, Josh Cooper wrote: Hi Marco, On Wed, Feb 29, 2012 at 10:52 AM, Marco Parra D. mailto:marco.parr...@gmail.com>> wrote: Hi Josh, I'm runnig from cmd.exe, I'm using Administrator account on the windows box, this is the output for th

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

2012-03-01 Thread jcbollinger
On Feb 29, 10:21 am, mukulm wrote: > 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 regene

[Puppet Users] allow_duplicate_certs issue

2012-03-01 Thread Tom Stockton
Hi Everyone, Apologies for covering old ground, I've been reading through previous posts and issues regarding this but I'm unclear what the current resolution / situation is regarding this: Essentially my issue is that I have "allow_duplicate_certs = true" set on my puppet master, however, new cl