Re: [Puppet Users] extlookup == bad?

2011-04-11 Thread Dan Bode
On Mon, Apr 11, 2011 at 9:25 PM, John Warburton wrote: > OK, I'll bite > > In the newly published Style Guide ( > http://docs.puppetlabs.com/guides/style_guide.html), right at the end it > says > > Modules should avoid the use of extlookup() in favor of ENCs or other > alternatives > For clar

[Puppet Users] extlookup == bad?

2011-04-11 Thread John Warburton
OK, I'll bite In the newly published Style Guide ( http://docs.puppetlabs.com/guides/style_guide.html), right at the end it says Modules should avoid the use of extlookup() in favor of ENCs or other alternatives But there is no reason as to why. We have a rule of thumb where we use the ENC

[Puppet Users] augtool/augeas -- clearly missing something...

2011-04-11 Thread russell.fulton
Hi I've just started trying to use augeas to manage /etc/network/ interfaces on Ubuntu I found some stuff in the archive that seems to match what I need but I can't make anything work. I have augeas { "network_interface": context => "/etc/network/interfaces", changes => [

[Puppet Users] Re: [Puppet-dev] Re: ANNOUNCE: Puppet 2.6.7 final!

2011-04-11 Thread William Van Hevelingen
Puppet 2.6.7 is now in portage :) http://gentoo-portage.com/app-admin/puppet http://bugs.gentoo.org/show_bug.cgi?id=362801 Please test the ebuild, I didn't have as much time as I wanted to test it. -- William Van Hevelingen wva...@gmail.com https:

Re: [Puppet Users] any better way to manage access control via /etc/passwd

2011-04-11 Thread Rich Rauenzahn
On Mon, Apr 11, 2011 at 7:30 PM, hai wu wrote: > We need to manage /etc/passwd where there would be one line at the very end > of the file to restrict access to all users not explictly allowed: > > +::/sbin/nologin > > If using delete_lines and append_if_no_such_lines (similar to this one at >

[Puppet Users] any better way to manage access control via /etc/passwd

2011-04-11 Thread hai wu
We need to manage /etc/passwd where there would be one line at the very end of the file to restrict access to all users not explictly allowed: +::/sbin/nologin If using delete_lines and append_if_no_such_lines (similar to this one at http://www.debian-administration.org/articles/528) to manag

[Puppet Users] Re: How to setup database for Inventory Service

2011-04-11 Thread Luke Baker
Hey there, I used the storeconfigs database. Here is a condensed version of the storeconfigs setup, http://linux-collective.blogspot.com/2011/04/puppet-storeconfigs.html. You shouldn't need to migrate anything, the data will be populated when the clients check in. On Apr 11, 10:07 am, Alessandr

Re: [Puppet Users] Re: Problem with pushing ssh_authorized_keys

2011-04-11 Thread Scott Smith
Egrep -v 'pubkey' ? On Apr 11, 2011 2:22 PM, "Forrie" wrote: > Thanks, this was the problem. Sounds like a bug to me.. ? > > How can I go through my systems and remove all the 10's of redundant > SSH-DSS keys that have the comment in them? I dread doing that by > hand :-) > > > Thanks again. > > >

Re: [Puppet Users] ANNOUNCE: Puppet Dashboard 1.1.0rc3

2011-04-11 Thread Matt Robinson
I'm not sure why this would be without more info to reproduce the problem. I couldn't reproduce it anyway. I'd recommend opening a ticket that includes at least a sample of the messed up error logs in addition to the info you provided. On Mon, Apr 11, 2011 at 7:06 AM, Thomas Bendler wrote: > Hi

Re: [Puppet Users] Re: Problem with pushing ssh_authorized_keys

2011-04-11 Thread Patrick
On Apr 11, 2011, at 2:22 PM, Forrie wrote: > Thanks, this was the problem. Sounds like a bug to me.. ? > > How can I go through my systems and remove all the 10's of redundant > SSH-DSS keys that have the comment in them? I dread doing that by > hand :-) Well, you can push out an empty file,

[Puppet Users] Re: ActiveRecord/Puppet error? Missing mysql2 gem.

2011-04-11 Thread Josh
Cody, Thanks for the help. Installing the "ruby-mysql" RPM from EPEL seemed to fix this issue. Thanks! Josh On Apr 11, 5:32 pm, Cody Robertson wrote: > Did you manually install the gem? I believe Todd's RPMS are built to work > with EPEL so you might want to look for the mysql-ruby RPM and se

[Puppet Users] Re: ActiveRecord/Puppet error? Missing mysql2 gem.

2011-04-11 Thread Cody Robertson
Did you manually install the gem? I believe Todd's RPMS are built to work with EPEL so you might want to look for the mysql-ruby RPM and see if that works. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to pu

[Puppet Users] Re: Problem with pushing ssh_authorized_keys

2011-04-11 Thread Forrie
Thanks, this was the problem. Sounds like a bug to me.. ? How can I go through my systems and remove all the 10's of redundant SSH-DSS keys that have the comment in them? I dread doing that by hand :-) Thanks again. On Apr 11, 5:12 pm, Patrick wrote: > On Apr 11, 2011, at 1:40 PM, Forrie wr

Re: [Puppet Users] Problem with pushing ssh_authorized_keys

2011-04-11 Thread Stefan Schulte
On Mon, Apr 11, 2011 at 01:40:42PM -0700, Forrie wrote: > I had to write up a quick *.pp to push out SSH keys for our nagios > user, while I work on a better solution for managing these. To my > surprise, I found multiples (100 or more?) of the same key in the > authorized_keys file, which is def

Re: [Puppet Users] Problem with pushing ssh_authorized_keys

2011-04-11 Thread Patrick
On Apr 11, 2011, at 1:40 PM, Forrie wrote: >ssh_authorized_key { "nagios": >ensure => present, >key => "[snip]== nagios@host", >user => "nagios", >type => "ssh-dss", ># require => User["nagios"], >tag => "system", >}

[Puppet Users] Re: err: Could not retrieve configuration: Could not find hostname

2011-04-11 Thread Saurval
O.K. I think I have this working. With no node defined at all, puppetd refused to run on any node. It would check in with Puppetmaster, correctly negotiate SSL, but then not find a node definition it just quit with the error message mentioned above. So right now I have a default node defined,

[Puppet Users] Problem with pushing ssh_authorized_keys

2011-04-11 Thread Forrie
I had to write up a quick *.pp to push out SSH keys for our nagios user, while I work on a better solution for managing these. To my surprise, I found multiples (100 or more?) of the same key in the authorized_keys file, which is definitely wrong. I'm including the simple code below -- can some

[Puppet Users] ActiveRecord/Puppet error? Missing mysql2 gem.

2011-04-11 Thread Josh
Hi, Building a new 2.7+storeconfigs+passenger puppetmaster and running into a problem: $ puppetd --server --verbose --waitforcert 60 -- environment=blah --test notice: Ignoring --listen on onetime run err: Could not retrieve catalog from remote server: Error 400 on SERVER: !!! Missing the mysql2

Re: [Puppet Users] Re: Mutliple custom facts not showing in facter

2011-04-11 Thread Cody Robertson
On 04/11/2011 05:03 AM, Ohad Levy wrote: git bisect is a great way to figure out which commit broke it. Ohad On Mon, Apr 11, 2011 at 9:45 AM, Cody Robertson > wrote: I'll test it on more versions tomorrow to see if I can pinpoint exactly where the change happ

Re: [Puppet Users] Re: Error sending reports to dashboard

2011-04-11 Thread Mohamed Lrhazi
I did not find any reference I just added a second apache virtual server to do http on port 80. On Mon, Apr 11, 2011 at 12:14 PM, Patrick wrote: > Bump.  Anyone know the answer?  Can puppet use https to post reports?  I'm > having trouble sending reports using https too, although I haven't

Re: [Puppet Users] Re: Error sending reports to dashboard

2011-04-11 Thread Patrick
Bump. Anyone know the answer? Can puppet use https to post reports? I'm having trouble sending reports using https too, although I haven't yet found anything useful in the logs. On Mar 21, 2011, at 9:41 PM, Mohamed Lrhazi wrote: > I enabled debug log level in apache virtual and it seems like

[Puppet Users] Re: Getting client information instantly

2011-04-11 Thread jcbollinger
On Apr 10, 5:12 pm, John Chris Richards wrote: > Hi all > > I wanna take a list of running services on the client instantly. Can I > do this with puppet? Not really, no. Puppet does not query client nodes, neither on a schedule nor on demand, and it does not track information about resources (

[Puppet Users] Re: puppet dashboard performance issue

2011-04-11 Thread Vincent
Thanks I have make the rake RAILS_ENV=production db:raw:optimize and in the my.cnf query_cache_size = 2000 Its really better Vincent On 11 avr, 14:26, Mohamed Lrhazi wrote: > There's some rake tasks, and other things,  suggested > here:https://github.com/puppetlabs/puppet-dashboard > > >

Re: [Puppet Users] ANNOUNCE: Puppet Dashboard 1.1.0rc3

2011-04-11 Thread Thomas Bendler
Hi Matt, 2011/4/8 Matt Robinson > [...] > We definitely appreciate any help testing RC's and releases, so I look > forward to your feedback. > [...] > Ok, here it is (CentOS 5.6 system). I've changed: su -s /bin/sh -c "${DASHBOARD_RUBY} ${DASHBOARD_HOME}/script/server -e ${DASHBOARD_ENVIRONMEN

[Puppet Users] Mysql user removal problems

2011-04-11 Thread Ashley Penney
Hi, I'm using duritong's puppet module and I've run into a bizarre issue after migrating to it that I cannot resolve and I thought I'd take it to the list in the hope someone can help. The error I get from a run is: info: Retrieving plugin info: Loading facts in dell info: Loading facts in apach

Re: [Puppet Users] Re: Can I read a file from a template?

2011-04-11 Thread Mohamed Lrhazi
Great thanks a lot. On Mon, Apr 11, 2011 at 4:54 AM, Allan Clark wrote: >> Hi Allan, would mind sharing a piece of manifest/template showing how >> I can use that statement? >> > > The below code will look for the files mentioned in $filelist inside > the files directory of the module "some_modul

Re: [Puppet Users] puppet dashboard performance issue

2011-04-11 Thread Mohamed Lrhazi
There's some rake tasks, and other things, suggested here: https://github.com/puppetlabs/puppet-dashboard On Mon, Apr 11, 2011 at 5:29 AM, Vincent wrote: > Hello, > > since the last upgrade to V1.1.0 > The dashboard is very slow > > I notice this slow queries in the log : > >  Node Load (14178.9

[Puppet Users] puppet dashboard performance issue

2011-04-11 Thread Vincent
Hello, since the last upgrade to V1.1.0 The dashboard is very slow I notice this slow queries in the log : Node Load (14178.9ms) SELECT `nodes`.* FROM `nodes` INNER JOIN `reports` ON reports.node_id = nodes.id WHERE ((reports.kind = 'apply' AND reports.status != 'failed') AND (`nodes`.`hidde

Re: [Puppet Users] Re: Mutliple custom facts not showing in facter

2011-04-11 Thread Ohad Levy
git bisect is a great way to figure out which commit broke it. Ohad On Mon, Apr 11, 2011 at 9:45 AM, Cody Robertson wrote: > I'll test it on more versions tomorrow to see if I can pinpoint exactly > where the change happened: http://projects.puppetlabs.com/issues/7039 > > -- > You received thi

[Puppet Users] Re: Can I read a file from a template?

2011-04-11 Thread Allan Clark
> Hi Allan, would mind sharing a piece of manifest/template showing how > I can use that statement? > The below code will look for the files mentioned in $filelist inside the files directory of the module "some_module" and import the contents of the file in to the template. In my case each file co

Re: [Puppet Users] Certificate Issues.... again

2011-04-11 Thread Felix Frank
On 04/11/2011 12:20 AM, Douglas Garstang wrote: > I don't know what it is with puppet's certificates, but once again, they > are behaving strangely. > > Client is reporting: > debug: Using cached certificate for auth01.fre.livegamer.com > > /usr/lib/ruby/site_ruby

Re: [Puppet Users] Re: Node classifier not loading any defined classes

2011-04-11 Thread Felix Frank
On 04/10/2011 11:46 AM, John Warburton wrote: > On 8 April 2011 19:09, Felix Frank > wrote: > > > *Parts* of your modules. You can't have custom resource types or > custom > > functions per environment. And that sucks. > > You can't? Is t

Re: [Puppet Users] Re: troubleshooting storeconfig

2011-04-11 Thread Felix Frank
Hi, On 04/08/2011 10:20 PM, mizuki wrote: > I started looking into detail level inside the database, and run > puppetmasterd in debug as well... > Noticed the resources were exported from the individual hosts, but > didn't update the host (who suppsed to collect those resources) with the > exporte