[Puppet Users] puppet cache of define

2008-10-29 Thread Matt
HI, I've spent a little bit of time hacking the http://reductivelabs.com/trac/puppet/wiki/Recipes/AmazonWebService recipe to work on my environment. I've got to the stage where the puppet client downloads using the authenticated URL. This works most of the time, however sometimes when there may

[Puppet Users] Re: RHEL4 = Use "yum"

2008-10-29 Thread Tiago Cruz
Hey Aj, Thanks... but where I need put this? On Server? On Client? Could you give me a an example? :-) Many thanks! On Tue, Oct 28, 2008 at 9:41 PM, Aj <[EMAIL PROTECTED]> wrote: > > If I understand ya, you probably want: > > Package { provider => 'yum' } > > To set the defaults for all packa

[Puppet Users] New function

2008-10-29 Thread nOX
Hello, I'm trying write a function who's able to determine if a file is a directory or not. Here's my function : module Puppet::Parser::Functions newfunction(:is_dir, :type => :rvalue) do |args| File.directory?(args[0]) end end And how I use it : if is_dir("/usr/local/etc") { fil

[Puppet Users] Package and log in puppet

2008-10-29 Thread Arnau
Hi all, my name is Arnau Bria and I'm a sys admin in a center where we must deal with hundred hosts. We're currently working with quattor, but it's too complex for our purposes, so I'm looking for new admin tool. I've been playing with CFengine for few days (2 or 3) and I've seen some limitatio

[Puppet Users] Re: RHEL4 = Use "yum"

2008-10-29 Thread Mark Drayton
Hi On Oct 28, 7:37 pm, "Tiago Cruz" <[EMAIL PROTECTED]> wrote: > I would like to configure my puppet to use "yum" instead "up2date" (default > RHEL4). > > How can I do this? :) Untested, but try this in your site.pp or other top-level manifest: Package { provider => "yum" } Note the capital

[Puppet Users] Package and log in puppet

2008-10-29 Thread Arnau Bria
Hi all, my name is Arnau Bria and I'm a sys admin in a center where we must deal with hundred hosts. We're currently working with quattor, but it's too complex for our purposes, so I'm looking for new admin tool. I've been playing with CFengine for few days (2 or 3) and I've seen some limitation

[Puppet Users] Re: Does mtime checksum work?

2008-10-29 Thread RijilV
2008/10/28 schickb <[EMAIL PROTECTED]>: > > Since my other thread (http://groups.google.com/group/puppet-users/ > browse_thread/thread/51f014a558b340a4?hl=en) has lots of data and no > replies, I wanted to ask the questions directly: Does the "mtime" > checksum work correctly for others? Or does i

[Puppet Users] Re: New function

2008-10-29 Thread James Bellenger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Perhaps not the exact answer that you're looking for, but what are you trying to do here and why are you using a function to do this? Functions are evaluated on the server, not the client. If you're trying to change how a clients resources are managed

[Puppet Users] Re: RHEL4 = Use "yum"

2008-10-29 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tiago Cruz wrote: > Hey Aj, > > Thanks... but where I need put this? On Server? On Client? > > Could you give me a an example? :-) You put it in a manifest on your master. It is the example. This tells Puppet to use the yum provider for all packa

[Puppet Users] Re: Package and log in puppet

2008-10-29 Thread RijilV
2008/10/29 Arnau <[EMAIL PROTECTED]>: > Hi all, > [..snip..] > 1.-) RPM. In CFE I wanted to use "yum install", "yum group install" > and > "rpm -Uvh" in same host group (or class), but for different > packages/metapackages. I was no able, and I think, for replies I got > from list, I will not... >

[Puppet Users] Re: Package and log in puppet

2008-10-29 Thread Arnau Bria
On Wed, Oct 29, 2008 at 8:48 PM, RijilV <[EMAIL PROTECTED]> wrote: > > 2008/10/29 Arnau <[EMAIL PROTECTED]>: [...] > Sure, you should be able to do that. For the yum groupinstall you > might have to run that as an exec (someone else here might know more), > but in general you'd have something

[Puppet Users] Re: Order of execution

2008-10-29 Thread Luke Kanies
On Oct 27, 2008, at 12:33 PM, Ryan Steele wrote: > > On Oct 27, 12:35 pm, Luke Kanies <[EMAIL PROTECTED]> wrote: >> The entire set of manifests is evaluated on the server, producing a >> catalog which is evaluated on the client. > > Ok, so the puppetmaster creates a static catalog (devoid of vari

[Puppet Users] Building a more useful roadmap

2008-10-29 Thread Luke Kanies
Hi all, We just finished another developer call, and the primary result of it was a plan for Puppet's roadmap. I've summarized it on my blog[1], and I've updated the Roadmap[2] document on the wiki. It provides a timeline for releases through July, and a basic plan beyond that but not in

[Puppet Users] Re: Does mtime checksum work?

2008-10-29 Thread schickb
That is a fairly limited test. Have you tried it with "source => "puppet:///module/file"? -Brad On Oct 29, 9:58 am, RijilV <[EMAIL PROTECTED]> wrote: > 2008/10/28 schickb <[EMAIL PROTECTED]>: > > > > > Since my other thread (http://groups.google.com/group/puppet-users/ > > browse_thread/thread/5

[Puppet Users] Re: Does mtime checksum work?

2008-10-29 Thread RijilV
Ah, looks like we've rediscoverd bug #264 [1]. You might also want to read #1564 [2], but I'll save you the time and quote the relevant bits: > Given that I'm (nearly) positive this is working in the master > branch, I think the "right" approach for now is to just throw a > warning and revert t