Re: [Puppet Users] Re: Passenger complains /etc/puppet/ssl doesn't exist.

2011-04-04 Thread Douglas Garstang
On Mon, Apr 4, 2011 at 10:25 PM, Martin Alfke wrote: > On 04/05/2011 07:17 AM, Douglas Garstang wrote: > > Actually... this may be the cause... my puppet.conf is in a non standard > > location, and when running puppetmaster, I'm setting > > --confdir=/etc/puppet/common in /etc/init.d/puppetserver

Re: [Puppet Users] Re: Passenger complains /etc/puppet/ssl doesn't exist.

2011-04-04 Thread Martin Alfke
On 04/05/2011 07:17 AM, Douglas Garstang wrote: > Actually... this may be the cause... my puppet.conf is in a non standard > location, and when running puppetmaster, I'm setting > --confdir=/etc/puppet/common in /etc/init.d/puppetserver. How can I set > this for passenger? put this in your config.

[Puppet Users] Re: Passenger complains /etc/puppet/ssl doesn't exist.

2011-04-04 Thread Douglas Garstang
Actually... this may be the cause... my puppet.conf is in a non standard location, and when running puppetmaster, I'm setting --confdir=/etc/puppet/common in /etc/init.d/puppetserver. How can I set this for passenger? Doug. On Mon, Apr 4, 2011 at 10:00 PM, Douglas Garstang wrote: > All, > > I ju

[Puppet Users] Passenger complains /etc/puppet/ssl doesn't exist.

2011-04-04 Thread Douglas Garstang
All, I just tried to get Passenger up and running, based on on the docs at: http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger I am seeing this in my Apache error_log whenever a client tries to connect: Could not prepare for execution: Got 2 failure(s) while initializing: change from

