Re: [Puppet Users] certificate problem ; puppetca can't find cert request ?

2010-10-01 Thread Nan Liu
On Fri, Oct 1, 2010 at 2:50 AM, Daniel Maher wrote: > > Thank you for the advice ; unfortunately, as i had already revoked the > certificate, cleaning and re-issuing was not a possibility.  I ended up > biting the bullet and just wiping out and re-initialising the certificates > across the board.

Re: [Puppet Users] certificate problem ; puppetca can't find cert request ?

2010-10-01 Thread Jeff McCune
On Oct 1, 2010, at 2:50 AM, Daniel Maher wrote: > On 09/30/2010 05:49 PM, Nan Liu wrote: >> On Thu, Sep 30, 2010 at 6:20 AM, Daniel Maher wrote: >>> I removed /var/lib/puppet/ssl/certs/.pem , then ran >>> puppetd with --waitforcert. Unfortunately, when i run a >>> puppetca --list --all , is not

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-10-01 Thread Jeff McCune
On Sep 30, 2010, at 3:04 PM, Greg Haase wrote: > I believe that in the past I was able to view this information on my puppet > server with > > ralsh nagios_host > > It would give me a listing of what was stored in nagios_host. Now when I do > this I see nothing. I'm not sure if you mean that y

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-10-01 Thread Daniel Pittman
Greg Haase writes: > I am exporting my resources to the database. I can verify that this is > occurring. Yet I am not getting all of the the > > Nagios_host <<|target ==nagios_hosts.${fqdn}.cfg|>> > > files written to my nagios server and I am interested in finding out how to > trace down this f

Re: [Puppet Users] Re: Duplicating web servers

2010-10-01 Thread Daniel Pittman
James Turnbull writes: > Kikanny wrote: > >> Thank you all for taking your time to explain it to me. I guess I'll give >> it a whirl and see how it goes. Another question I have is what if the >> person managing a web server does not have full knowledge of whatever is >> installed in a server or t

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-10-01 Thread Greg Haase
Avi, I am exporting my resources to the database. I can verify that this is occurring. Yet I am not getting all of the the Nagios_host <<|target ==nagios_hosts.${fqdn}.cfg|>> files written to my nagios server and I am interested in finding out how to trace down this functionality of the collec

Re: [Puppet Users] Re: How to check if a parameter is defined

2010-10-01 Thread Héctor Rivas Gándara
>> I think that add assertions would be a good idea. They could check >> True/False conditions, if variables are defined or not, if objects are >> defined... Is there any proposal about this? > > I think the problem with such things is that they are dependent on the > order puppet evaluates the cat

Re: [Puppet Users] mount type attempting remount when ensure => present

2010-10-01 Thread Bruce Richardson
On Fri, Oct 01, 2010 at 08:55:34AM -0400, Rob McBroom wrote: > I've added a use case to the bug report. > > On Oct 1, 2010, at 4:30 AM, Bruce Richardson wrote: > > > According to the online documentation (which is autogenerated), "Set to > > present to add to fstab but not change mount/unmount st

[Puppet Users] Re: Duplicating web servers

2010-10-01 Thread Kikanny
I really appreciate your response Matt. It gave me a good insight on the different steps I would have to do to get this working! Hopefully I'll be able to go to the pub one day !! On Oct 1, 11:34 am, Matt Wallace wrote: > On Friday 01 Oct 2010 15:01:25 Kikanny wrote: > > > Thank you all for takin

Re: [Puppet Users] Re: Duplicating web servers

2010-10-01 Thread Hunter Haugen
Also of note, if you're using Puppet 2.6.x then the command `ralsh` from 0.25.x has been superseded by the `puppet resource` command. -Hunter On Fri, Oct 1, 2010 at 08:34, Matt Wallace wrote: > On Friday 01 Oct 2010 15:01:25 Kikanny wrote: >> Thank you all for taking your time to explain it to

Re: [Puppet Users] Re: Duplicating web servers

2010-10-01 Thread Matt Wallace
On Friday 01 Oct 2010 15:01:25 Kikanny wrote: > Thank you all for taking your time to explain it to me. I guess I'll > give it a whirl and see how it goes. Another question I have is what > if the person managing a web server does not have full knowledge of > whatever is installed in a server or th

Re: [Puppet Users] Re: Duplicating web servers

2010-10-01 Thread James Turnbull
Kikanny wrote: Thank you all for taking your time to explain it to me. I guess I'll give it a whirl and see how it goes. Another question I have is what if the person managing a web server does not have full knowledge of whatever is installed in a server or there was some other configuration mana

[Puppet Users] Re: Duplicating web servers

2010-10-01 Thread Kikanny
Thank you all for taking your time to explain it to me. I guess I'll give it a whirl and see how it goes. Another question I have is what if the person managing a web server does not have full knowledge of whatever is installed in a server or there was some other configuration management in place.

Re: [Puppet Users] Duplicating web servers

2010-10-01 Thread Matt Wallace
On Friday 01 Oct 2010 14:27:38 Daniel Pittman wrote: > On the plus side: it will make the *next* web server, after this one, > really easy. Like, five minutes of work easy. I have to agree with this. It's taken me the better part of two months (on and off) to get a mailserver manifest to mirror

RE: [Puppet Users] Duplicating web servers

2010-10-01 Thread Byron Pezan
the ralsh command may be of use in this situation. ralsh will produce minimalist puppet code based on the existing configuration. something like this may at least give you a good starting point, though i wouldn't recommend blindly running this code on another system. you will want to verify a

Re: [Puppet Users] Duplicating web servers

2010-10-01 Thread Daniel Pittman
Kikanny writes: > I'm a puppet noob and I've been tinkering with it for the past couple of > weeks. What I would like to do now is duplicate a web server. So I have a > web server running. ...and not built with puppet, right? > I would like to make puppet to duplicate this web server on another

