On Thu, Sep 4, 2014 at 1:14 PM, Andy Parker wrote:
> On Thu, Sep 4, 2014 at 1:05 PM, Joshua Partlow <
> joshua.part...@puppetlabs.com> wrote:
>
>> On Thu, Sep 4, 2014 at 12:34 PM, Nan Liu wrote:
>>
>>> Yes, I'm looking for the environment specific modulepath.
>>>
>>> Maybe this is a more complet
On Thu, Sep 4, 2014 at 1:05 PM, Joshua Partlow <
joshua.part...@puppetlabs.com> wrote:
> On Thu, Sep 4, 2014 at 12:34 PM, Nan Liu wrote:
>
>> Yes, I'm looking for the environment specific modulepath.
>>
>> Maybe this is a more complete example:
>> example = Puppet::Module.find('example', Puppet[
On Thu, Sep 4, 2014 at 12:34 PM, Nan Liu wrote:
> Yes, I'm looking for the environment specific modulepath.
>
> Maybe this is a more complete example:
> example = Puppet::Module.find('example', Puppet[:environment].to_s)
> raise(LoadError, "Unable to find example module in modulepath
> #{Puppet[
Yes, I'm looking for the environment specific modulepath.
Maybe this is a more complete example:
example = Puppet::Module.find('example', Puppet[:environment].to_s)
raise(LoadError, "Unable to find example module in modulepath
#{Puppet[:modulepath]}") unless example
YAML.load_file(File.join(exampl
Hi Nan,
The modulepath is really only meaningful from an actual environment
instance. What code are you writing? You'll probably want to lookup the
current environment or make use of the environment instance available in
your local context (if there is one).
On Thu, Sep 4, 2014 at 10:08 AM, Tr
I think it's Puppet[:basemodulepath] but this needs to be combined with
your environment path search.
Trevor
On Thu, Sep 4, 2014 at 1:03 PM, Nan Liu wrote:
> I have some code that's doing module searching in the module path:
>
> example = Puppet::Module.find('example', Puppet[:environment].to_
I have some code that's doing module searching in the module path:
example = Puppet::Module.find('example', Puppet[:environment].to_s)
raise(LoadError, "Unable to find example module in modulepath
#{Puppet[:modulepath]}") unless example
In Puppet 3.6, the second line is triggering a the follow