[Puppet Users] Re: Passenger Woes

2009-10-21 Thread Stephen Nelson-Smith
On Tue, Oct 20, 2009 at 9:36 PM, Matt wrote: > > I'd really bite the bullet Stephen and give passenger 2.2.2 a try. OK - tried passenger 2.2.2 - same behaviour. I'm going to blow everything away and start again from scratch and see if I get the same results. S. -- Stephen Nelson-Smith Technic

[Puppet Users] Re: Installation problem on Ubuntu 8.04

2009-10-21 Thread Adam Ryczkowski
On 21 Paź, 00:11, James Turnbull wrote: > 2009/10/21 Adam Ryczkowski : > > > > > It looks that most people writing the puppet Wiki and posting letters > > to this list are using puppet at least 0.25. I use a Ubuntu 8.04 > > server, where the most recent version of puppet I can get from > > reposi

[Puppet Users] Re: How to determine if there is a room for a copied file in puppet before copying?

2009-10-21 Thread Adam Ryczkowski
On 21 Paź, 06:54, Luke Kanies wrote: > On Oct 19, 2009, at 5:29 AM, Adam Ryczkowski wrote: > > > > >> Really, though, you probably don't want to use Puppet to copy a 1gb > >> file - it still copies the files into memory. > > Is  this true also for local copies (i.e. copies which doesn't involve >

[Puppet Users] Re: Arbitrary 3rd party installers

2009-10-21 Thread Andrew S
On Oct 21, 6:11 am, Luke Kanies wrote: > The only real thing I can recommend is either 1) package the software   > yourself (by far the best option) or 2) use a defined type to do a   > wget, install, and rm of the tarball.  Really, if you look at the   > Blastwave pkg-get script, that's pretty m

[Puppet Users] Re: trouble with puppetrun on 0.24.8

2009-10-21 Thread kyawai
Thank you for reply. Sorry, value '10' of the parallelize is not so significant, because even if the value is changed, it becomes a same deal. It became a same deal when not specifying it. It is using report mail to information share a manifest application result because multiple people manage t

[Puppet Users] Re: List of puppet builtin variables apart from those from facter

2009-10-21 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luke Kanies wrote: > On Oct 20, 2009, at 8:26 AM, Johan Finnved wrote: > >> Is there a list of builtin variables that get addad to thos from >> facter. >> >> I have found $server and $servername and $environment in examples >> from the puppet >>

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Reno
Hi, thanks for the reply. reno# puppetd --test warning: Certificate validation failed; considering using the certname configuration option err: Could not retrieve catalog: Certificates were not trusted: hostname was not match with the server certificate warning: Not using cache on failed catalog

[Puppet Users] Re: access exported resources in template

2009-10-21 Thread Sven Mueller
Luke Kanies schrieb: > On Oct 19, 2009, at 6:19 AM, Bernhard Bock wrote: > >> Hi, >> >> I'm trying to develop a class that autogenerates a config file based >> on an .erb template. >> It shall populate the config file with data exported from various >> hosts. >> >> Some pseudocode to clarify

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Al @ Lab42
Hi Reno, in puppet.conf on the client you have: server = Asus-Vista-Box this should be an host you can find (via hosts or dns) AND the hostname of your server, otherwise you run into certificates problems. I suggest to use "puppet" as servername (the default) or change things in the followring wa

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Reno
Hi, I really do not get it. the host name of the server is Asus-Vista-Box This is my /etc/host in the server 127.0.0.1 localhost 127.0.1.1 Asus-Vista-Box.lokku.netAsus-Vista-Box and this in the clent: 127.0.0.1 localhost 127.0.1.1 puppetclient.lokku.net puppetc

[Puppet Users] Re: access exported resources in template

2009-10-21 Thread Ohad Levy
I've recently added a similar functionality to foreman - it allows you to query within puppet (or externally via a script) to get back a list of hosts that answer to a certain criteria. Currently, one can query for a hosts that belong to a certain class or has a certain fact, e.g. in a template y

[Puppet Users] Re: Module Dependancy

