[Puppet Users] access file form files directory in module

2009-05-28 Thread Rene
Hi We have on our systems old school software which is only installable via tar. I have the tar in module/file/software.tar How can I now access this file to untar it via an exec command. With the file type I think it is not possible, otherwise the tar gets downloaded every time puppet runs (bec

[Puppet Users] Re: access file form files directory in module

2009-05-28 Thread Pieter Barrezeele
Hi Rene, On 28 May 2009, at 09:20, Rene wrote: > > Hi > > We have on our systems old school software which is only installable > via tar. I have the tar in module/file/software.tar > > How can I now access this file to untar it via an exec command. With > the file type I think it is not possible

[Puppet Users] Re: access file form files directory in module

2009-05-28 Thread Rene
OK, I'll do that. Thanks On 28 Mai, 10:01, Pieter Barrezeele wrote: > Hi Rene, > > On 28 May 2009, at 09:20, Rene wrote: > > > > > Hi > > > We have on our systems old school software which is only installable > > via tar. I have the tar in module/file/software.tar > > > How can I now access

[Puppet Users] Re: Controlling the order of execution of puppet code?

2009-05-28 Thread Peter Meier
Hi > Only way I know is to make individual objects depend on other objects. > Can't do it at > class level... I think there is a feature request somewhere in the > system for this, because > I'd like it as well... hmm did I only dream that in the upcoming release there will be a require (or so

[Puppet Users] Using custom facts for the first time

2009-05-28 Thread paul matthews
Hi, I'm attempting to create a custom fact to tell me the day of the week ( to be used as a file suffix for vmware snapshots). I've followed the wiki which advises deploying facts via modules for releases >0.24. As I understand this means :- 1. creating a plugins/facter directory under an exist

[Puppet Users] Re: Using custom facts for the first time

2009-05-28 Thread Saurabh Verma
paul matthews wrote: > Hi, > I'm attempting to create a custom fact to tell me the day of the week > ( to be used as a file suffix for vmware snapshots). I've followed the > wiki which advises deploying facts via modules for releases >0.24. As > I understand this means :- > >1. creating a p

[Puppet Users] Re: Using custom facts for the first time

2009-05-28 Thread paul matthews
Superb, thanks for that. I think my confusion was missing the point that you need a specific module for facts pointed to by factpath rather than tacking on a plugins/facter directory under an existing module 2009/5/28 Saurabh Verma > > paul matthews wrote: > > Hi, > > I'm attempting to create a

[Puppet Users] error : Could not store configs: undefined method `environment=' for #

2009-05-28 Thread Vincent Louviaux
Hello I have restart puppetmasterd with dbmigrate but I still have the error : Could not store configs May 28 14:37:18 puppetmasterd[19150]: Migrating May 28 14:37:19 puppetmasterd[19150]: Could not store configs: undefined method `environment=' for # May 28 14:37:19 puppetmasterd[19150]: Com

[Puppet Users] Re: error : Could not store configs: undefined method `environment=' for #

2009-05-28 Thread Vincent Louviaux
I have recreate the DB .. now it solved Vincent On Thu, May 28, 2009 at 2:45 PM, Vincent Louviaux wrote: > Hello > > I have restart puppetmasterd with dbmigrate > but I still have the error : Could not store configs > > > May 28 14:37:18 puppetmasterd[19150]: Migrating > May 28 14:37:19 pupp

[Puppet Users] Re: Controlling the order of execution of puppet code?

2009-05-28 Thread Brice Figureau
On Thu, 2009-05-28 at 11:55 +0200, Peter Meier wrote: > Hi > > > Only way I know is to make individual objects depend on other objects. > > Can't do it at > > class level... I think there is a feature request somewhere in the > > system for this, because > > I'd like it as well... > > hmm did I

[Puppet Users] Re: Controlling the order of execution of puppet code?

2009-05-28 Thread Peter Meier
Hi > I implemented it for sure, but in the end I think it was rejected: > http://projects.reductivelabs.com/issues/1907 > > Re-reading the thread I see why we rejected the bug, but not the patch. > I think I'll have to resubmit it. yeah I objected because of changing the behaviour of include. B

[Puppet Users] Re: Controlling the order of execution of puppet code?

2009-05-28 Thread Peter Meier
Hi > yeah I objected because of changing the behaviour of include. But I > thought that it was implemented with a different keyword, which wouldn't > change the behaviour of include. > > Something like a "stronger" include and I thought it have been called > required. > > But maybe I'm wrong.

[Puppet Users] Re: Using custom facts for the first time

2009-05-28 Thread paul matthews
Thanks to Saurabh pointing me in the right direction, the solution I found to getting basic custom facts to work were as follows:- 1. On the puppetmaster in your modules directory create a facts module with subdirectory files. In this add any of your custom .rb scripts # ls /etc/puppet/modules/f

[Puppet Users] Re: Using custom facts for the first time

2009-05-28 Thread Paul Lathrop
Paul, A custom fact is probably the wrong way to implement this, actually, unless you have servers in multiple locations where the day of the week differs from server to server. Custom facts are intended for information that can only be computed at the client end. For something like the day of t

[Puppet Users] Re: Boston Puppet Meet

2009-05-28 Thread Joe McDonagh
I am in the Back Bay and as long as I am not too swamped I will go. Paul Nasrat wrote: > I'm going to be in Boston/Cambridge/Somerville at the start of June > > Anyone fancy meeting up for a few beers and talking about > puppet/systems administration? > > Maybe somewhere like Cambridge Brewing Co

[Puppet Users] Re: Boston Puppet Meet

2009-05-28 Thread Thomas A. McGonagle
Hey, I live and work in Cambridge. Ill be there. Please let me know when you decide on the details. Thanks. -Tom On May 28, 2009, at 4:25 PM, Joe McDonagh wrote: > > I am in the Back Bay and as long as I am not too swamped I will go. > > Paul Nasrat wrote: >> I'm going to be in Boston/Cambridge

[Puppet Users] Why can't I use Puppet for Windows ?

2009-05-28 Thread harry
Hi, >From initial reading Puppet looks very powerful tool, but I am looking for a solution that support multiple OS including windows. Why can't I use Puppet for Windows ? (Couldn't I simply run JRuby?) Thanks in advance for your response! Regards, --~--~-~--~~~-

[Puppet Users] Re: Why can't I use Puppet for Windows ?

2009-05-28 Thread Paul Nasrat
> From initial reading Puppet looks very powerful tool, but I am looking > for a solution that support multiple OS including windows. Why can't I > use Puppet for Windows ?   (Couldn't I simply run JRuby?) It's feasible just not yet implemented yet. Mostly the providers have not been written yet

[Puppet Users] Re: Why can't I use Puppet for Windows ?

2009-05-28 Thread James Turnbull
harry wrote: > Hi, > > From initial reading Puppet looks very powerful tool, but I am looking > for a solution that support multiple OS including windows. Why can't I > use Puppet for Windows ? (Couldn't I simply run JRuby?) Puppet has to understand how to do things on target platforms, for exa

[Puppet Users] Re: Controlling the order of execution of puppet code?

2009-05-28 Thread James Turnbull
Brice Figureau wrote: > On Thu, 2009-05-28 at 11:55 +0200, Peter Meier wrote: >> Hi >> >>> Only way I know is to make individual objects depend on other objects. >>> Can't do it at >>> class level... I think there is a feature request somewhere in the >>> system for this, because >>> I'd like it as

[Puppet Users] Re: Boston Puppet Meet

2009-05-28 Thread Tim Hartmann
I'm also in Boston! I'd love to meet up! Sent from my iPhone On May 28, 2009, at 5:15 PM, "Thomas A. McGonagle" wrote: > > Hey, I live and work in Cambridge. Ill be there. Please let me know > when you decide on the details. Thanks. > -Tom > On May 28, 2009, at 4:25 PM, Joe McDonagh wrote: >

[Puppet Users] Extras .... denizens of the Puppet ext directory

2009-05-28 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've been meaning to do this for ages In the Puppet tarball is a directory called "ext" that contains some extras that aren't exactly mainline but could be useful to people. You can see it's current contents at: http://github.com/reduct

[Puppet Users] variable scope with define and friends...

2009-05-28 Thread Ohad Levy
Hi, in this simplified example, I'm trying to create directories, and add each directory name into a variable, later on, generate a file which its content should be the directory names, but it doesn't work any help appreciated. Thanks, Ohad node default { include b } class a { file{"/tmp/

[Puppet Users] How do I access a nodes variables from outside the scope

2009-05-28 Thread Joel Heenan
I thought the following would work and allow me to access a nodes variables from within a definition. It seems that classes and nodes, while similar, are different from the point of view of qualified variables. Can someone confirm this? The obvious workaround is to define all variables within a c

[Puppet Users] Re: variable scope with define and friends...

2009-05-28 Thread Joel Heenan
I might be wrong Ohad but my understanding is that puppet configurations are declarative and therefore have to be compiled. It probably helps to stop thinking about your define as being a function, executed at run time, and think of it as a macro that is substitued all over the place. It is not a f

[Puppet Users] Re: How do I access a nodes variables from outside the scope

2009-05-28 Thread Joel Heenan
I think I'm going to try and do this with external types. Joel On Fri, May 29, 2009 at 4:19 PM, Joel Heenan wrote: > I thought the following would work and allow me to access a nodes variables > from within a definition. It seems that classes and nodes, while similar, > are different from the p

[Puppet Users] Re: Controlling the order of execution of puppet code?

2009-05-28 Thread philipp Hanselmann
Junhao schrieb: > Greg wrote: > >> Only way I know is to make individual objects depend on other objects. >> Can't do it at >> class level... I think there is a feature request somewhere in the >> system for this, because >> I'd like it as well... >> >> Greg >> >> On May 27, 9:56 pm, philipp Ha

[Puppet Users] Re: variable scope with define and friends...

2009-05-28 Thread Ohad Levy
On Fri, May 29, 2009 at 2:26 PM, Joel Heenan wrote: > I might be wrong Ohad but my understanding is that puppet configurations > are declarative and therefore have to be compiled. It probably helps to stop > thinking about your define as being a function, executed at run time, and > think of it a