Re: [Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-04 Thread John Warburton
On 4 April 2011 23:20, stefanero wrote: > Okey, > > thank you for this information, so augeas cannot handle this type of > requests. > I noted this a few years ago, and so did a simple line append. ( http://projects.puppetlabs.com/projects/1/wiki/Simple_Text_Patterns) You may want to file a fea

[Puppet Users] Catalog changes not picked up immediately

2011-04-04 Thread Giovanni Bordello
Hi there, when I do changes to my Puppet catalog files it takes some time between these changes are picked up by the clients, even in manual mode. That makes testing with "puppetd --test" quite hard because it can often be up to a couple of minutes for the changes be served out. Can I someho

[Puppet Users] duplicate entries in classes.txt

2011-04-04 Thread Corey Osman
I am not sure why I am getting duplicate entries in my classes.txt file under /var/lib/puppet. I am using puppet 2.6.4 version. I am also using foreman as my external node classifer. This is on the client: bash#more classes.txt ad2ldap base_services baseapps sudo tier3_keys settings ad2ld

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread Randall Hansen
On Apr 4, 2011, at 3:58 PM, FRLinux wrote: > Have 80 nodes reporting which is not much. Wiped out the whole DB when > upgraded to 1.0.4, Think it was back in the beginning of November so > it is same to assume that we've been logging since. Only 10 nodes were > added in the last month (March). So

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread FRLinux
On Mon, Apr 4, 2011 at 4:26 PM, Randall Hansen wrote: > We're aware of some performance problems in Dashboard and are keen to fix > them.  How much data do you have?  How many nodes?  How many unresponsive?   > What's your update interval?  At what point does it start to fall over? Hello! As Pa

Re: [Puppet Users] Re: RFC: Splitting up the file{} type functionality.

2011-04-04 Thread Andreas Rogge
Am 31.03.2011 16:56, schrieb jcbollinger: 3. Sockets, FIFOs, devices, whatnot [...] Indeed. And here, too, you might want to work in symlinks to these objects, especially if symlinks managed by the regular file type (2 above) indeed require their target to be a regular file.. Yes, of course.

Re: [Puppet Users] Re: ssh_authorized_keys - not adding keys ... (??)

2011-04-04 Thread Nick Steel
On Mon, Apr 4, 2011 at 1:54 AM, Felix Frank wrote: > > > On 04/02/2011 08:40 PM, Cody Robertson wrote: > > It looks like the `user` portion is overriding the original resource? I > > haven't checked if this would work but maybe you can do something along > > these lines: > > > >Ssh_author

Re: [Puppet Users] ssh_authorized_key and the .ssh directory

2011-04-04 Thread Jim Bala
Overrides like this work for me: User <| title == $title |> { password => '*LK*', shell => "/bin/false" } You could try: Ssh_authorized_key <| title == nagios |> { require => [ Group["nagios"], User["nagios"], ], } However, I showed this syntax to Jeff McCune and he said something to the

RE: [Puppet Users] Puppet on Redhat 6

2011-04-04 Thread Jennings, Jared L CTR USAF AFMC 46 SK/CCI
> > > > "/bin/echo OS: $operatingsystem" You are right, Stefan! I didn't pay attention at all to the command being executed. -- 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

Re: [Puppet Users] Puppet on Redhat 6

2011-04-04 Thread Stefan Schulte
On Mon, Apr 04, 2011 at 09:34:10AM -0500, Jennings, Jared L CTR USAF AFMC 46 SK/CCI wrote: > > > my motd module is like this: > > > > > > class motd { > > > > > > $ascii = generate('/bin/sh', '-c', "/bin/echo OS: > > > $operatingsystem ) > > > > > > > Not an answer to your problem, but is

[Puppet Users] Should @user with managehome also track the actual home directory?

2011-04-04 Thread Forrie
On my test system, I noticed that (with virtual users) if you remove / home/username, puppet doesn't realize there is a problem, as the resource doesn't track the home directory. When you userdel then it notices and creates everything as it should be. In a virtual user configuration, what's the b

[Puppet Users] ssh_authorized_key and the .ssh directory

2011-04-04 Thread Forrie
I've been working with a file of virtual users that I want to "realize" on certain hosts. For one of these, I need an authorized_keys file. After experimenting with the resource ssh_authorized_key, I thought I could create a dependency relationship like this: Ssh_authorized_key <| title ==

[Puppet Users] ANNOUNCE: Puppet Dashbard 1.1.0 Final!

2011-04-04 Thread Jacob Helwig
This release addresses a large number of issues and adds lots of new functionality, including: * Inventory Service Lookup - The node view page will now retrieve and display the node's facts from the inventory service. - There is a "Custom Query" page which will search the invento

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread Patrick
On Apr 4, 2011, at 8:26 AM, Randall Hansen wrote: > On Apr 4, 2011, at 4:03 AM, FRLinux wrote: > >> On Mon, Apr 4, 2011 at 11:53 AM, Patrick wrote: >>> Then the db:raw:optimize command will actually be able to shrink the DB. >>> Note, that attribute will cause all tables to be stored in separat

Re: [Puppet Users] Re: Merge folders

2011-04-04 Thread Marcus Downing
As I said, the "sourceselect => all" parameter is necessary to make puppet merge the listed sources rather than selecting one of them. I take your point that variables are a fragile way of specifying. I'll try refactoring it based on class parameters, but the list of sources isn't the same leng

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread Randall Hansen
On Apr 4, 2011, at 4:03 AM, FRLinux wrote: > On Mon, Apr 4, 2011 at 11:53 AM, Patrick wrote: >> Then the db:raw:optimize command will actually be able to shrink the DB. >> Note, that attribute will cause all tables to be stored in separate files. > > Nice one, thanks for all the replies, I have

RE: [Puppet Users] Puppet on Redhat 6

2011-04-04 Thread Jennings, Jared L CTR USAF AFMC 46 SK/CCI
> > my motd module is like this: > > > > class motd { > > > > $ascii = generate('/bin/sh', '-c', "/bin/echo OS: > > $operatingsystem ) > > > > Not an answer to your problem, but isnt this the same as > > $ascii = "OS: ${operatingsystem}" > > -Stefan I believe the function is evaluat

Re: [Puppet Users] Re: Merge folders

2011-04-04 Thread Felix Frank
Hi, On 04/04/2011 12:14 PM, Marcus Downing wrote: > Correction: this only works if the place that uses the variable (the > 'file' resource) comes after the place where the variable is modified. > In our case that meant the child looks like this: > > class child { > $sources += [ '/pat

[Puppet Users] puppet fails to retrieve catalog

2011-04-04 Thread Dennis Jacobfeuerborn
Hi, I've got a problem where clients apparently randomly lose the ability to retrieve catalogs. This is what I end up seeing in the log: puppet-agent[26510]: Starting Puppet client version 2.6.6 puppet-agent[26510]: Could not retrieve catalog from remote server: puppet-agent[26510]: Using cached

[Puppet Users] Re: Puppet on Redhat 6

2011-04-04 Thread JohnW
OK, the problem just got a little stranger. my previous puppetruns were done on RHEL6 installed on a kvm, with a kvm host installed with SLES11sp1 I now installed a physical host with RHEL6, using the same resources, and on that system the same puppetruns run without error. I tried both aforemen

[Puppet Users] Re: if statement: 'true' from left operand of 'in' expression is not a string

2011-04-04 Thread jcbollinger
On Apr 3, 8:29 pm, Ben Hughes wrote: > On Fri, Apr 01, 2011 at 11:19:16AM +0200, Jan wrote: > > Any ideas? What am I missing? > > If you quote the true/falses, it works. > > In the style guide, they're being used as variables for setting options of > a type: hasstatus => $trueorfalsevar. > > How

[Puppet Users] Re: Nodes graphs

2011-04-04 Thread jcbollinger
On Apr 3, 12:10 pm, Jean Baptiste FAVRE wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, > Working further with puppet, I need to be able to graph both nodes and > class dependencies to be able to diagnose issues and/or redundancies. > > Currently, activating graph allows me t

[Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-04 Thread stefanero
Okey, thank you for this information, so augeas cannot handle this type of requests. cu stefanero On 1 Apr., 17:26, Adam Heinz wrote: > Small copy/paste error: > > > augtool> print /files/etc/group/foo > > Saved 1 file(s) > > Was actually: > > augtool> save > Saved 1 file(s) -- You received t

[Puppet Users] Re: Puppet on Redhat 6

2011-04-04 Thread jcbollinger
On Apr 4, 3:45 am, JohnW wrote: > info: Applying configuration version '1301906526' > debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw > yaml; using pson > debug: /File[/etc/issue.net]/content: Executing 'diff -u /etc/ > issue.net /tmp/puppet-file20110404-27227-u2uokh-0' > /

[Puppet Users] Re: Managing directories, recursively?

2011-04-04 Thread jcbollinger
On Apr 1, 9:17 am, Arnau Bria wrote: > Apart from that, didn't know about > file {  [ "/usr/local/nagios", "/usr/local/nagios/libexec" ]: > > which automagically creates file dependency. so I declared it in two > diff files. Clarification: that syntax introduces one property list that applies t

Re: [Puppet Users] Puppet nagios integration problem

2011-04-04 Thread Jonathan Gazeley
On 04/04/2011 12:09 PM, FRLinux wrote: On Mon, Apr 4, 2011 at 11:37 AM, Jonathan Gazeley wrote: Can anyone offer any pointers? Go to the one of the clients, then run: puppetd -vt and take a look at the output? Usually a good pointer :) Cheers, Steph Thanks for your reply. Running with -vt

Re: [Puppet Users] Puppet nagios integration problem

2011-04-04 Thread FRLinux
On Mon, Apr 4, 2011 at 11:37 AM, Jonathan Gazeley wrote: > Can anyone offer any pointers? Go to the one of the clients, then run: puppetd -vt and take a look at the output? Usually a good pointer :) Cheers, Steph -- You received this message because you are subscribed to the Google Groups "Pu

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread FRLinux
On Mon, Apr 4, 2011 at 11:53 AM, Patrick wrote: > Then the db:raw:optimize command will actually be able to shrink the DB. >  Note, that attribute will cause all tables to be stored in separate files. Nice one, thanks for all the replies, I have a responsive dashboard once again :) Steph -- Yo

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread Patrick
On Apr 4, 2011, at 3:33 AM, FRLinux wrote: > Hello, > > I have another quick one about puppet dashboard. We are using the > Debian one for Squeeze (1.0.4) and as the database has significantly > grown, if/when we click on a list of unresponsive nodes to check them, > the web interface sits there

Re: [Puppet Users] puppet-dashboard

2011-04-04 Thread Arnau Bria
On Mon, 4 Apr 2011 11:33:54 +0100 FRLinux FRLinux wrote: > Hello, Hi, > I have another quick one about puppet dashboard. We are using the > Debian one for Squeeze (1.0.4) and as the database has significantly > grown, if/when we click on a list of unresponsive nodes to check them, > the web inte

[Puppet Users] Puppet nagios integration problem

2011-04-04 Thread Jonathan Gazeley
Hi all, I'm working on setting up Puppet to write out my Nagios configs. A few weeks back I inserted a few dummy Nagios checks into my Puppet config, and the Nagios configs were written out properly. I've now added loads of Nagios host and service checks like this: @@nagios_service { "check_

[Puppet Users] puppet-dashboard

2011-04-04 Thread FRLinux
Hello, I have another quick one about puppet dashboard. We are using the Debian one for Squeeze (1.0.4) and as the database has significantly grown, if/when we click on a list of unresponsive nodes to check them, the web interface sits there doing nothing then the puppetmaster process starts timin

Re: [Puppet Users] puppet client certs & dns

2011-04-04 Thread FRLinux
On Mon, Apr 4, 2011 at 9:50 AM, Felix Frank wrote: > certification can be painful at times, but I don't see the real problem > you had with requesting a signature on a badly named cert? > > You can always just revoke it on the master and have your client issue a > new CSR. Hello, Thanks for your

[Puppet Users] Re: Merge folders

2011-04-04 Thread Marcus Downing
Correction: this only works if the place that uses the variable (the 'file' resource) comes after the place where the variable is modified. In our case that meant the child looks like this: class child { $sources += [ '/path/to/second' ] include parent } -- You received this message be

[Puppet Users] Re: Merge folders

2011-04-04 Thread Marcus Downing
Ah, it works if the variable is in the outer scope: $sources = [ '/path/to/first' ] class parent { file { '...': ensure => directory, source => $sources, sourceselect => all } } class child { $sources += [ '/path/to/second' ] } -- You received this message b

[Puppet Users] Re: Merge folders

2011-04-04 Thread Marcus Downing
I'm trying to do this using an array variable and the sourceselect parameter. class parent { $sources = [ '/path/to/first' ] file { '...': ensure => directory, source => $sources, sourceselect => all } } class child { $sources += [ '/path/to/second' ] }

[Puppet Users] Re: Use puppet to preconfigure gnome gvfs shares

2011-04-04 Thread spidernik84
On Apr 2, 8:58 pm, Christian Kauhaus wrote: > Am 01.04.2011 11:11, schrieb spidernik84: > I don't think that Puppet is designed to support this sort of interactive > behavior. I'd rather suggest to deploy a custom shell script via Puppet that > performs the outlined actions on a user's first login

Re: [Puppet Users] Re: ssh_authorized_keys - not adding keys ... (??)

2011-04-04 Thread Felix Frank
On 04/02/2011 08:40 PM, Cody Robertson wrote: > It looks like the `user` portion is overriding the original resource? I > haven't checked if this would work but maybe you can do something along > these lines: > >Ssh_authorized_key <| title == "test.user.key" |>{ > user =>

Re: [Puppet Users] puppet client certs & dns

2011-04-04 Thread Felix Frank
On 04/01/2011 08:23 PM, FRLinux wrote: > Hello, > > First off, forgive me if that has been discussed before. > > Has there been any thought given to using dns records queried from the > IP of a host where puppet is installed? Reason I'm asking is we had an > issue in which our fqdn got screwed up

[Puppet Users] Re: Puppet on Redhat 6

2011-04-04 Thread JohnW
Sorry for the somewhat late response. No is was not a direct cut and paste, i left out some personal information and accidentally cut the ending double quote as well. I sent this log as an example. I get the error on any file I want to replace/keep is a certain state. Like a simple module to keep

[Puppet Users] Merge folders

2011-04-04 Thread Marcus Downing
We'd like to make the contents of a folder contain all the files from two different folders on the server. Which folder to merge will be different for different client machines. How can I specify that in a file rule? -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Re: Nodes graphs

2011-04-04 Thread Jean Baptiste Favre
Hello, Le 04/04/11 05:26, donavan a écrit : On Apr 3, 10:10 am, Jean Baptiste FAVRE wrote: But I would like to highlight nodes dependenxies as well. Is there any way to get a global "node-centric" graph ? If yes, how: server-side, client-side, both ? You might want to try this on puppet-dev.