[Puppet Users] Re: Is this a valid statement?

2011-04-29 Thread Roberto Bouza
your help. On Apr 29, 6:14 am, Jan wrote: > On 04/28/2011 10:01 PM Roberto Bouza wrote: > > > That is the problem. :-) > > > If its false/true I need to do stuff like > > > if $enabled != undef { > >  class { 'doit': enabled => $enabled } # This here

[Puppet Users] Is this a bug?

2011-04-29 Thread Roberto Bouza
Hello, Going through the style sheet I was modifying some classes and I hit this, maybe a bug maybe not: --- test.pp --- $mount = 'aebec:aebec' $splitted = split($mount, ':') # Intentionally getting a nil/empty/not there/ element from the array # $test = $splitted[4] alert($test) # This doesn't

[Puppet Users] Re: Is this a valid statement?

2011-04-28 Thread Roberto Bouza
essing that if this is not a valid used syntax then I'll have to do something like: if $enabled == true or $enabled == false { } But If its supported/valid then better. Thank you. On Apr 28, 12:52 pm, Pietro Monteiro wrote: > On 04/28/2011 12:46 PM, Roberto Bouza wrote: >

[Puppet Users] Is this a valid statement?

2011-04-28 Thread Roberto Bouza
if $enabled != undef { do it } $enabled will have true or false or nothing/undef and it will be used for multiple things but I don't want to do anything if it is 'undef'. Does this make sense? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users

[Puppet Users] Re: How can I dynamically realize this?

2011-03-14 Thread Roberto Bouza
Ha!!! That is a nice approach... Let me try that one and I'll get back to you on this. Thank you. On Mar 14, 5:50 am, jcbollinger wrote: > On Mar 10, 6:56 pm, Roberto Bouza wrote: > > > > > > > I have an array like this: > > > $items = [ "a",

[Puppet Users] How can I dynamically realize this?

2011-03-10 Thread Roberto Bouza
I have an array like this: $items = [ "a", "-b" ] That should generate something like this (let's say for the Cron resource: Cron <| (tag == "a" or title == "a") and (tag != "b" or title != "b") | > The reason is because we are grouping sets of virtual resources with tags to be realized (as a w

[Puppet Users] Re: When running puppetd the cert goes straight up to revoked?

2011-02-22 Thread Roberto Bouza
Yep Same version 2.6.4 It looks like the client crl.pem was causing this somehow. I just emptied the file and it looks like its working fine. Thx On Feb 22, 2:01 pm, Denmat wrote: > Are client and master at same version? What version are you using? > > On 23/02/2011, at 8:40, Robe

[Puppet Users] Re: When running puppetd the cert goes straight up to revoked?

2011-02-22 Thread Roberto Bouza
t; > /var/lib/puppet/lib > > Other things with SSL issues is to make sure your clocks are up to date, that > you're using the right cert name if needed and DNS working correctly. > > Hope it helps. > > Den > > On 23/02/2011, at 6:53, Roberto Bouza wrote: > &

[Puppet Users] When running puppetd the cert goes straight up to revoked?

2011-02-22 Thread Roberto Bouza
This is the first time is happening... and It happens consecutively with all the hosts. Fresh kickstarted host (never set up before the name so its not on the revocation list), I just run puppetd -tv (we have autosign on), I just get the output below: [root@server182 puppet]# puppetd -tv info: Cr

[Puppet Users] Re: CIDR-matching in puppet manifests?

2011-01-28 Thread Roberto Bouza
Well... Inline templates are a little bit dirty to do this, but they will work. We are doing something similar so we can set up the interfaces of a host based on the group it belongs too. We created a module called custom and there we added in the lib directory as part of the facts a bunch of ru

[Puppet Users] Purge non-managed cron entries

2011-01-25 Thread Roberto Bouza
Hello everyone, I'm trying to purge all the non managed cron entries but I'm getting an error... the systax is very simple. :-) I saw a bug but it looked like it was from 0.25 I'm using 2.6.4 Any help will be appreciated. Thx. class my::cron { # Remove all the unmanaged resources from the c

[Puppet Users] Re: How to realize resources on a node?

2011-01-24 Thread Roberto Bouza
I'm sorry... I was using the wrong "tag" name... duh! I changed it to the correct one and it worked great. Thx. On Jan 24, 11:49 am, Roberto Bouza wrote: > Hello, > > I'm trying to realize resources on a node but it looks like they never > get realized. > &g

[Puppet Users] How to realize resources on a node?

2011-01-24 Thread Roberto Bouza
Hello, I'm trying to realize resources on a node but it looks like they never get realized. Here is an example node /mynode/ inherits default { $logging_retention = 365 $puppet_lab = true # Including modules # include defaults include itms Cron <| tag == "default_cron" |> } Th

[Puppet Users] Re: File type failing how to avoid this?

2010-11-15 Thread Roberto Bouza
Thank you!!! Pretty much that answers my question. Thanks again. On Nov 15, 6:56 am, jcbollinger wrote: > On Nov 12, 12:28 pm, Roberto Bouza wrote: > > > Hello, > > > Up to right now everything is working great with puppet. I just have > > one questions. > >

[Puppet Users] File type failing how to avoid this?

2010-11-12 Thread Roberto Bouza
Hello, Up to right now everything is working great with puppet. I just have one questions. Is there a way to tell a type (like file) not to fail if something specific happens. Let's say I have a directory which it needs to be created if its not there and then I mount a file system "ro" on top of

[Puppet Users] Re: Variable Interpolation (double interpolation)

2010-10-28 Thread Roberto Bouza
Yes... this would be a better cleaner solution.. sadly we are running 0.25 still until we upgrade. Hashes are great, aren't they? Thx On Oct 28, 12:41 am, Felix Frank wrote: > On 10/28/2010 04:00 AM, Joe McDonagh wrote: > > > On 10/27/2010 07:37 PM, Roberto Bouza w

[Puppet Users] Re: Variable Interpolation (double interpolation)

2010-10-27 Thread Roberto Bouza
Thanks!!! It worked like a charm. On Oct 27, 3:23 pm, Joe McDonagh wrote: > On 10/27/2010 04:39 PM, Roberto Bouza wrote: > > > > > Hello, > > > I have a group of variables like > > > $a_logs_project1 = machine1 > > $b_logs_project2 = machine2 &g

[Puppet Users] Variable Interpolation (double interpolation)

2010-10-27 Thread Roberto Bouza
Hello, I have a group of variables like $a_logs_project1 = machine1 $b_logs_project2 = machine2 then on the definition I'm genrating a variable like: $machine_name = "${letter}_logs_${project}" So $machine name will be something like: a_logs_project1 Now I need to convert that (or interpolate

[Puppet Users] AIX Puppet clients is not sending request for cert

2009-12-14 Thread Roberto Bouza
Hello, I was able to compile ruby add gems install facter and puppet on one LDAP. Now everything looks good, puppetd is up and running but when checking the certificate on the puppetmaster server (A linux box) I don't see the request from the client at all. Do you have any ideas? Thank you. --