[Puppet Users] Re: Default Gateway facter problems

2010-04-20 Thread Scott Beardsley
> >         if distid.match(/RedHatEnterprise|CentOS|Fedora/) > > sidenote: you can use confine for such things. I'll look into confine. Incidentally this is my first fact and I stole most of it from the puppet docs. > right, that might be related to a known bug. but that shouldn't affect puppet

Re: [Puppet Users] Re: Default Gateway facter problems

2010-04-20 Thread Daniel Pittman
donavan writes: > On Apr 19, 10:09 pm, Daniel Pittman wrote: >> So, a simple "gateway" fact is essentially meaningless for our network; this >> is probably true of at-least-some machines on at-least-some large networks. >> >> (So, while your fact is meaningful, it isn't a generic "gateway" fact :

Re: [Puppet Users] Modelling different aspects of a datacenter

2010-04-20 Thread Jason Rojas
Most people will use a "node" classification tool. In my specific case I use a combination of a node classifier, and standardized DNS naming conventions. For hardware related items, you have custom facts, dmiedecode etc etc. Really you will always hit the "one-off" bug of a system when it c

[Puppet Users] Modelling different aspects of a datacenter

2010-04-20 Thread linuxdatacenter
Hi, Just a survey how you guys model different aspects of your systems. I mean: in my world every node is determined by 3 factors: -> role in the datacenter (like www-server, workernode, db-server, etc.) -> website membership (I run several different websites with different webserver configs, db,

[Puppet Users] Re: filebucket cleanup?

2010-04-20 Thread Ken
I can't see one. 'tmpwatch' is probably your friend (or the tidy puppet resource). However ... It might be more suitable to delete on a policy. ie. delete everything but the last backup ... Not sure how important that might be to most people. I'd say at least a timed cleanup is a worthy feature r

[Puppet Users] Re: getting a list of rules out of iptables

2010-04-20 Thread Ken
> But I don't see that exec being called. Nor do I see any attempts at > calling it. (I've even been testing with the command set to "false") > Anyone know what's up with this, or have another suggestion for > generating such a list? Actually - this smells like a scope thing. What scope did you d

Re: [Puppet Users] Re: puppetrun and ldap question

2010-04-20 Thread Jamaludin Ahmad
On Tue, Apr 20, 2010 at 9:48 PM, Andrew Heagle wrote: > > When you are using LDAP and puppetrun, you do not do puppetrun --host > ..., instead you use puppetrun --class ...  This > will find all the hosts in your LDAP directory with "puppetClass: > myclass", and contact all those. This won't work

Re: [Puppet Users] Re: puppetrun and ldap question

2010-04-20 Thread Jamaludin Ahmad
On Wed, Apr 21, 2010 at 1:39 AM, Jamaludin Ahmad wrote: > On Tue, Apr 20, 2010 at 9:48 PM, Andrew Heagle wrote: >> >> When you are using LDAP and puppetrun, you do not do puppetrun --host >> ..., instead you use puppetrun --class ...  This >> will find all the hosts in your LDAP directory with "

[Puppet Users] filebucket cleanup?

2010-04-20 Thread Steven L. Seed
Is there a mechanism in puppet to clean up data in the filebucket after a period of time or do I need to create my own cleanup cron? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups

[Puppet Users] Cassandra Module

2010-04-20 Thread Paul Lathrop
Hey Guys, I am also happy to announce the availability of our Cassandra module: http://github.com/plathrop/libpuppet-cassandra This is a pretty simple module, and won't get you 100% of the way to building a Cassandra cluster, but it should take care of the low-level stuff so you can focus on buil

Re: [Puppet Users] Logging on Puppetmaster 0.25.4/Passenger-2.2.8

2010-04-20 Thread Eric Sorenson
If you're using passenger, you won't get a masterhttp.log; that's from webrick. I've noticed the logging to a '--logdest=file' is buffered with a pretty giant buffer, which can be extremely annoying/confusing because it looks like nothing is happening. You can either set 'autoflush=true' (but

[Puppet Users] Re: Grouping user and ssh_authorized_key in one virtual class.

2010-04-20 Thread Ken
+1 on solution Marc. > The nuisance with this solution is that you cannot have more than 1 ssh > key ... my::user {"...": ... key => "...", key2 => "...", key3 => "...", key4 => "...", ... } Yuck :-). ken. -- You received this message because you are subscribed to the Google Group

[Puppet Users] Re: Managing Users in Groups

2010-04-20 Thread Ken
Perhaps something like? @user {"bob": ensure => present } User<| title == bob |> { gid => "users" } A mention of the <| foo |> syntax is here: http://projects.puppetlabs.com/projects/puppet/wiki/Virtual_Resources The doc doesn't show the {} parameter block ... I believe this was mentioned in er

[Puppet Users] Re: Supervisor Module

2010-04-20 Thread Paul Lathrop
My Debian packager just corrected me; we didn't package supervisor, we just back-ported it for Lenny. On Tue, Apr 20, 2010 at 3:41 PM, Paul Lathrop wrote: > Hey all, > > I am happy to announce the release of the supervisor module > (http://github.com/plathrop/libpuppet-supervisor); used to config

[Puppet Users] Supervisor Module

2010-04-20 Thread Paul Lathrop
Hey all, I am happy to announce the release of the supervisor module (http://github.com/plathrop/libpuppet-supervisor); used to configure the excellent daemon control tool supervisor (http://supervisord.org/). Digg has packaged supervisor for Debian and made the package available at http://mirrors

[Puppet Users] Re: getting a list of rules out of iptables

2010-04-20 Thread Ken
You shouldn't need the 'before' in the 'iptables' resource. Not quite sure why its not executing, but how about this ... http://github.com/kbarber/puppet-iptables Its a mod to the camptocamp code. It persists iptables with iptables- save without requiring an external exec notify. It also stores t

Re: [Puppet Users] Grouping user and ssh_authorized_key in one virtual class.

2010-04-20 Thread Marc Fournier
> The way I did it was to realize the user, then realize the sshkey and > then realize something else. I just want a nice package where I can > say: > > class user::ops inherits user::virtual { > realize( > User["bill"], > User["richard"], > ) > }

[Puppet Users] Re: Default Gateway facter problems

2010-04-20 Thread donavan
On Apr 19, 10:09 pm, Daniel Pittman wrote: > So, a simple "gateway" fact is essentially meaningless for our network; this > is probably true of at-least-some machines on at-least-some large networks. > > (So, while your fact is meaningful, it isn't a generic "gateway" fact :) > This can return mu

[Puppet Users] Grouping user and ssh_authorized_key in one virtual class.

2010-04-20 Thread Dax
Hi all Word of warning. Puppet newbie. I have tried something similar to this for trying out user management. http://serverfault.com/questions/58790/how-can-i-have-puppet-deploy-ssh-keys-for-virtual-users This works, but not the way I really wanted. I would like to realize a user and the have a t

[Puppet Users] Managing Users in Groups

2010-04-20 Thread Lawrence W
I want to be able to add users to machines and have those users add to the correct groups for each machine type. I want to have a single file with the users and their key and then call that file and pass in the correct primary group and any other group membership of that particular server. What I

[Puppet Users] Re: puppetrun and ldap question

2010-04-20 Thread Andrew Heagle
On Apr 19, 8:19 am, Jamaludin Ahmad wrote: > Hi All, > > I'm new to puppet, I just recently setup it on my servers, using puppet > 0.25.4 with ldap external node and mongrel+nginx as frontend. Pretty much > happy about it, except by the fact that I can't get puppetrun to work as > expected. > >

[Puppet Users] Re: Evaluate the value of a variable's value

2010-04-20 Thread Andrew Heagle
On Apr 19, 8:05 am, Dan Carley wrote: > > It's possible with inline_template(): > > dan.car...@jim ~ $ puppet > $a = 1 > $x = "a" > notice("Bad:", inline_template("<%= x %>")) > notice("Good:", inline_template("<%= $x %>")) > ^D > notice: Scope(Class[main]): Bad: a > notice: Scope(Class[main]): Go

[Puppet Users] dashboard: rake install fails (Solaris10)

2010-04-20 Thread Lutz Bergner
Hi all, I am trying to install dashboard 1.0.0rc1. Independantly if have manually installed authlogic - gem or not it is throwing the following trace. The problem is the same when I am resetting (rake db:reset) or dropping the database. any ideas? best regards Lutz bash-3.00# rake install (in

Re: [Puppet Users] ad hoc tasks with puppet

2010-04-20 Thread Thomas Bellman
Sukh Khehra wrote: I have a need to audit user accounts on all of my puppet clients. Essentially, I need to collect the password and shadow file from all of my clients to one central location and analyze them. How would someone do this using puppet. Is there any mechanism to ship files to the

[Puppet Users] Re: Puppetmaster with storeconfig crashes on Solaris10

2010-04-20 Thread Lutz Bergner
...found it by myself. Anyway it may be helpful to others. A 64 Bit mysql-server accessed by 32bit libmysqlclient.so did not work in my case at least when both reside on the same machine. Have build now mysql 5.1 latest stable as a 32bit executable and all is doing fine . By the way - the shipped o

Re: [Puppet Users] Re: puppet ignoring facts?

2010-04-20 Thread Ohad Levy
its http://projects.reductivelabs.com/issues/3008 and fixed in http://github.com/reductivelabs/facter/commit/356cf15a72027773d38db5ef74e6861345e32b56 Ohad On Tue, Apr 20, 2010 at 3:38 PM, Peter Meier wrote: > You saved my day. Actually there was a lot of white space :-) Now my >> module looks l

Re: [Puppet Users] Re: puppet ignoring facts?

2010-04-20 Thread Peter Meier
You saved my day. Actually there was a lot of white space :-) Now my module looks like: imho this shouldn't be, can you file a bug? cheers pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@

[Puppet Users] Re: puppet ignoring facts?

2010-04-20 Thread Rene
Hi You saved my day. Actually there was a lot of white space :-) Now my module looks like: ... if ($manufacturer == 'Xen') or ($manufacturer == "Sun Microsystems "){ ... Thanks a lot for the great Tip! BR, Rene On Apr 20, 8:54 am, Ohad Levy wrote: > I've seen cases where there were white space