Re: [Puppet Users] Duplicating web servers

2010-10-01 Thread Felix Frank
On 10/01/2010 03:07 PM, Kikanny wrote: > Hi all. I'm a puppet noob and I've been tinkering with it for the past > couple of weeks. What I would like to do now is duplicate a web > server. So I have a web server running. I would like to make puppet to > duplicate this web server on another machine.

Re: [Puppet Users] Re: Installing puppet 0.25.5 on SLES 9 64bit

2010-10-01 Thread Thorsten Biel
Hi, I have a self-packaged Ruby 1.8.7 running on SLES9 64bit. If you wish, I can send you the binary RPMs (rather large), if building the package isn't your cup of tea. Anybody else interested in the Spec file or binaries? Cheers, -Thorsten On 1 Oct 2010, at 13:27, Christian wrote: > Sand

Re: [Puppet Users] Re: How to check if a parameter is defined

2010-10-01 Thread Felix Frank
On 10/01/2010 02:30 PM, Héctor Rivas Gándara wrote: >> How can I check wether a parameter is defined or not. For instance a >> function that would fail (with a parser error) if the variable is not >> defined: >> >> check_defined($avar) or check_defined("$avar") > > I answer myself, one way would b

[Puppet Users] Duplicating web servers

2010-10-01 Thread Kikanny
Hi all. I'm a puppet noob and I've been tinkering with it for the past couple of weeks. What I would like to do now is duplicate a web server. So I have a web server running. I would like to make puppet to duplicate this web server on another machine. This includes installing the same packages, hav

Re: [Puppet Users] mount type attempting remount when ensure => present

2010-10-01 Thread Rob McBroom
I've added a use case to the bug report. On Oct 1, 2010, at 4:30 AM, Bruce Richardson wrote: > According to the online documentation (which is autogenerated), "Set to > present to add to fstab but not change mount/unmount status " Where are you seeing that? For as long as I've used Puppet, the t

[Puppet Users] Re: How to check if a parameter is defined

2010-10-01 Thread Héctor Rivas Gándara
> How can I check wether a parameter is defined or not. For instance a > function that would fail (with a parser error) if the variable is not > defined: > > check_defined($avar) or check_defined("$avar") I answer myself, one way would be: if $avar == undef { fail("'avar' not defined") } I th

Re: [Puppet Users] Re: Installing puppet 0.25.5 on SLES 9 64bit

2010-10-01 Thread Sandor Szuecs
On Oct 1, 2010, at 1:27 PM, Christian wrote: > > Your solution suggestion i don't understand completely ... > $ ruby -e 'require "openssl"; puts OpenSSL::Digest::MD5.digest "foo"' > > Which term i should use to replace "foo"? Sorry i'm not (yet) a ruby > expert. Sorry it was not a solution sugg

[Puppet Users] How to check if a parameter is defined

2010-10-01 Thread Héctor Rivas Gándara
Fast question: How can I check wether a parameter is defined or not. For instance a function that would fail (with a parser error) if the variable is not defined: check_defined($avar) or check_defined("$avar") -- Atentamente Héctor Rivas -- You received this message because you are subscribed

[Puppet Users] Re: Installing puppet 0.25.5 on SLES 9 64bit

2010-10-01 Thread Christian
Sandor, I'm not sure if it is a SUSE problem. As described the same setup works perfectly on SLES 9 32 bit workstations. I more think there is something wrong with the 64 bit rpms or the 64 bit ruby version. I used now the ldd command to list the libraries ruby is linked against. As you recognize

Re: [Puppet Users] certificate problem ; puppetca can't find cert request ?

2010-10-01 Thread Daniel Maher
On 09/30/2010 05:49 PM, Nan Liu wrote: On Thu, Sep 30, 2010 at 6:20 AM, Daniel Maher wrote: I removed /var/lib/puppet/ssl/certs/.pem , then ran puppetd with --waitforcert. Unfortunately, when i run a puppetca --list --all , is not listed, even though there is very clearly a request pem in /va

Re: [Puppet Users] Re: Installing puppet 0.25.5 on SLES 9 64bit

2010-10-01 Thread Sandor Szuecs
On Oct 1, 2010, at 10:29 AM, Christian wrote: > Some idea how to solve that problem and how i can make the ./ > openssl.so loadable? You can try the following: $ ruby -e 'require "openssl"; puts OpenSSL::Digest::MD5.digest "foo"' Is you ruby installation linked against openssl.so? I am not su

Re: [Puppet Users] mount type attempting remount when ensure => present

2010-10-01 Thread Bruce Richardson
On Thu, Sep 30, 2010 at 02:13:08PM -0400, Rob McBroom wrote: > > According to the documentation, that's how `ensure => present` is > supposed to work, though I can't imagine the use case for “put it in > fstab but make sure it's never mounted”. According to the online documentation (which is auto

[Puppet Users] Re: Installing puppet 0.25.5 on SLES 9 64bit

2010-10-01 Thread Christian
Thanks to Sandor's suggestion i was able to run facter. By running puppetd with the right ruby path a new error message appeared. It seems that it can't be found the ./openssl.so library. Following message appears: Cannot open shared object file: No such file or directory - ./ openssl.so (LoadErr

Re: [Puppet Users] mount type attempting remount when ensure => present

2010-10-01 Thread Felix Frank
On 10/01/2010 02:41 AM, John Warburton wrote: > http://projects.puppetlabs.com/issues/4904 Thanks. > Can Felix & Rob update the ticket with your use cases and requests? Done. I hope I could generalize the problem somewhat (yes, in this case that's a good thing ;-) Cheers, Felix -- You receive