[Puppet Users] Custom Function to generate random password

2012-04-03 Thread r0k5t4r
Hi, I'm currently trying to write a simple function to generate a random password. I have looked at the fqdn_rand.rb script to get things going but unfortunately my ruby skills are very bad. I found the following code snippet that does what I need: begin def random_password(size = 8) chars =

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Pablo Fernandez
I am personally completely against splitting the list. It will basically force everyone to be in the two lists, and even worse, those with a question that does not get an answer, will try with the second list. Besides, when you have a question, how do you know if it's a difficult one?

[Puppet Users] Re: PuppetMaster doesn't trust Puppet Agent on the same host

2012-04-03 Thread Jcduss
Hi, Thank you, Then if I change it to [main] after cleaning the puppet.mydomain.com certs, I get this : info: Creating a new SSL key for puppet.mydomain.com warning: peer certificate won't be verified in this SSL session err: Could not request certificate: SSL_connect returned=1 errno=0

Re: [Puppet Users] local vs global variables

2012-04-03 Thread Pablo Fernandez
Hi again, Ok, this one is getting more interesting. I have tried the --debug option, and I see something very strange. It is going to be a bit long (sorry, I was asked for more details). Let me first clarify what I do with the hierarchy: :hierarchy: - %{hostname} - group_%{group0} -

Re: [Puppet Users] Hash iteration order in a template not consistent

2012-04-03 Thread Matthias Saou
On Thu, 29 Mar 2012 10:06:01 +0200 Martijn Grendelman mart...@iphion.nl wrote: [...] ruby hashes are not stored in predictable order so this will happen, the proposed solution should work. But as always the best is just to test it and see how it goes, it wont bite :) %

[Puppet Users] How to execute a script from the server

2012-04-03 Thread mac01
Hi, How to only execute the script from the server instead of first copying the file then executing the script from puppet ? Thanks -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

[Puppet Users] Re: Custom Function to generate random password

2012-04-03 Thread Krzysztof Wilczynski
Hi, On Tuesday, 3 April 2012 07:36:06 UTC+1, r0k5t4r wrote: Hi, I'm currently trying to write a simple function to generate a random password. I have looked at the fqdn_rand.rb script to get things going but unfortunately my ruby skills are very bad. [...] Try this one:

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Dan White
For searching older info, try http://www.mail-archive.com/puppet-users@googlegroups.com/ But I concur -1 for separation “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin Hobbes) -

Re: [Puppet Users] How to execute a script from the server

2012-04-03 Thread Dan White
But that is how it works. file{ /etc/puppet/scripts: ensure = directory, owner = root, group = root, mode = 70oo; /etc/puppet/scripts/checkUsers.bash: owner = root, group = root, mode = 700, source =

Re: [Puppet Users] How to execute a script from the server

2012-04-03 Thread Jeff McCune
On Apr 3, 2012, at 6:16 AM, mac01 smilemukul2...@gmail.com wrote: Hi, How to only execute the script from the server instead of first copying the file then executing the script from puppet ? My answer depends on what you're trying accomplish. If you're trying to get some data to fill in

[Puppet Users] Re: escaping the @ symbol

2012-04-03 Thread jcbollinger
On Apr 2, 10:44 am, John Kennedy skeb...@gmail.com wrote: I thought the @ was used to define a virtual resource. Does that not give it special meaning to puppet? Not in the context (i.e. quoted) in which it appears in your manifest. John -- You received this message because you are

[Puppet Users] Re: Custom Function to generate random password

2012-04-03 Thread r0k5t4r
Hi, thanks a lot. Just what I was looking for. Works like a charm. :) Best Regards On 3 Apr., 13:36, Krzysztof Wilczynski krzysztof.wilczyn...@linux.com wrote: Hi, On Tuesday, 3 April 2012 07:36:06 UTC+1, r0k5t4r wrote: Hi, I'm currently trying to write a simple function to generate a

[Puppet Users] Re: local vs global variables

2012-04-03 Thread jcbollinger
On Apr 3, 3:17 am, Pablo Fernandez pablo.fernan...@cscs.ch wrote: class data::group_wn {      # This is needed to connect freely from/to the CE      $sshd_HostbasedAuthentication = 'yes'      $sshd_IgnoreUserKnownHosts = 'yes' } class data::group_ppwn inherits data::group_wn {      # We

[Puppet Users] Re: Custom Function to generate random password

2012-04-03 Thread Krzysztof Wilczynski
Hi, I am glad you found it useful. KW On Tuesday, 3 April 2012 14:01:44 UTC+1, r0k5t4r wrote: Hi, thanks a lot. Just what I was looking for. Works like a charm. :) Best Regards On 3 Apr., 13:36, Krzysztof Wilczynski krzysztof.wilczyn...@linux.com wrote: Hi, On Tuesday, 3

