[Puppet Users] Re: how to define variables in "module" scope ?

2008-10-02 Thread Marc Fournier
Hello, > > I have a bunch of variables that are used in several classes and > > definitions, all part of the same module. > > > > As these variables are defined automatically based on system facts, > > I would like to avoid having to declare them in each node that uses > > classes or definitions

[Puppet Users] Re: Puppet clients stop talking to the puppetmaster server

2008-10-02 Thread josh
Paul, Yes puppetmasterd has been restarted several times but no luck. I'm upgrading all the clients to facter-1.5.2 now, and once that done I may either upgrade all the clients to puppet-0.24.5, or downgrade the server to 0.24.4, that way both the clients and the server will have the same versio

[Puppet Users] Re: question about reports

2008-10-02 Thread Luke Kanies
On Sep 30, 2008, at 3:31 PM, Nicolas Arias wrote: > when a node tries to send a report it drops the following error: > > err: Reporting failed: undefined method `graph' for > # Could you possibly be running different versions of Puppet on the hosts? If not, can we get a stack trace (with --tra

[Puppet Users] Re: how to define variables in "module" scope ?

2008-10-02 Thread Luke Kanies
On Sep 29, 2008, at 12:45 PM, Felix Schäfer wrote: > > Hello, > > Am 29.09.2008 um 18:40 schrieb Marc Fournier: > >> I have a bunch of variables that are used in several classes and >> definitions, all part of the same module. >> >> As these variables are defined automatically based on system fac

[Puppet Users] Re: error when using rrdtool with puppet

2008-10-02 Thread Luke Kanies
On Oct 1, 2008, at 6:15 PM, pavel wrote: > > I am trying get puppet to write log data using rrdtool to be used by > PuppetView. I have installed all the rrdtool packages including ruby- > rrdtool. > > Here are by puppet configs: > reports = rrdgraph, store > reportdir = /var/www/ht

[Puppet Users] Newbie Question.

2008-10-02 Thread Edward
Ok, I have gotten Puppet up and running. I am about to start testing out some more of the functions but there does not appear to be any place that describes all the options to a function. For example File: I have seen examples with file { /etc/passwd: mode->777, ensure->file, owner->nobody, gro

[Puppet Users] Puppet for password management

2008-10-02 Thread Geoff Newell
I'm working on a turnkey Linux system where the post build config is handled with puppet. One of the unique constraints with a turnkey system is that passwords are essentially set at build time and then stay fixed for the life of the product. I was wondering if anyone had used puppet to manage user

[Puppet Users] Re: virtual resources: multiple exports and one collect

2008-10-02 Thread Luke Kanies
On Oct 1, 2008, at 8:02 AM, udo waechter wrote: > Hello everybody, > I have a question regarding virtual resources and the exporting/ > collection thereof. > > I have several hosts that should export one and the same file > resource. This should be collected exactly once by one host. > The res

[Puppet Users] Re: Newbie Question.

2008-10-02 Thread Paul Lathrop
First of all, File and it's ilk are not "functions", they are "types" or even better "resource types". Second, the reference you are looking for is: http://reductivelabs.com/trac/puppet/wiki/TypeReference Hope that helps! --Paul On Thu, Oct 2, 2008 at 8:38 AM, Edward <[EMAIL PROTECTED]> wrote:

[Puppet Users] Re: Puppet clients stop talking to the puppetmaster server

2008-10-02 Thread Andrew Shafer
Can you get debug logs on the client and server? On Thu, Oct 2, 2008 at 8:25 AM, josh <[EMAIL PROTECTED]> wrote: > > Paul, > > Yes puppetmasterd has been restarted several times but no luck. I'm > upgrading all the clients to facter-1.5.2 now, and once that done I > may either upgrade all the cl

[Puppet Users] Idempotent file editing

2008-10-02 Thread dd-b
Or, how are people handling things like setting up sendmail to refer all outgoing mail to a smarthost down the line? I could have a script, check whether I'd edited sendmail.mc, edit it if needed, and run make in /etc/mail. That doesn't somehow sound very "puppety", if I'm getting any feel for h

[Puppet Users] How dangerous is...

2008-10-02 Thread dd-b
package { "something": ensure => latest } ? Do people mostly use it, mostly not use it, is it highly in dispute, or is there consensus? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

[Puppet Users] Re: How dangerous is...

2008-10-02 Thread Jeroen van Meeuwen
dd-b wrote: > package { "something": ensure => latest } ? > > Do people mostly use it, mostly not use it, is it highly in dispute, > or is there consensus? > It's there when you need it, but it may have unsuspected results if you do not have control over what updates to the package are availa

[Puppet Users] Re: Idempotent file editing

2008-10-02 Thread Mike Renfro
On 10/2/2008 2:15 PM, dd-b wrote: > I could have a script, check whether I'd edited sendmail.mc, edit it > if needed, and run make in /etc/mail. That doesn't somehow sound very > "puppety", if I'm getting any feel for how puppet really intends > things to work. http://www.cfwiki.org/cfwiki/inde

[Puppet Users] Re: How dangerous is...

2008-10-02 Thread Evan Hisey
On Thu, Oct 2, 2008 at 2:17 PM, dd-b <[EMAIL PROTECTED]> wrote: > > package { "something": ensure => latest } ? > > Do people mostly use it, mostly not use it, is it highly in dispute, > or is there consensus? > It depends on your specific situation. I tend to just use present to be sure the paca

[Puppet Users] Re: error when using rrdtool with puppet

2008-10-02 Thread pavel
Hi, Its not a permission issue i checked that. Looks like a big of some sort. Maybe the Version of puppet and the version of rrdtool? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To p

[Puppet Users] Re: How dangerous is...

2008-10-02 Thread Jeroen van Meeuwen
Andrew Shafer wrote: > I think the only time that makes sense is if you control the package > repos, then you can make some relatively safe assumptions and update the > repo as part of the change control process. > Agreed ;-) -Jeroen --~--~-~--~~~---~--~~ You

[Puppet Users] Re: Puppet clients stop talking to the puppetmaster server

2008-10-02 Thread josh
Yes I can. The server will have a LOT of log info as it's serving up just under 700 clients, but I can pick a few clients and enable debug logging for them and report back. On Oct 2, 2:32 pm, "Andrew Shafer" <[EMAIL PROTECTED]> wrote: > Can you get debug logs on the client and server? > > On Thu

[Puppet Users] Re: Idempotent file editing

2008-10-02 Thread dd-b
On Oct 2, 2:55 pm, Mike Renfro <[EMAIL PROTECTED]> wrote: > http://www.cfwiki.org/cfwiki/index.php/Editfiles_Considered_Harmfulmay > be a good starting point for one point of view (i.e., that editing > config files on the client systems can be a problem for auditing and > other things). The alt

[Puppet Users] Re: Idempotent file editing

2008-10-02 Thread Brian Mathis
On Thu, Oct 2, 2008 at 5:02 PM, dd-b <[EMAIL PROTECTED]> wrote: > That article is quite a good description of one position, definitely. > I believe in all the problems he describes happening; I've seen them > or things closely related, in various contexts. > > Storing a whole file and pulling it d

[Puppet Users] Re: Newbie Question.

2008-10-02 Thread Edward
Heh, well I guess that is why I could find it. :) Thanks that is a great start! On Oct 2, 1:22 pm, "Paul Lathrop" <[EMAIL PROTECTED]> wrote: > First of all, File and it's ilk are not "functions", they are "types" > or even better "resource types". Second, the reference you are looking > for is:

[Puppet Users] Re: Puppet for password management

2008-10-02 Thread Marti
I've done that on openbsd systems with something like this: exec { "setpass $name": onlyif => "grep '^$name:\*' /etc/master.passwd", command => "usermod -p '$pwstring' $name", require => User[$name], } Note that the onlyif on this command is intended to set the password only on accounts th

[Puppet Users] Re: Newbie Question.

2008-10-02 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Edward wrote: > Heh, well I guess that is why I could find it. :) > http://reductivelabs.com/trac/puppet/wiki/DocumentationStart Plus there is: http://reductivelabs.com/trac/puppet/wiki/GettingStarted http://reductivelabs.com/trac/puppet/wiki/Gett

[Puppet Users] Does "scripts" mean "manifests"?

2008-10-02 Thread dd-b
The help in puppet (the puppet executable, I mean, not necessarily the entire package) says things like "Runs a stand-alone +puppet+ script". I'm guessing that's just obsolete terminology, and it means "manifests"; and the example shows it being applied to a .pp file. Can I use say "puppet site

[Puppet Users] Re: How dangerous is...

2008-10-02 Thread Andrew Shafer
I think the only time that makes sense is if you control the package repos, then you can make some relatively safe assumptions and update the repo as part of the change control process. On Thu, Oct 2, 2008 at 1:34 PM, Jeroen van Meeuwen <[EMAIL PROTECTED]>wrote: > > dd-b wrote: > > package { "som

[Puppet Users] Re: error when using rrdtool with puppet

2008-10-02 Thread pavel
This has info but nor sure what to make of it: http://thr3ads.net/puppet-users/2007/03/189581-rrdgraphs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppe

[Puppet Users] Re: How dangerous is...

2008-10-02 Thread Russ Allbery
dd-b <[EMAIL PROTECTED]> writes: > package { "something": ensure => latest } ? > > Do people mostly use it, mostly not use it, is it highly in dispute, > or is there consensus? We don't use it because we don't tightly control when things go into our repository and sometimes upload things we don

[Puppet Users] Re: Ruby Openssl failure on Solaris 9

2008-10-02 Thread Luke Kanies
On Oct 1, 2008, at 3:09 PM, Silflay Hraka wrote: > Anyone seen this error before when trying to start a blastwave- > installed puppet on a Solaris 9 server? > > # puppetd --server ppserv.net.unc.edu --waitforcert 60 --test > /opt/csw/lib/ruby/site_ruby/1.8/puppet/sslcertificates.rb:8: You > m

[Puppet Users] Custom facts driving me insane

2008-10-02 Thread qbert980
I'm probably not understanding how facts work, but I'm hoping that somehow if a fact gets loaded by the puppetmaster, it could be used as a variable by all puppet clients, but this is turning out not to be the case. On my puppetmaster, I've got a ruby script that parses a simple text file located

[Puppet Users] Re: Custom facts driving me insane

2008-10-02 Thread Mike Renfro
qbert980 wrote: > I'm probably not understanding how facts work, but I'm hoping that > somehow if a fact gets loaded by the puppetmaster, it could be used as > a variable by all puppet clients, but this is turning out not to be > the case. Facts are evaluated on each client, including the puppetm

[Puppet Users] Re: Does "scripts" mean "manifests"?

2008-10-02 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 dd-b wrote: > The help in puppet (the puppet executable, I mean, not necessarily the > entire package) says things like "Runs a stand-alone +puppet+ > script". I'm guessing that's just obsolete terminology, and it means > "manifests"; and the exampl