Re: [Puppet-dev] Environment name transformation before it hits puppet

2015-05-04 Thread James Turnbull
Maksym Melnychok wrote: > from what i can gather r10k suffers from the same problem: > > https://github.com/puppetlabs/r10k/blob/master/doc/dynamic-environments/git-environments.mkd#invalid_branches > > what i need is to be able to tell puppet (either in command line or > config) that > environme

Re: [Puppet-dev] Environment name transformation before it hits puppet

2015-05-04 Thread Maksym Melnychok
from what i can gather r10k suffers from the same problem: https://github.com/puppetlabs/r10k/blob/master/doc/dynamic-environments/git-environments.mkd#invalid_branches what i need is to be able to tell puppet (either in command line or config) that environment value is "some/git/branch" while p

Re: [Puppet-dev] Environment name transformation before it hits puppet

2015-05-04 Thread James Turnbull
Maksym Melnychok wrote: > Hello, > > I'm looking for a place in puppet code where i can modify environment name > after it's been read from command line args or puppet.conf but before it > hits > any puppet's internal machinery. Perhaps r10k might help? https://github.com/puppetlabs/r10k/blob/ma

[Puppet-dev] Environment name transformation before it hits puppet

2015-05-04 Thread Maksym Melnychok
Hello, I'm looking for a place in puppet code where i can modify environment name after it's been read from command line args or puppet.conf but before it hits any puppet's internal machinery. Use case: our directory environments are coming from git branches named in a certain pattern, and that

Re: [Puppet-dev] Re: Unit testing v4 functions in modules

2015-05-04 Thread Erik Dalén
On Thu, 30 Apr 2015 at 18:10 Joshua Hoblitt wrote: > The core v4 function unit tests appear to be using Puppet::Pops::Loaders > to find the function method. E.g. > > Puppet.lookup(:loaders).puppet_system_loader.load(:function, > 'regsubst').call({}, *args) > > From: > > > https://github.com/

Re: [Puppet-dev] Re: Unit testing v4 functions in modules

2015-05-04 Thread Erik Dalén
On Fri, 1 May 2015 at 00:55 Henrik Lindberg wrote: > On 2015-30-04 18:10, Joshua Hoblitt wrote: > > The core v4 function unit tests appear to be using Puppet::Pops::Loaders > > to find the function method. E.g. > > > > Puppet.lookup(:loaders).puppet_system_loader.load(:function, > > 'regsub