Re: [Puppet Users] Issue with puppet windows

2012-04-03 Thread Marco Parra D.
Hi Josh, I'll check that link, Thank you again for your help... Regards... On 02-04-2012 18:24, Josh Cooper wrote: Hi Marco, On Mon, Apr 2, 2012 at 1:17 PM, Marco Parra D. marco.parr...@gmail.com mailto:marco.parr...@gmail.com wrote: HI Josh, The program was uninstalled using

[Puppet Users] Re: Secure hostname/Serial number through puppet before signing certs

2012-04-03 Thread Mukul Malhotra
Hi, How can I restrict other nodes or apply some security check to in my domain.For example I had two systems where one is connected with the puppet server for receiving updates for second system's I change the hostname to test.example.com configure the system similar to the first system runs

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Scott Merrill
On Tue, Apr 3, 2012 at 12:30 AM, Michael Stahnke stah...@puppetlabs.com wrote: Breaking the users list into two lists has its pros and cons. Pros: * Less code fragments in emails * Advanced users not bogged down with new user questions Cons: * Fragmentation of the user-base * Who will

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Nigel Kersten
On Mon, Apr 2, 2012 at 10:56 PM, Brian Gupta brian.gu...@brandorr.comwrote: Michael, Would you guys consider standing up a shapado instance? http://shapado.com/ (It's basically an FLOSS clone of stackoverflow, and is great for QA type stuff.) You could stand it up as ask.puppetlabs.com, and

[Puppet Users] 2 package resources for the same package installation in two differents modules caused errors

2012-04-03 Thread Christophe L
Hello, We had the following situation where including two classes that were ensuring the installation of the same package php5-imagick and it was causing an error indicating that two ressources of the same name are forbidden (sorry, I don't have the exact message error since we fixed quickly the

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Daniel Pittman
On Mon, Apr 2, 2012 at 22:53, Denmat tu2bg...@gmail.com wrote: How about a 'serverfault' or 'stackoverflow' or the like site? One of the issues I find is that previous answers are lost in mail lists and hard to search for. IRC isn't much help for searching previous answers either. I would

[Puppet Users] change host file depending on location

2012-04-03 Thread Jim Dehune
Hi all, New to puppet and am hoping I can be pointed in the right direction. I have several Amazon EC2 instance in us-east, us-west, eu, and apac. I need different /etc/hosts file for each region. I'm not sure how to implement this in each servers node definition. I'd like to have something

Re: [Puppet Users] change host file depending on location

2012-04-03 Thread Len Rugen
This sounds like standard file template should work, for that file, use content = template(your-class/your-template.erb); Then in that file (your-template.erb) you can have: static stuff % if location == us-west-1c -% something % else % default stuff % end % more static stuff The else is

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Brian Gupta
On Tue, Apr 3, 2012 at 2:35 PM, Daniel Pittman dan...@puppetlabs.comwrote: On Mon, Apr 2, 2012 at 22:53, Denmat tu2bg...@gmail.com wrote: How about a 'serverfault' or 'stackoverflow' or the like site? One of the issues I find is that previous answers are lost in mail lists and hard to search

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Nigel Kersten
On Tue, Apr 3, 2012 at 12:53 PM, Brian Gupta brian.gu...@brandorr.comwrote: On Tue, Apr 3, 2012 at 2:35 PM, Daniel Pittman dan...@puppetlabs.comwrote: On Mon, Apr 2, 2012 at 22:53, Denmat tu2bg...@gmail.com wrote: How about a 'serverfault' or 'stackoverflow' or the like site? One of the

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Nigel Kersten
On Tue, Apr 3, 2012 at 1:13 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Tue, Apr 3, 2012 at 12:53 PM, Brian Gupta brian.gu...@brandorr.com wrote: On Tue, Apr 3, 2012 at 2:35 PM, Daniel Pittman dan...@puppetlabs.com wrote: On Mon, Apr 2, 2012 at 22:53, Denmat tu2bg...@gmail.com wrote:

[Puppet Users] HP-UX Puppet Agent

2012-04-03 Thread Michael Glatz
I am currently working on getting a functional HP-UX Agent communicating to an RHEL Master. Agent OS: HP-UX 11.31 Itanium Ruby: 1.9.1 (depot from iexpress) Puppet 2.7.12 - Installed from Source Facter 1.6.7 - Installed from Source They are communicating but I get errors when obtaining the

Re: [Puppet Users] 2 package resources for the same package installation in two differents modules caused errors

2012-04-03 Thread Miguel Di Ciurcio Filho
On Tue, Apr 3, 2012 at 3:33 PM, Christophe L cl.subscript...@gmail.com wrote: Hello, We had the following situation where including two classes that were ensuring the installation of the same package php5-imagick and it was causing an error indicating that two ressources of the same name are