[Puppet Users] Best practices on organizing modules

2010-07-16 Thread Kenneth Holter
Hi all. We're building our puppet infrastructure from scratch, and need to decide on how to organize our modules. As the puppet best practice document suggests, we're going to put all building blocks modules in the "modules" area, and make use of the services and clients areas to make up server c

[Puppet Users] Installping puppet with kickstart -- Cannot find local fact /proc/cpuinfo

2010-07-16 Thread Harihara Vinayakaram
Hi I have been trying to get puppet working with kickstart. I am trying to install Hadoop on the nodes. Installing puppet from kickstart work and when the machine restarts, certificates are pulled down and hadoop user is created and files are extracted. I want all the user creation etc to

Re: [Puppet Users] Re: question about package provider on Solaris

2010-07-16 Thread Gary Law
On 16 July 2010 06:44, tehcook wrote: > > /opt/csw/bin/pkg-get -f upgrade common [ snip ] > [... skipped many more dependencies...] > > Current administration requires that a unique instance of the > package be created.  However, the maximum number of > instances of the package which may be supp

[Puppet Users] Re: Augeas and grub.conf

2010-07-16 Thread Erinn Looney-Triggs
Rob, Thanks for the information, sometimes when I am just starting out on a new project it is nice to have someone confirm that you are not all crazy in what you are seeing. Removing the onlyifs seems reasonable, and thanks for pointing out the count option as well as the documentation. I will cont

[Puppet Users] Re: Best practices on organizing modules

2010-07-16 Thread Christian
Hi Kenneth, I'm also creating a setup from scratch and want to do similar things like you. Therefore i cannot provide a big experience report. However we disussed quite a lot internally how we want to setup it correctly. One outcome was to create a generic node which holds all module available on

Re: [Puppet Users] Re: question about package provider on Solaris

2010-07-16 Thread Gary Law
> Looking at the provider, I believe blastwave provider is running the > command: pkg-get upgrade {package_name}. Please run with --debug, it should > indicate the OS command puppet to ensure latest. Try the command displayed > in debug output manually and see if it's correct and whether it perform

Re: [Puppet Users] puppetmasterd screwing the SSL setup

2010-07-16 Thread Cesar Avalos
I had the same problem and just fixed with Patrick solution. I just wanted to say thanks everybody. -- Att, Cesar Avalos -- 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.com. To un

Re: [Puppet Users] Re: question about package provider on Solaris

2010-07-16 Thread James Turnbull
Gary Law wrote: > You could argue none of this is a problem with puppet per se, however, > I think puppet needs to move it's Solaris Blastwave provider backend > to pkgutil. > I've added a ticket for the pkgutil provider: http://projects.puppetlabs.com/issues/4258 Regards James Turnbull -- P

Re: [Puppet Users] puppet doing full read on files with replace => no

2010-07-16 Thread John Cesario
Could someone help me throw some puts in the right place to see if it is being checksummed? I attempted this myself but Im unsure I got the right spot. Thanks, -JC On Thu, Jul 15, 2010 at 2:50 PM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > On 15/07/10 21:43, John Cesario wrote: > >

[Puppet Users] Could not retrieve dependency

2010-07-16 Thread Jeff
Hi, I have a class, users::tomcat in which I have user { "tomcat": ... } I have another class named mirror. In mirror, I have require User["tomcat"] puppet errs with: err: Could not apply complete configuration: Could not retrieve dependency 'User[tomcat]' at /var/puppet/modules/mirror/mani

[Puppet Users] Pushing out all templates in a directory.

