[Puppet Users] empty files being served from puppet master

2011-03-10 Thread Ryan Dooley
Hey Folks, I just updated my puppet master to 2.6.6. As part of the update, I moved my puppet-master under Passenger. ruby-1.8.7p249 rack-1.2.1 passenger-2.2.15 puppet-2.6.6 ( the clients are all 2.6.0 currently ) Ubuntu 10.04.{1,2} LTS In doing so, I am now seeing the behavior outlined in:

Re: [Puppet Users] keeping a service running properly

2011-03-10 Thread Ben Hughes
On Fri, Mar 11, 2011 at 11:37:42AM +1000, Ian Mortimer wrote: > The service in this case is ypbind but it could apply to other > services. The problem is that `service ypbind status' returns 0 > if the service is running even if it's not bound to the domain. Is there no reason you can't just mak

Re: [Puppet Users] Managing directories recursively and adjust subdirectories permissions?

2011-03-10 Thread Ben Hughes
On Thu, Mar 10, 2011 at 09:55:20AM -0800, Maciej Skrzetuski wrote: > Any ideas on this? How can I do both, copy files recursively and then > change some subdirectory permissions? This, I believe (and I'm happy to be corrected), is due to the fix of https://projects.puppetlabs.com/issues/2296 To

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

2011-03-10 Thread Brian Gallew
The short answer is: it sucks to be you. The longer answer is that variables are really rvalues: they are something that you can read and test, but they are not function calls or otherwise subject to evaluation. When you write Cron <| tag == "a" |> in your manifest, you are evaluating an == expre

[Puppet Users] symlink noop error

2011-03-10 Thread John Warburton
Hi All I have a bit of a strange one, and am not sure I'm doing this right. This is with 2.6.4 on Solaris 10 We want to create a sym link from a source file that is created by a package. If the package isn't installed, puppet in noop is registering an error (big red in the dashboard) because it c

Re: [Puppet Users] Possible bug with apt and --force-yes

2011-03-10 Thread Daniel Pittman
On Wed, Feb 23, 2011 at 00:51, Avleen Vig wrote: > I spun up an instance of Ubuntu 10.10 in EC2 tonight and installed > puppet, for the purpose of testing mongodb. Ubuntu ships with Puppet > 2.6.1 […] > I believe this is caused by the following code in /usr/lib/ruby/1.8/ > puppet/provider/packag

Re: [Puppet Users] Puppet Error Message

2011-03-10 Thread Daniel Pittman
On Tue, Mar 1, 2011 at 08:00, cyrus wrote: > Every now and then I get the following error on a Puppet run: > > Mon Feb 28 21:19:04 -0700 2011 Puppet (err): Could not retrieve > catalog from remote server: Error 400 on SERVER: invalid value for > Integer: "eNp1VtmS6jgSfZ+v0NTDRHczgHfAEf0ABgw2i9kNLx

Re: [Puppet Users] ldap.conf modification problem

2011-03-10 Thread Daniel Pittman
Actually, it is worse than that: it is "libc, as used by Ruby, as used by Puppet"; we are several layers abstracted from the NSS data source, and if that doesn't dynamically update we are totally stuck. Which I understand to be the root cause here. Regards, Daniel On Tue, Mar 8, 2011 at 12:4

Re: [Puppet Users] finished, yet execution expired

2011-03-10 Thread Daniel Pittman
…and now it is. :) On a more serious note, if that doesn't resolve your problem, please file a ticket with us so we can work to track it down. We do think these are very, very important problems, and would like to eliminate the last of them from our system. Thanks, Daniel On Tue, Mar 8, 201

Re: [Puppet Users] Re: retrieve output files on clients

2011-03-10 Thread Daniel Pittman
On Thu, Mar 10, 2011 at 06:52, Felix Frank wrote: > On 03/10/2011 02:31 PM, Vincent wrote: >> I execute one script hourly, this script create an output file that I >> need to push on another server >> As puppet can pass our fw I would like to use it as file transfert. > > Hmm...I don't think this

[Puppet Users] keeping a service running properly

2011-03-10 Thread Ian Mortimer
Hi The service in this case is ypbind but it could apply to other services. The problem is that `service ypbind status' returns 0 if the service is running even if it's not bound to the domain. Replacing hasstatus with `status => "/usr/bin/ypwhich"' doesn't fix it either because puppet will then

Re: [Puppet Users] Re: question about auto requiring resources

2011-03-10 Thread Patrick
Actually, I was hoping you'd run it standalone so that the the other stuff wouldn't interfere. On Mar 10, 2011, at 1:25 PM, Stefan Baryakov wrote: > yep. I'll send you the result tomorrow. Note that the real setup is > with 2.6.4 with external node classifier and myfile and myuser are in > separ

[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

Re: [Puppet Users] Re: design question: Where to manage Users?

2011-03-10 Thread Liberty Young
Jon, Thanks for the input. I'll have to talk with my team, but it looks like keeping those service-users in the package (RPM, in our case) is the way to go. On Thu, Mar 10, 2011 at 7:44 AM, jcbollinger wrote: > > On Mar 9, 4:05 pm, Liberty Young wrote: >> Hi! >> >> My company has been successful

[Puppet Users] Re: question about auto requiring resources

2011-03-10 Thread Stefan Baryakov
yep. I'll send you the result tomorrow. Note that the real setup is with 2.6.4 with external node classifier and myfile and myuser are in separate modules Regards, Stefan On Mar 10, 10:13 pm, Patrick wrote: > I'm almost sure this isn't true could you put just that into a "test.pp" file > and ru

Re: [Puppet Users] Re: question about auto requiring resources

2011-03-10 Thread Patrick
I'm almost sure this isn't true could you put just that into a "test.pp" file and run that in master-less mode to check? In 0.25.x this would be "puppet --verbose --debug test.pp" In 2.6.x I think this would be "puppet apply --verbose --debug test.pp" Note: this is run on the client. On Mar 10,

[Puppet Users] Re: question about auto requiring resources

2011-03-10 Thread Stefan Baryakov
Thanks for the response. What is the scope of "if myresource exists" part? From what I can tell it looks also in modules which are not included for given node. In my example Modules: class myuser {user {"myuser": homedir => /someplace } } class myfile { file {"myfile": owner => "myuser" }} node

Re: [Puppet Users] question about auto requiring resources

2011-03-10 Thread Patrick
On Mar 10, 2011, at 12:42 PM, Stefan Baryakov wrote: > The problem is that if you mention that user in some resource, lets > say file{owner}, the class managing that user gets included form the > auto-require even though it is not included by the external node > classifier. Auto-require won't in

[Puppet Users] question about auto requiring resources

2011-03-10 Thread Stefan Baryakov
Hi out there, Is there a good way to avoid auto-requiring of resources that are in modules, which are not included for a given node? Here is an example - there is a definition of a user, lets say a service service account, which is present on all nodes for given environment and some property of t

[Puppet Users] Re: Managing directories recursively and adjust subdirectories permissions?

2011-03-10 Thread Maciej Skrzetuski
I would like to add that I have no errors from puppetd when running it in test mode, so that's strange. -- 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

[Puppet Users] Managing directories recursively and adjust subdirectories permissions?

2011-03-10 Thread Maciej Skrzetuski
Hello everybody, I have a strange problem. I manage a directory recursively like this (this part works). class showcase { file { "/opt/files": ensure => directory, owner => "user", group => "group", recurse => true, source => "puppet:///showcase" } } Now, if I want to set

[Puppet Users] filebucket config

2011-03-10 Thread neubyr
Hi, I have following config to replace files in a directory and back them up in filebucket. However, the files are getting backed up in filebucket on the client (/var/lib/puppet/clientbucket) itself. Am I missing anything here? Following is the config that I have: # ### cat /etc/puppet/manifest

[Puppet Users] Re: Exporting dependencies?

2011-03-10 Thread jcbollinger
On Mar 9, 6:20 am, Nick Moffitt wrote: > I recently found myself needing to perform a similar task to that > desired by Udo Waechter in: > > https://groups.google.com/group/puppet-users/browse_thread/thread/ea6... > > Namely, I would like a file to exist on machine A iff any or all of > machines

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
On 10-03-11 14:39, Martijn Grendelman wrote: > but the error remains. > > Pointers still very much appreciated!! I am very sorry for the noise. The error was the result of a patch that I recently added to my Puppetmaster, to allow Nagios_* parameters to be specified as arrays. Stupid. Best regar

[Puppet Users] Re: design question: Where to manage Users?

2011-03-10 Thread jcbollinger
On Mar 9, 4:05 pm, Liberty Young wrote: > Hi! > > My company has been successfully using puppet 2.6 for a month now, and > we are now exploring the possibility of managing users and groups > through puppet (vs LDAP). If we were to implement managing > users/groups for various services (e.g. 'www'

Re: [Puppet Users] nodes: internal, external, or LDAP?

2011-03-10 Thread Rob McBroom
On Mar 7, 2011, at 7:06 PM, LarsP wrote: > I was told recently at a Puppet workshop that using LDAP for managing node > information is not advised. Anybody care to comment? What is it about using > LDAP that's not a good idea? I’ve never heard this. I hope it’s not true because you’ll have to p

Re: [Puppet Users] Re: retrieve output files on clients

2011-03-10 Thread Felix Frank
On 03/10/2011 02:31 PM, Vincent wrote: > I execute one script hourly, this script create an output file that I > need to push on another server > As puppet can pass our fw I would like to use it as file transfert. > > Vincent Hmm...I don't think this is a good idea. Puppet isn't really designed f

[Puppet Users] Puppet Certificate verify failed

2011-03-10 Thread Hugo Deprez
Hello, I am trying to configure a new puppet server on Debian Squeeze, so the server version will be 2.6.2-4. I am trying to configure a client running Lenny, the puppet version is 0.25.4-2 I declare the new client with the command : #puppetd --server puppet.domain.tld --waitforcert 60 --test o

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
Hi, >>> Yesterday I implemented a module for managing Nagios configurations. It >>> has turned out to be quite a complex beast, but in my test environment, it >>> seemed to do everything it should. >>> >>> Now, in production, managing some 30 hosts, I get the following on the >>> node that is both

[Puppet Users] Re: retrieve output files on clients

2011-03-10 Thread Vincent
I execute one script hourly, this script create an output file that I need to push on another server As puppet can pass our fw I would like to use it as file transfert. Vincent On Mar 10, 2:26 pm, Felix Frank wrote: > Please elaborate further. How much output are we talking about and what > is

Re: [Puppet Users] Re: retrieve output files on clients

2011-03-10 Thread Felix Frank
Please elaborate further. How much output are we talking about and what is to happen with it? The canonical way to go about this is deploying custom facts on your clients, which the puppetmaster uses then. Regards, Felix On 03/10/2011 01:49 PM, Vincent wrote: > So I need to retrieve the output o

[Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.6 available!

2011-03-10 Thread Mark Phillips
On Mar 10, 8:26 am, Mark Phillips wrote: > > http://buildfarm.opencsw.org/experimental.html#markp Version up now contains latest pkgutil provider from https://github.com/gw42/puppet/blob/tickets%2Fmaster%2F4258-dev/lib/puppet/provider/package/pkgutil.rb and this bug fix from Dom Cleal https://pro

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
Hi, On 10-03-11 13:46, Martijn Grendelman wrote: >> Yesterday I implemented a module for managing Nagios configurations. It >> has turned out to be quite a complex beast, but in my test environment, it >> seemed to do everything it should. >> >> Now, in production, managing some 30 hosts, I get th

[Puppet Users] Re: retrieve output files on clients

2011-03-10 Thread Vincent
So I need to retrieve the output of somes scripts running on many clients Must I configure a puppet server on each nodes ? On Mar 10, 12:37 pm, vincent wrote: > What is the best way to retrieve files on clients ? > > Vincent -- You received this message because you are subscribed to the Goog

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
On 10-03-11 12:49, Martijn Grendelman wrote: > Hi, > > Yesterday I implemented a module for managing Nagios configurations. It > has turned out to be quite a complex beast, but in my test environment, it > seemed to do everything it should. > > Now, in production, managing some 30 hosts, I get th

[Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
Hi, Yesterday I implemented a module for managing Nagios configurations. It has turned out to be quite a complex beast, but in my test environment, it seemed to do everything it should. Now, in production, managing some 30 hosts, I get the following on the node that is both Puppetmaster and Nagio

[Puppet Users] retrieve output files on clients

2011-03-10 Thread vincent
What is the best way to retrieve files on clients ? Vincent -- 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+unsubscr

[Puppet Users] Re: Puppet Dashboard - Blank "Run Time" Chart in Node Details

2011-03-10 Thread Luke Bigum
There was an email thread mentioning this a few months ago, but I can't find it now. Did find this open bug report: http://projects.puppetlabs.com/issues/4514 2.6.x clients can upload reports to Dashboard 1.0.4, but it's not fully functioning. If you've still got some old 2.5 clients around it pr

[Puppet Users] Re: Puppet Dashboard - Blank "Run Time" Chart in Node Details

2011-03-10 Thread Robert Pumphrey
C On Mar 9, 3:59 pm, Luke Bigum wrote: > Unfortunately I don't have a Dashboard (or Puppet!) on hand at the > moment, but are you all using Puppet version 2.6.x? The format of the > reports has changed and some functionality isn't compatible such as a > the graph images of a node's Puppet running

Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.6 available!

2011-03-10 Thread Mark Phillips
On 10 Mar 2011, at 04:24, Todd Zullinger wrote: > Jacob Helwig wrote: >> This maintenance release fixes two issues with Puppet 2.6.5. > > For those using Fedora or RHEL/CentOS, I've updated the yum repos at: > >http://tmz.fedorapeople.org/repo/puppet/ I'll pop a test 2.6.6 for OpenCSW up la