2009-10-21 Thread jcbollinger
On Oct 21, 12:14 am, Luke Kanies wrote: > On Oct 20, 2009, at 4:55 PM, Douglas Garstang wrote: [...] > > So obviously puppet can't find the Yumrepo['Core'] resource. How can I > > let a puppet module include/access resources defined in nodes? > > You can't - you have to extract it into a class

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Reno
ok I fix that just putting Asus-Vista-Box.lokku.net instead of Asus- Vista-Box as client config but: puppetd --test info: Retrieving plugins err: Could not retrieve plugins: execution expired but no rules are apply On Oct 21, 1:07 pm, Reno wrote: > Hi, > I really do not get it. > the host

[Puppet Users] getting augeas 0.5.3 to compile on Solaris

2009-10-21 Thread Dan Bode
Just to recap, with Davids help, here are the steps that I had to take to get augeas 0.5.3 to compile on solaris 10. 1. link to readline header file and libs in /usr/sfw #>ln -s /opt/csw/lib/libreadline.so /usr/sfw/lib/ #>ln -s /opt/csw/include/readline /usr/sfw/include/ #>ln -s /opt/csw/lib/lib

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Reno
Ok now, seems that all is workingalmost.but: class aptsetup { file { "/etc/apt/sources.list": owner => root, group => root, mode => 644, source => "puppet://asus-vista-box.lokku.net/files/etc/ apt/sources.list } }

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Adam Crews
It looks like you are missing the closing " at the end of the source line. -Adam On Oct 21, 2009, at 7:27 AM, Reno wrote: > > Ok now, seems that all is workingalmost.but: > > > class aptsetup { > > file { "/etc/apt/sources.list": > owner => root, > group

[Puppet Users] Re: template scope.compiler.classlist.include problems/flapping

2009-10-21 Thread Jason Antman
Luke Kanies wrote: > To clarify - you're looking for a class generated by your external > node tool, and sometimes it shows up in this list and sometimes doesn't? > > My guess, though, is that this is an ordering issue - the classlist is > built as classes are evaluated, and the evaluation ord

[Puppet Users] Re: Arbitrary 3rd party installers

2009-10-21 Thread Jason Antman
Andrew S wrote: > Hi all, > > I've just started deploying a puppet infrastructure, and have run > across what I'm sure is a common problem - third party software that > does not use the systems package manager, instead using their own > script/binary blob/etc. Now my environment doesn't have any

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Reno
sorry just a copy and past error ;-) btw I found the problem, stupid like the previsious one...I forgot to copy the source.list in /etc/ puppet/files :-/ thnks for the repply btw ;-) On Oct 21, 3:32 pm, Adam Crews wrote: > It looks like you are missing the closing  " at the end of the source >

[Puppet Users] execute more commands (beginner talking)