2010-07-16 Thread Douglas Garstang
I'm guessing you can't use the content attribute when pushing out all files in a directory... file { "/etc/nagios/conf.d": content => template("nagios/etc/nagios/conf.d"), #source => "puppet:///nagios/etc/nagios/conf.d", recurse => true,

Re: [Puppet Users] Pushing out all templates in a directory.

2010-07-16 Thread Alan Barrett
On Fri, 16 Jul 2010, Douglas Garstang wrote: > I'm guessing you can't use the content attribute when pushing out all > files in a directory... > > file { > "/etc/nagios/conf.d": > content => template("nagios/etc/nagios/conf.d"), > #source => "puppet:///nagios/et

Re: [Puppet Users] puppet doing full read on files with replace => no

2010-07-16 Thread Brice Figureau
On 16/07/10 18:06, John Cesario wrote: > Could someone help me throw some puts in the right place to see if it is > being checksummed? I attempted this myself but Im unsure I got the right > spot. Have a look in puppet/util/checksums.rb Put your debug statements in the md5_file or checksum_file me

[Puppet Users] subscribing a service to multiple files ?

2010-07-16 Thread phrawzty
Hello, I am currently expanding on the Monit recipes that are available on the Wiki (as well as github). One of the oft-used features of Monit is the ability to load arbitrary configuration files at runtime (i.e. include /etc/monit.d/*.conf). This seems like it could be a good fit for integratin

[Puppet Users] Re: Could not retrieve dependency

2010-07-16 Thread phrawzty
On Jul 16, 7:12 pm, Jeff wrote: > Hi, > > I have a class, users::tomcat in which I have > > user { "tomcat": >   ... > > } > > I have another class named mirror. In mirror, I have require > User["tomcat"] > > puppet errs with: > > err: Could not apply complete configuration: Could not retrieve > d

[Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Yushu
Hi Experts, I'm running "puppetd --no-daemonize --debug --onetime". Is there a way to figure out if the one time run is success? I couldn't do it by looking at the return value, it return 0 when "err: skipping run" Success meaning All definitions are applied and nothing failed. I can of course g

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-16 Thread bowlby
Hi Steve, Thanks for your suggestion but it doesn't change the behaviour I see. MySQL gets installed nicely, but the db's do not appear nor any error- messages in the logfiles. I use: node 'puppettest' { include mysql::server include augeas mysql::database {"tsdfsdf": ensure => present,} }

[Puppet Users] Re: Management of MySQL grant tables?

2010-07-16 Thread bowlby
btw, this is my log: debug: Failed to load library 'selinux' for feature 'selinux' debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/ dscl does not exist debug: Puppet::Type::User::ProviderUser_role_add: file roleadd doe

Re: [Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread R.I.Pienaar
- "Yushu" wrote: > Hi Experts, > > I'm running "puppetd --no-daemonize --debug --onetime". > Is there a way to figure out if the one time run is success? > I couldn't do it by looking at the return value, it return 0 when > "err: skipping run" > > Success meaning All definitions are applie

Re: [Puppet Users] subscribing a service to multiple files ?

2010-07-16 Thread Rob McBroom
On Jul 16, 2010, at 12:48 PM, phrawzty wrote: > Thus the question : is it possible / advisable to subscribe a service > to multiple files, and if so, how would it be done ? Sure. Just do this: subscribe => [ File["first_file"], File["second_file"], File["you_get_the_idea"],

Re: [Puppet Users] subscribing a service to multiple files ?

2010-07-16 Thread Rob McBroom
Also worth mentioning: Puppet is smart enough to only restart the service once if more than one of the files it depends on are changed. -- Rob McBroom -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this g

[Puppet Users] 2.6.0rc3 ssh_authorized_users/parsed.rb

2010-07-16 Thread Jim Bala
Hi all, Full path: /usr/lib/ruby/site_ruby/1.8/puppet/provider/ssh_authorized_key/parsed.rb Two problems: 1) Even if filebucketing is disabled, this (still) tries to backup authorized_keys to /var/lib/puppet/clientbucket/[...]; no other modules are doing filebucketing when it's disabled but they

Re: [Puppet Users] puppetmasterd screwing the SSL setup

2010-07-16 Thread Marco Marongiu
Cesar Avalos ha scritto: > I had the same problem and just fixed with Patrick solution. I just > wanted to say thanks everybody. Hello Just as a round-up, You may want to add a [puppetca] section to your puppet.conf, setting the same ssldir as you did in [puppetmasterd], so that you don't have t

Re: [Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Patrick Mohr
You could also test to see if post-command is run. On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: > > - "Yushu" wrote: > >> Hi Experts, >> >> I'm running "puppetd --no-daemonize --debug --onetime". >> Is there a way to figure out if the one time run is success? >> I couldn't do it by lo

[Puppet Users] Re: How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Yushu
Thanks Patrick, But where is the post-command? Couldn't find any document in 0.25. Thanks -Yushu On Jul 16, 2:35 pm, Patrick Mohr wrote: > You could also test to see if post-command is run. > > On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: > > > > > - "Yushu" wrote: > > >> Hi Experts,

Re: [Puppet Users] Re: How can I know if puppetd --no-daemonize --debug --onetime is success

2010-07-16 Thread Patrick Mohr
Run "puppetd --genconfig" for commented documentation about puppetd's parameters. Take a look at "puppetd --genconfig | grep _command" if you don't want 5-15 pages of text to wade through. On Jul 16, 2010, at 2:55 PM, Yushu wrote: > Thanks Patrick, > > But where is the post-command? Couldn't

Re: [Puppet Users] Re: Management of MySQL grant tables?

2010-07-16 Thread steve .
It looks like mysql::database is not loading at all -- it's being skipped entirely. The camptocamp MySQL module relies on a facter plugin *and* a puppet plugin for its functionality. In order for this to work, you have to ensure that the plugins propagate from the Puppetmaster to the client. I s

Re: [Puppet Users] subscribing a service to multiple files ?

2010-07-16 Thread steve .
Or: [...] subscribe => File["larry", "moe", "curly" ], [...] Seems to work as well for me in 0.25.5 ... On Fri, Jul 16, 2010 at 2:49 PM, Rob McBroom wrote: > On Jul 16, 2010, at 12:48 PM, phrawzty wrote: > >> Thus the question : is it possible / advisable to subscribe a service >> to multiple

Re: [Puppet Users] Re: Could not retrieve dependency

2010-07-16 Thread steve .
Sounds like a scope issue to me. You need to make sure the class is included before you start referencing objects from it. Otherwise, Puppet doesn't know they exist... i.e.: class mirror { include users::tomcat [... a bunch more stuff. ] } Disclaimer: I've been off on my own doing thi

Re: [Puppet Users] 2.6.0rc3 ssh_authorized_users/parsed.rb

2010-07-16 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Am I perhaps doing something wrong or do one or both of these appear > to be a genuine bug(s)? I would say these are 2 bugs, can you file the reports? Thanks. cheers pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Usi