Re: [Puppet Users] [SOLVED] line replace triggers file reload

2011-06-02 Thread Giovanni Bordello
Sorted, I've done it using a template: search %= dns_search_path % nameserver ... nameserver ... That way the file is (presumably?) created on the master and looks constant to the client. GiBo On 02/06/11 17:59, Giovanni Bordello wrote: Hi, it's a modified replace() function taken from

[Puppet Users] Managing /etc/fstab options with augeas

2011-06-02 Thread Giovanni Bordello
Hi again, I'm trying to manage mount options in /etc/fstab with Augeas but can't figure out how to add more than one option. augeas { /etc/fstab: context = /files/etc/fstab, changes = [ 'set *[file = /tmp]/opt nosuid',

Re: [Puppet Users] [SOLVED] line replace triggers file reload

2011-06-02 Thread Patrick Mohr
On Wed, Jun 1, 2011 at 11:22 PM, Giovanni Bordello g...@gentlemail.comwrote: Sorted, I've done it using a template: search %= dns_search_path % nameserver ... nameserver ... That way the file is (presumably?) created on the master and looks constant to the client. To answer your

RE: [Puppet Users] Re: Any good documentation NGINX + Passenger + Puppet?

2011-06-02 Thread Russell Howe
3. SO my next issue is a function I wrote (random minute for cron), this stopped working, So instead of executing the function is takes is a value... Anyone ??? I can't help with the problem you're having, but would this do for your random minute? # Random minute between 10 past and

Re: [Puppet Users] Concat Module posted to Onyx Point Github.

2011-06-02 Thread Greg Sutcliffe
Hi Trevor, I'll add my thanks to the pile, this is pretty awesome stuff! I compared the --graph results with the old concat moule, and this one - impressive difference :) As Larry says, the fact that it executes Concat_build on every run is a stopper for us, since the dependant services get

Re: [Puppet Users] Concat Module posted to Onyx Point Github.

2011-06-02 Thread Greg Sutcliffe
Hi again, After an hour or three of hacking, I've managed to add the insync? checks to both the build and fragment types. It's the first time I've ever really messed with types and providers, so it's very ugly (and probably has bugs), however I'm happy to share my patches. Would that be best

[Puppet Users] Re: Any good documentation NGINX + Passenger + Puppet?

2011-06-02 Thread Luc Suryo
Thanks It end up a restart of nginx and everything is working! So pretty happy my next thing would be document what I did and make that available to whoever needs it On Jun 2, 4:28 am, Russell Howe rh...@moonfruit.com wrote: 3. SO my next issue is a function I wrote (random minute for

Re: [Puppet Users] uploading files via REST?

2011-06-02 Thread Razvan Cosma
Thank you, and one more q: can I specify a folder/share for the uploaded file, assuming there are several available? On Tue, May 31, 2011 at 7:41 PM, Daniel Pittman dan...@puppetlabs.comwrote: On Tue, May 31, 2011 at 07:21, RCosma razvan.co...@gmail.com wrote: Hello, I am a bit confused by

Re: [Puppet Users] Concat Module posted to Onyx Point Github.

2011-06-02 Thread James Turnbull
Greg Sutcliffe wrote: Hi again, After an hour or three of hacking, I've managed to add the insync? checks to both the build and fragment types. It's the first time I've ever really messed with types and providers, so it's very ugly (and probably has bugs), however I'm happy to share my

Re: [Puppet Users] uploading files via REST?

2011-06-02 Thread Razvan Cosma
Still, this doesn't seem to work in my test setup, i.e. apache as proxy in front of puppet. I get a ..timeout specified has expired: proxy: prefetch request body failed to 127.0.0.1:18140 in apache's log. GETs do work, just PUTs fail. Config is Listen 8140 Proxy balancer://puppetmaster

Re: [Puppet Users] ruby dsl manifests

2011-06-02 Thread Matthew Black
Thanks for the reply, from what you said it might be better for me to go about it in a different direction. On Thu, Jun 2, 2011 at 1:07 AM, Dan Bode d...@puppetlabs.com wrote: you should be able to do something like: call_function(:defined, 'Foo['bar']') just keep in mind that the defined

Re: [Puppet Users] Certificate problems

2011-06-02 Thread John Kennedy
Replies inline On Wed, Jun 1, 2011 at 17:55, Patrick kc7...@gmail.com wrote: On Jun 1, 2011, at 8:05 AM, John Kennedy wrote: I have several servers being hosted on Amazon Web Services. They have all been build from the same manifest so apart from the hostnames, IP, etc they are all

[Puppet Users] Package type: enable/disable repo vs options (#2247 vs #4113)

2011-06-02 Thread Jacob Helwig
We currently have to feature requests to add similar (or at least overlapping) functionality to the Package type. #2247[1] - enablerepo and disablerepo for yum type #4113[2] - Provide a generic options-style parameter for packages. It seems like having #4113 would remove the need for having

Re: [Puppet Users] Package type: enable/disable repo vs options (#2247 vs #4113)

2011-06-02 Thread Charles Johnson
+1 for #4113 Charles On Thu, Jun 2, 2011 at 12:16 PM, Jacob Helwig ja...@puppetlabs.com wrote: We currently have to feature requests to add similar (or at least overlapping) functionality to the Package type. #2247[1] - enablerepo and disablerepo for yum type #4113[2] - Provide a generic

[Puppet Users] Re: [Puppet-dev] Package type: enable/disable repo vs options (#2247 vs #4113)

2011-06-02 Thread Dominic Cleal
On 02/06/11 18:16, Jacob Helwig wrote: We currently have to feature requests to add similar (or at least overlapping) functionality to the Package type. #2247[1] - enablerepo and disablerepo for yum type #4113[2] - Provide a generic options-style parameter for packages. It seems like

Re: [Puppet Users] Package type: enable/disable repo vs options (#2247 vs #4113)

2011-06-02 Thread Nick Lewis
On Thursday, June 2, 2011 at 10:16 AM, Jacob Helwig wrote: We currently have to feature requests to add similar (or at least overlapping) functionality to the Package type. #2247[1] - enablerepo and disablerepo for yum type #4113[2] - Provide a generic options-style parameter for

[Puppet Users] Resources existing in different operating systems.

2011-06-02 Thread Douglas Garstang
So... I'm thinking about how to have puppet manage different operating systems. It's one thing to use a selector to determine the value of specific resources attribute, but what do you do when a file may not exist on a specific O/S? You can't use a selector in this case. I really don't like the

Re: [Puppet Users] Certificate problems

2011-06-02 Thread Nigel Kersten
On Thu, Jun 2, 2011 at 9:32 AM, John Kennedy skeb...@gmail.com wrote: What version of puppet is running on the clients? What version on the server? Client is 2.6.7 Server is 2.6.4 Although this may work, the only supported configuration is to have the server the same version as the

Re: [Puppet Users] Concat Module posted to Onyx Point Github.

2011-06-02 Thread Trevor Vaughan
Thanks for the patch set! Feel free to add a pull request on GitHub, that way I can also just pull into a branch. Trevor On Thu, Jun 2, 2011 at 11:25 AM, James Turnbull ja...@puppetlabs.com wrote: Greg Sutcliffe wrote: Hi again, After an hour or three of hacking, I've managed to add the

Re: [Puppet Users] Concat Module posted to Onyx Point Github.

2011-06-02 Thread Trevor Vaughan
Currently, the way that I'm preventing this is by bookending the concat_build with a file object. Basically: concat_build { 'foo': target = '/etc/foo' } file { '/etc/foo': checksum = md5, owner, mode, etc } something { 'bar': subscribe = File['/etc/foo'] } It's not elegant, but, in most

[Puppet Users] Server side filebucket issue

2011-06-02 Thread LawrieC
I am having issues with filebucket. I have looked through the puppet users google groups with similar issues but have not found a solution that works. I am trying to setup a central filebucket on the puppetmaster server. I am replacing the client's /etc/puppet/puppet.conf file with a

Re: [Puppet Users] Certificate problems

2011-06-02 Thread Patrick
On Jun 2, 2011, at 9:32 AM, John Kennedy wrote: Replies inline On Wed, Jun 1, 2011 at 17:55, Patrick kc7...@gmail.com wrote: On Jun 1, 2011, at 8:05 AM, John Kennedy wrote: I have several servers being hosted on Amazon Web Services. They have all been build from the same manifest so

[Puppet Users] Re: Resources existing in different operating systems.

2011-06-02 Thread Douglas Garstang
On Thu, Jun 2, 2011 at 12:36 PM, Douglas Garstang doug.garst...@gmail.comwrote: So... I'm thinking about how to have puppet manage different operating systems. It's one thing to use a selector to determine the value of specific resources attribute, but what do you do when a file may not exist