- Original Message -
> From: "R.I.Pienaar"
> To: puppet-dev@googlegroups.com
> Sent: Wednesday, October 24, 2012 6:26:27 PM
> Subject: Re: [Puppet-dev] runmode
>
>
>
> - Original Message -
> > From: "Andy Parker"
>
- Original Message -
> From: "Andy Parker"
> To: puppet-dev@googlegroups.com
> Sent: Wednesday, October 24, 2012 5:53:42 PM
> Subject: Re: [Puppet-dev] runmode
>
> On Tue, Oct 23, 2012 at 3:04 PM, R.I.Pienaar wrote:
> >
> >$puppet_applicat
On Tue, Oct 23, 2012 at 3:04 PM, R.I.Pienaar wrote:
>
>$puppet_application_name = :agent
>require 'puppet'
>$puppet_application_mode = Puppet::Util::RunMode[:agent]
>
>Puppet.settings.use :main, :agent
>Puppet.parse_config
>
> works, but if I set the application name after the
- Original Message -
>
> no seems I am still missing something:
>
>$puppet_application_mode = Puppet::Util::RunMode[:agent]
>$puppet_application_name = :agent
>
>Puppet.settings.use :main, :agent
>Puppet.parse_config
>
>p Puppet[:classfile]
>p Puppet[:pidfile]
- Original Message -
> From: "R.I.Pienaar"
> To: puppet-dev@googlegroups.com
> Sent: Monday, October 22, 2012 10:55:24 PM
> Subject: Re: [Puppet-dev] runmode
>
>
>
> - Original Message -
> > From: "R.I.Pienaar"
> > To:
- Original Message -
> From: "Jeff McCune"
> To: puppet-dev@googlegroups.com
> Sent: Monday, October 22, 2012 11:12:19 PM
> Subject: Re: [Puppet-dev] runmode
>
> On Mon, Oct 22, 2012 at 2:55 PM, R.I.Pienaar < r...@devco.net > wrote:
>
>
&g
On Mon, Oct 22, 2012 at 2:55 PM, R.I.Pienaar wrote:
>
> for 2.7 it seems this is the magic:
>
>require 'puppet'
>$puppet_application_mode = Puppet::Util::RunMode[:agent]
>Puppet.settings.use :main, :agent
>Puppet.parse_config
>
> have to say I am surprised about the global variabl
- Original Message -
> From: "R.I.Pienaar"
> To: puppet-dev@googlegroups.com
> Sent: Monday, October 22, 2012 10:00:40 PM
> Subject: Re: [Puppet-dev] runmode
>
>
>
> - Original Message -
> > From: "Andy Parker"
> > To:
- Original Message -
> From: "Andy Parker"
> To: puppet-dev@googlegroups.com
> Sent: Monday, October 22, 2012 7:57:36 PM
> Subject: Re: [Puppet-dev] runmode
>
> On Mon, Oct 22, 2012 at 11:03 AM, Brice Figureau
> wrote:
> > On 22/10/12 19:25, R.I.P
On Mon, Oct 22, 2012 at 12:27 PM, Andy Parker wrote:
> On Mon, Oct 22, 2012 at 12:05 PM, Chris Price
> wrote:
>
> Out of curiosity, why wasn't run_mode a parameter that was passed to
> initialize_settings?
>
At the time, I think I was assuming that anyone who was trying to use
puppet as library
On Mon, Oct 22, 2012 at 12:05 PM, Chris Price wrote:
> My intention when I was last working on this stuff was that you could simply
> call "Puppet.initialize_settings" (perhaps after calling Puppet.run_mode=),
> and that the rest
> of the ugly internal stuff (initialize_application_defaults, etc.)
My intention when I was last working on this stuff was that you could
simply call "Puppet.initialize_settings" (perhaps after calling
Puppet.run_mode=), and that the rest
of the ugly internal stuff (initialize_application_defaults, etc.) would be
abstracted away.
However, I'm not entirely sure whe
On Mon, Oct 22, 2012 at 11:03 AM, Brice Figureau
wrote:
> On 22/10/12 19:25, R.I.Pienaar wrote:
>> hello,
>>
>> I need to get Puppet to read its config file and specifically use the
>> settings like an agent would.
>>
>> I need this for 2.7 and 3.0
>>
>> In trying to figure this out for 3.0 I have
On 22/10/12 19:25, R.I.Pienaar wrote:
> hello,
>
> I need to get Puppet to read its config file and specifically use the
> settings like an agent would.
>
> I need this for 2.7 and 3.0
>
> In trying to figure this out for 3.0 I have the following:
>
>require 'puppet'
>require 'puppet/ut
hello,
I need to get Puppet to read its config file and specifically use the
settings like an agent would.
I need this for 2.7 and 3.0
In trying to figure this out for 3.0 I have the following:
require 'puppet'
require 'puppet/util/run_mode'
Puppet.settings.preferred_run_mode = :agent
15 matches
Mail list logo