Re: [Puppet Users] Default Gateway facter problems

2010-04-20 Thread Daniel Pittman
Scott Beardsley sc0ttbeards...@gmail.com writes: I was slightly surprised to see that there is no gateway fact. Er, this fact is mostly unhelpful: there is no gateway — there are zero-or-more gateways, depending on the route on the server, which may or may not get used to communicate to any

Re: [Puppet Users] Default Gateway facter problems

2010-04-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 distid = Facter.value('lsbdistid') if distid.match(/RedHatEnterprise|CentOS|Fedora/) sidenote: you can use confine for such things. [...] I can see the fact on the client node (but only if I add --puppet): # facter --puppet|grep

[Puppet Users] puppet ignoring facts?

2010-04-20 Thread Rene
Hi I have the following module for installing HP software on HP Servers: class hpasm { tag('hpasm') $packagelist = [ hpasm, hpacucli ] if ($manufacturer == 'Xen') or ($manufacturer == 'Sun Microsystems'){ } else { file { /opt/compaq: owner = root,

Re: [Puppet Users] puppet ignoring facts?

2010-04-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 But this should not be. Has Puppet problems, when I have serveral words in afact, since it works perfectly for Xen Systems. as far as I can see not: $ cat foo.pp $manufacturer1 = 'Xen' if ($manufacturer1 == 'Xen') or ($manufacturer1 == 'Sun

Re: [Puppet Users] puppet ignoring facts?

2010-04-20 Thread Ohad Levy
I've seen cases where there were white spaces at the end of the fact name, double check your facts yaml file on the master (~puppet/yaml/facts/hostname) Ohad On Tue, Apr 20, 2010 at 2:39 PM, Rene rene.zbin...@gmail.com wrote: Hi I have the following module for installing HP software on HP

[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 ohadl...@gmail.com wrote: I've seen cases where there

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

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 peter.me...@immerda.ch wrote: You saved my day. Actually there was a lot of white space :-)

[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

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] 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

[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 dan.car...@gmail.com 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]): Good:

[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

[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

[Puppet Users] Re: Default Gateway facter problems

2010-04-20 Thread donavan
On Apr 19, 10:09 pm, Daniel Pittman dan...@rimspace.net 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 :) snip

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], ) } class

[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

[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

[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 p...@tertiusfamily.net wrote: Hey all, I am happy to announce the release of the supervisor module

[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 errata or a

[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 Groups Puppet Users

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] 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

[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

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 jamalu...@gmail.com wrote: On Tue, Apr 20, 2010 at 9:48 PM, Andrew Heagle logaan...@gmail.com wrote: When you are using LDAP and puppetrun, you do not do puppetrun --host hostname..., instead you use puppetrun --class myclass ...  This will

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 logaan...@gmail.com wrote: When you are using LDAP and puppetrun, you do not do puppetrun --host hostname..., instead you use puppetrun --class myclass ...  This will find all the hosts in your LDAP directory with puppetClass: myclass, and

[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 define

[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

[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,

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

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

2010-04-20 Thread Daniel Pittman
donavan dona...@desinc.net writes: On Apr 19, 10:09 pm, Daniel Pittman dan...@rimspace.net 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

[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.