[Puppet Users] err: Could not run Puppet::Client::MasterClient: undefined method

2008-11-17 Thread Kristoffer
Hi, On debian etch with puppet v. 0.20.1-1 (debian package) Some servers are not updating automatically, they do however update if puppet is restartet. Error is: debug: Calling puppetmaster.freshness err: Could not run Puppet::Client::MasterClient: undefined method `-' for # Any idea? I'd real

[Puppet Users] Re: err: Could not run Puppet::Client::MasterClient: undefined method

2008-11-17 Thread Brice Figureau
On Mon, 2008-11-17 at 01:01 -0800, Kristoffer wrote: > Hi, > > On debian etch with puppet v. 0.20.1-1 (debian package) This is really and ld version (almost 2 years old). There were tons of bug fixes and new features between this version and the curent 0.24.6. > Some servers are not updatin

[Puppet Users] System configuration and /etc/init.d/* deamons

2008-11-17 Thread Xavier Beaudouin
Hi, I wish to update some files, like for example /etc/ntp.conf (or others like this)... and restart daemons if the file has being updated. I'am able to send the file with the following class : # NTP class ntpconf { case $operatingsystem { "RedHat": { file

[Puppet Users] Re: System configuration and /etc/init.d/* deamons

2008-11-17 Thread Peter Meier
Hi > One thing I miss is how to do /etc/init.d/ntp restart when the file is > modified, but *only* if the file is modified (not every time the check > has been done) ? you have then to manage the ntp-service and use the notify in the file definition for this service. have a look at the docu

[Puppet Users] Re: System configuration and /etc/init.d/* deamons

2008-11-17 Thread Xavier Beaudouin
Hi, On Nov 17, 11:19 am, Peter Meier <[EMAIL PROTECTED]> wrote: > Hi > > > One thing I miss is how to do /etc/init.d/ntp restart when the file is > > modified, but *only* if the file is modified (not every time the check > > has been done) ? > > you have then to manage the ntp-service and use

[Puppet Users] Re: puppetmasterd taking a lot of memory

2008-11-17 Thread Francois Deppierraz
Aj wrote: > I've noticed a significant drop in memory usage since disabling > storeconfigs (and thus, rails 'n stuff). Previously I'd have to > crontab restart the masters. Upgrading activerecord and associated libs to version 2.1.1 fixed a similar memory leak issues we had. François --~--

[Puppet Users] Re: System configuration and /etc/init.d/* deamons

2008-11-17 Thread Peter Meier
Hi > Hum... Yes, but I didn't yet understood how to "manage the ntp- > service"... by using the service type: http://reductivelabs.com/trac/puppet/wiki/TypeReference#service > Sorry about this newbee question, but I'm still a bit puzzled about > that... Or if you have a good and simple example

[Puppet Users] deleting users secondary groups

2008-11-17 Thread Arnau Bria
Hi all, I'm using "users/group" type for user/group creation. But how to remove user secondary groups? Is delete / recreate the only solution? Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppe

[Puppet Users] Could not write crontab for root: Invalid user: root

2008-11-17 Thread nOX
Hi, On one of my solaris zones I have this problem when I'm setting a cron entry : debug: Executing 'crontab /tmp/puppet20081117-2533-ux0mj0-0' err: Could not apply complete catalog: Could not write crontab for root: Invalid user: root After puppet finish execution, all my users seem absent, fo

[Puppet Users] Re: Could not write crontab for root: Invalid user: root

2008-11-17 Thread Bruno B
I'm not using LDAP or NIS. The users are managed with /etc/passwd file. On 17 nov, 14:28, nOX <[EMAIL PROTECTED]> wrote: > Hi, > > On one of my solaris zones I have this problem when I'm setting a cron > entry : > > debug: Executing 'crontab /tmp/puppet20081117-2533-ux0mj0-0' > err: Could not app

[Puppet Users] Re: puppet newbie

2008-11-17 Thread [EMAIL PROTECTED]
Hi , I 'm going thru the Wiki. I'm sorry about the confusion. What I meant by using Templates or Classes to define nodes nodes . I do understand that nodes define nodes. While going thru wiki I stumbled on the Fact with Templates and Classes. and was wondering when the former makes more sense th

[Puppet Users] How should a launchd service work in Puppet?

2008-11-17 Thread Nigel Kersten
(sending to users and -dev to try and catch the Mac users) So I've been playing around with a launchd service type, and conceptually it doesn't map cleanly to Puppet in all cases. launchd differs from a lot of service frameworks in that it can also keep jobs alive when the process exits, which l

[Puppet Users] Re: How should a launchd service work in Puppet?

2008-11-17 Thread Nigel Kersten
and now with the new correct puppet-dev address... On Mon, Nov 17, 2008 at 7:42 AM, Nigel Kersten <[EMAIL PROTECTED]> wrote: > (sending to users and -dev to try and catch the Mac users) > > So I've been playing around with a launchd service type, and > conceptually it doesn't map cleanly to Puppe

[Puppet Users] Re: err: Could not run Puppet::Client::MasterClient: undefined method

2008-11-17 Thread Nigel Kersten
On Mon, Nov 17, 2008 at 2:06 AM, Brice Figureau <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-11-17 at 01:01 -0800, Kristoffer wrote: >> Hi, >> >> On debian etch with puppet v. 0.20.1-1 (debian package) > > This is really and ld version (almost 2 years old). > There were tons of bug fixes and ne

[Puppet Users] Re: err: Could not run Puppet::Client::MasterClient: undefined method

2008-11-17 Thread Nigel Kersten
On Mon, Nov 17, 2008 at 7:51 AM, Nigel Kersten <[EMAIL PROTECTED]> wrote: > On Mon, Nov 17, 2008 at 2:06 AM, Brice Figureau > <[EMAIL PROTECTED]> wrote: >> >> On Mon, 2008-11-17 at 01:01 -0800, Kristoffer wrote: >>> Hi, >>> >>> On debian etch with puppet v. 0.20.1-1 (debian package) >> >> This is

[Puppet Users] structure question / requirements

2008-11-17 Thread Arnau Bria
Hi all, I've been playing with puppet for a couple of weeks and that's how I have configured it: # ls /etc/puppet/manifests/ modules site.pp # ls /etc/puppet/manifests/modules/ autofs_home fstab local_conf local_groups local_users packages pbs_client repos yaim and each "module" is

[Puppet Users] Re: puppet newbie

2008-11-17 Thread Andrew Shafer
Yogesh, I don't understand what you are asking. Classes in Puppet provide a mechanism for semantic grouping and templates provide a mechanism to parametrize the generation of files. Both can use 'facts'. The templates complement the classes, they are not mutually exclusive. Regards, Andrew

[Puppet Users] Re: subscribe and require with exec

2008-11-17 Thread Casey Deccio
On Fri, Nov 14, 2008 at 9:11 AM, Casey Deccio <[EMAIL PROTECTED]> wrote: > In this case, the squid -k parse would pass, and the squid init script would > exit successfully, so squid would never detect a problem. However, squid > would have problems functioning at run time (i.e., sending to the >

[Puppet Users] Re: External_nodes definition not working. Client states "could not find node"

2008-11-17 Thread Kurz Bendlin
Fixed the Perl warmings but didnt solve the Problem ;( Am 15.11.2008 um 20:50 schrieb "Kurt Bendlin" <[EMAIL PROTECTED]>: > ./external-node-script.pl host02-dns.dev.test.de > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = (uns

[Puppet Users] running puppetmaster on gentoo to configure ubuntu machnines

2008-11-17 Thread kevin
I really, really hope that this is possible: I have puppetmaster installed on a gentoo box, and I need to have it configure ubuntu servers.. is this at all a problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Puppet Users] Re: running puppetmaster on gentoo to configure ubuntu machnines

2008-11-17 Thread Nigel Kersten
On Mon, Nov 17, 2008 at 10:11 AM, kevin <[EMAIL PROTECTED]> wrote: > > I really, really hope that this is possible: I have puppetmaster > installed on a gentoo box, and I need to have it configure ubuntu > servers.. is this at all a problem? No, this is kind of the point of puppet :) abstracting

[Puppet Users] Re: running puppetmaster on gentoo to configure ubuntu machnines

2008-11-17 Thread Peter Meier
Hi > I really, really hope that this is possible: I have puppetmaster > installed on a gentoo box, and I need to have it configure ubuntu > servers.. is this at all a problem? why should it be a problem? cheers pete --~--~-~--~~~---~--~~ You received this messa

[Puppet Users] Re: running puppetmaster on gentoo to configure ubuntu machnines

2008-11-17 Thread RijilV
2008/11/17 Peter Meier <[EMAIL PROTECTED]> > > Hi > > > I really, really hope that this is possible: I have puppetmaster > > installed on a gentoo box, and I need to have it configure ubuntu > > servers.. is this at all a problem? > > why should it be a problem? > > cheers pete > > If you wanted

[Puppet Users] Re: puppetmasterd taking a lot of memory

2008-11-17 Thread Loobster
On Nov 14, 6:53 pm, "Andrew Shafer" <[EMAIL PROTECTED]> wrote: > > Fileserving is essentially rewritten in the master branch and preliminary > test show that fixes a lot of this. (master branch is an unstable > development branch) > Is there a way of downloading the master as tar? Karl --~--~---

[Puppet Users] Re: Pulseaudio cookie distribution with puppet

2008-11-17 Thread Maciej Bliziński
On Nov 16, 2:04 pm, Peter Meier <[EMAIL PROTECTED]> wrote: > however with creating the cookie on the puppetmaster and then distribute > it directly is a lot easier. depens if it's easy to create such a cookie > on the puppetmaster. Creating the cookie itself perhaps wouldn't be that difficult, bu

[Puppet Users] Re: puppetmasterd taking a lot of memory

2008-11-17 Thread Andrew Shafer
You can pull it from github, but I really don't recommend you use it for anything but testing at the moment. Of course, we'd be happy to hear about any issues that you find, I just don't want you finding them on anything important. The head of trunk is Luke's github git://github.com/lak/puppet.gi

[Puppet Users] Re: Pulseaudio cookie distribution with puppet

2008-11-17 Thread Peter Meier
Hi > Creating the cookie itself perhaps wouldn't be that difficult, but > after creating and placing it, pulseaudio server would need to be > restarted. But restarting pulseaudio server is something I'd like to > happen as seldom as possible, because after such restart all > connections to it are

[Puppet Users] Re: onlyif functionality for the File type

2008-11-17 Thread Simon J Mudd
[EMAIL PROTECTED] ("Paul Lathrop") writes: > Why are you doing this? This kind of situation usually indicates a > need to adjust one's mindset in order to work within the Puppet model > rather than fighting against it. > > That said, I think you could do this a couple ways: > > 1) An Exec resourc

[Puppet Users] Re: Facter is broken on Open Solaris (facter-1.5.2)

2008-11-17 Thread Luke Kanies
On Nov 14, 2008, at 3:03 PM, Parimi V. wrote: > > OpenSolaris release model is pretty confusing at this point. I'd think > using the build number as OSRelease at this point is reasonable as > that's how they refer the OS release to. At the least, facter should > be forgiving on what it gets from

[Puppet Users] Re: ldap nodes and authentication.

2008-11-17 Thread Luke Kanies
On Nov 14, 2008, at 6:18 PM, Leon Meßner wrote: > Hi, > i'm relatively new to puppet and to this list and have a problem > configuring puppet for using ldap nodes. I have a very basic testing > setup on FreeBSD7_0 using puppet-dev port (0.24.5) > The error i get is: > > warning: Retrying LDAP con

[Puppet Users] Re: deleting users secondary groups

2008-11-17 Thread Luke Kanies
On Nov 17, 2008, at 6:12 AM, Arnau Bria wrote: > > Hi all, > > I'm using "users/group" type for user/group creation. > > But how to remove user secondary groups? > > Is delete / recreate the only solution? What do you mean? Just specify the list of groups you want the user to have, then set

[Puppet Users] Re: How should a launchd service work in Puppet?

2008-11-17 Thread Luke Kanies
On Nov 17, 2008, at 9:42 AM, Nigel Kersten wrote: > > (sending to users and -dev to try and catch the Mac users) > > So I've been playing around with a launchd service type, and > conceptually it doesn't map cleanly to Puppet in all cases. > > launchd differs from a lot of service frameworks in t

[Puppet Users] Re: External_nodes definition not working. Client states "could not find node"

2008-11-17 Thread Luke Kanies
And you're sure that's the exact name that the script is being called with? There's something screwy going on somewhere. Are you calling the script as the same user? Could that be the problem? On Nov 15, 2008, at 1:50 PM, Kurt Bendlin wrote: > ./external-node-script.pl host02-dns.dev.test

[Puppet Users] Re: How should a launchd service work in Puppet?

2008-11-17 Thread Nigel Kersten
On Mon, Nov 17, 2008 at 3:26 PM, Luke Kanies <[EMAIL PROTECTED]> wrote: > > On Nov 17, 2008, at 9:42 AM, Nigel Kersten wrote: > >> >> (sending to users and -dev to try and catch the Mac users) >> >> So I've been playing around with a launchd service type, and >> conceptually it doesn't map cleanly

[Puppet Users] Re: How should a launchd service work in Puppet?

2008-11-17 Thread Luke Kanies
On Nov 17, 2008, at 5:32 PM, Nigel Kersten wrote: >> >> We had the same problem with SMF on Solaris, and we basically just >> considered 'stopped' and 'disabled' to be equivalent, which I think >> would work as well for launchd. > > ok. So ignore "enabled" and just set started to be "enabled/loade

[Puppet Users] Re: How should a launchd service work in Puppet?

2008-11-17 Thread Nigel Kersten
On Mon, Nov 17, 2008 at 3:36 PM, Luke Kanies <[EMAIL PROTECTED]> wrote: > > On Nov 17, 2008, at 5:32 PM, Nigel Kersten wrote: >>> >>> We had the same problem with SMF on Solaris, and we basically just >>> considered 'stopped' and 'disabled' to be equivalent, which I think >>> would work as well fo

[Puppet Users] startup questions

2008-11-17 Thread Don Jackson
Hello, I am a puppet newbie, I recently purchased & read "Pulling Strings", etc. I'm trying to install and configure puppetd on new machines built by my automated host installation system. I'm getting a fatal error when puppetd starts up after the system boot, here is the result of puppet

[Puppet Users] Re: How should a launchd service work in Puppet?

2008-11-17 Thread Luke Kanies
On Nov 17, 2008, at 6:30 PM, Nigel Kersten wrote: > > Unfortunately launchd in the current incarnation doesn't allow you to > interrogate launchd instances that were launched by another user > account, and pretty much all the services people are interested in are > owned by root. > > The inverse c

[Puppet Users] Re: puppet newbie

2008-11-17 Thread Crawford Kyle
On Nov 15, 2008, at 8:46 PM, Nigel Kersten wrote: > so I'm particularly interested to hear what the > major conceptual stumbling blocks were for getting started so that we > make sure we're smoothing that path out. Terminology, type/provider development, and best practices. How to selectively

[Puppet Users] Re: puppet newbie

2008-11-17 Thread [EMAIL PROTECTED]
I think I should read the complete WIKI thru and then start with Puppet.Clearly there are lot of OO concepts here. When I was talking about Template and Classes I meant was a scenario where I want to override a variable in my node definition which is also defined in my Template. (I know I have to