2009-10-21 Thread Reno
I have this: class aptsetup { file { "/etc/apt/sources.list": owner => root, group => root, mode => 644, source => "puppet://asus-vista-box.lokku.net/files/etc/ apt/sources.list" } } exec { subscribe-echo: comm

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Roy Nielsen
Hello Reno, Try this: exec { touch-file: command => "touch /home/test", require => Exec[subscribe-echo] } - or - file { touch-file: contents => " ", path => "/home/test", require => Exec[subscribe-echo] } Regards, -Roy Reno wrote: >

[Puppet Users] Failed to generate additional resources during transaction

2009-10-21 Thread Reno
Hello, puppetd --test return this output: err: /File[/var/lib/puppet/lib]: Failed to generate additional resources during transaction: Cannot access mount[plugins] err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Cannot access mount[plugins] Could not describe /pl

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Reno
hello, what is the meaning of that: require => Exec[subscribe-echo] On Oct 21, 4:21 pm, Roy Nielsen wrote: > Hello Reno, > > Try this: > >     exec { touch-file: >         command => "touch /home/test", >         require => Exec[subscribe-echo] >     } > >  - or - > >     file { touch-file:

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Jeff Adams
Something like the following should work: exec { subscribe-echo: command => "/usr/bin/apt-get -q -q update && touch /home/test ", logoutput => false, refreshonly => true, subscribe => file["/etc/apt/sources.list"]

[Puppet Users] Puppet language grammar

2009-10-21 Thread Cameron
Is there a formal grammar specification defined for the Puppet language (e.g. EBNF)? Cameron. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@go

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Roy Nielsen
Hello Reno, "require" is a metaparameter -- see: http://reductivelabs.com/trac/puppet/wiki/MetaparameterReference#require I believe the string proceeding the brackets is a "capitalized type" from: http://reductivelabs.com/trac/puppet/wiki/TypeReference and the string inside the brackets is th

[Puppet Users] Re: any plans to support pkgutil?

2009-10-21 Thread Carl Caum
Try the attached file. Put it in a module named pkgutil and put it in pkgutil/plugins/puppet/provider/package/pkgutil.rb Make sure you have plugin syncing on. I haven't tested it. I just modified a different provider. Should be a starting point for you. --~--~-~--~~

[Puppet Users] Re: Puppet language grammar

2009-10-21 Thread Peter Meier
> Is there a formal grammar specification defined for the Puppet > language (e.g. EBNF)? how about looking into the code? http://github.com/reductivelabs/puppet/blob/master/lib/puppet/parser/grammar.ra cheers pete --~--~-~--~~~---~--~~ You received this message

[Puppet Users] Re: any plans to support pkgutil?

2009-10-21 Thread Peter Meier
> Try the attached file. Put it in a module named pkgutil and put it in > pkgutil/plugins/puppet/provider/package/pkgutil.rb > Make sure you have plugin syncing on. I haven't tested it. I just > modified a different provider. Should be a starting point for you. and if you use it successfully

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Reno
hi and thanks for the help I use a more simple ( to me ) but effective solution: exec { "touch /home/ciao": cwd => "/home", path => "/usr/bin:/usr/sbin:/bin" } On Oct 21, 4:30 pm, Roy Nielsen wrote: > Hello Reno, > > "require" is a metaparameter -- see: > > http://reductivelabs.co

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Brice Figureau
On Wed, 2009-10-21 at 08:53 -0700, Reno wrote: > hi and thanks for the help > > I use a more simple ( to me ) but effective solution: > > > exec { "touch /home/ciao": > cwd => "/home", > path => "/usr/bin:/usr/sbin:/bin" > } You can't guarantee this exec won't run _before_ your other

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Reno
Yes I agree, for example what you will do if I want to run the touch command only if /usr/bin/apt-get -q -q update has run without error? exec { subscribe-echo: command => "/usr/bin/apt-get -q -q update", logoutput => false, refreshonly => true

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Roy Nielsen
Use the onlyif parameter of the exec type: exec { "touch /home/ciao:" cwd => "/home", path => "/usr/bin:/usr/sbin:/bin", onlyif => "/usr/bin/apt-get -q -q update" } Note: the onlyif parameter only works this way with the "exec" type (works a bit differently for the augeas type) Th

[Puppet Users] Re: any plans to support pkgutil?

2009-10-21 Thread windowsrefund
Thanks so much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+uns

[Puppet Users] Re: getting augeas 0.5.3 to compile on Solaris

2009-10-21 Thread Martin Englund
Dan, On Oct 21, 3:49 pm, Dan Bode wrote: > Just to recap, with Davids help, here are the steps that I had to take to > get augeas 0.5.3 to compile on solaris 10. > > 1. link to readline header file and libs in /usr/sfw > > #>ln -s /opt/csw/lib/libreadline.so /usr/sfw/lib/ > #>ln -s /opt/csw/incl

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Reno
err: Could not retrieve catalog: Could not parse for environment production: Syntax error at 'cwd'; expected '}' at /etc/puppet/ manifests/classes/source.list.pp:24 On Oct 21, 5:45 pm, Roy Nielsen wrote: > Use the onlyif parameter of the exec type: > > exec { "touch /home/ciao:" >      cwd => "

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Roy Nielsen
oops, quote in the wrong place, try: exec { "touch /home/ciao": cwd => "/home", path => "/usr/bin:/usr/sbin:/bin", onlyif => "/usr/bin/apt-get -q -q update" } Reno wrote: > err: Could not retrieve catalog: Could not parse for environment > production: Syntax error at 'cwd'; exp

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Reno
op sorry I didn't see too! :-) Btw onlyif => "/usr/bin/apt-get -q -q update" say to do that just after the apt-get command is lunched but what if I want the contrary ... to run the command only if the apt-get fail to run? On Oct 21, 6:02 pm, Roy Nielsen wrote: > oops, quote in the wro

[Puppet Users] sync package in a small net

2009-10-21 Thread Reno
Suppose to have a small net with 5 machines 1 is the puppet master and 4 are clients. We want to use puppet to be sure that the packages installed in each machine will be the same, so that we will modify the master config to add, remove or update package in all the machines. is possible to do th

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Roy Nielsen
Hello Reno - Use the "unless" exec parameter http://reductivelabs.com/trac/puppet/wiki/TypeReference#unless With unless, (from the page): "If this parameter is set, then this exec will run unless the command returns 0." Regards, -Roy Reno wrote: > op sorry I didn't see too! :-) > > Btw >

[Puppet Users] Re: execute more commands (beginner talking)

2009-10-21 Thread Gourav Shah
On Wed, Oct 21, 2009 at 9:53 PM, Reno wrote: > > Yes I agree, > > for example what you will do if I want to run the touch command only > if /usr/bin/apt-get -q -q update has run without error? > > thats what require is for use require => Exec[subscribe-echo] exec { subscribe-echo: >

[Puppet Users] Bug #2617(?) in Puppet 0.25.1rc2

2009-10-21 Thread Adam Ryczkowski
When I use the latest puppet 0.25.1 I got the same problem. This is what I do: 0. Install the Ubuntu 8.04 server with ssh, ruby, rdoc, libopenssl- ruby and git-core (which gets removed after clone). 1. Install the latest puppet from git repositories on both machines using git clone «git clone git:

[Puppet Users] Problem with rrdgraph and reports

2009-10-21 Thread Matt Delves
Hey folks, I'm running into a problem with rrdgraph, specifically that it is giving the following error: Report rrdgraph failed: Invalid owner puppet on setting . Valid owners are root, service. The section of puppet.conf that specifies reporting via rrd is: [main] vardir = /var/lib/puppet

[Puppet Users] Re: trouble with puppetrun on 0.24.8

2009-10-21 Thread Luke Kanies
On Oct 21, 2009, at 2:50 AM, kyawai wrote: > > Thank you for reply. > > Sorry, value '10' of the parallelize is not so significant, > because even if the value is changed, it becomes a same deal. > It became a same deal when not specifying it. > > It is using report mail to information share a ma

[Puppet Users] Re: Puppet language grammar

2009-10-21 Thread Luke Kanies
On Oct 21, 2009, at 8:43 AM, Peter Meier wrote: > >> Is there a formal grammar specification defined for the Puppet >> language (e.g. EBNF)? > > how about looking into the code? > > http://github.com/reductivelabs/puppet/blob/master/lib/puppet/parser/grammar.ra In other words, just a yacc-style

[Puppet Users] Re: access exported resources in template

2009-10-21 Thread Luke Kanies
On Oct 21, 2009, at 3:34 AM, Sven Mueller wrote: > > > > Luke Kanies schrieb: >> On Oct 19, 2009, at 6:19 AM, Bernhard Bock wrote: >> >>> Hi, >>> >>> I'm trying to develop a class that autogenerates a config file based >>> on an .erb template. >>> It shall populate the config file with data expor

[Puppet Users] Re: Failed to generate additional resources during transaction

2009-10-21 Thread Luke Kanies
On Oct 21, 2009, at 8:22 AM, Reno wrote: > > Hello, > > puppetd --test > > return this output: > > > err: /File[/var/lib/puppet/lib]: Failed to generate additional > resources during transaction: Cannot access mount[plugins] > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of >