[Puppet Users] Facts distributed via module missing when Puppet is run out of a cron job

2013-09-25 Thread Chadwick Banning
Hi all, I have the following fact to get the full path of the Puppet executable being distributed via a module: Facter.add("puppet_executable") do > setcode do > Facter::Util::Resolution.exec('/usr/bin/which puppet') > end > end > This fact is used to set the command attribute of the cr

[Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-20 Thread Chadwick Banning
This is an issue I run into pretty regularly. If your Puppet infrastructure is even moderately complex, I'd recommend NOT equating a Puppet environment to an operational environment, operational environment being the groups of machines known as dev, qa, staging, etc. For instance, in my infrast

Re: [Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-20 Thread Chadwick Banning
don't think this is currently possible? On Aug 20, 2016 12:20 PM, "Christopher Wood" wrote: Lots about hiera data in this thread, how about modules? Having a common environment for the common modules and using basemodulepath helps some, but it's not everything. On Sat, Aug 20

Re: [Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-20 Thread Chadwick Banning
t multiple times, the last being very recent. On Saturday, August 20, 2016 at 6:39:03 PM UTC-4, Alex Samad wrote: > > On 20 August 2016 at 22:50, Chadwick Banning > wrote: > > This is an issue I run into pretty regularly. If your Puppet > infrastructure > > is even mod

Re: [Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-20 Thread Chadwick Banning
, August 20, 2016 at 9:04:34 PM UTC-4, Chadwick Banning wrote: > > As Rob Nelson mentioned above, you can differentiate between operational > environments in Hiera as long as you have the appropriate facts available. > > If you differentiate Puppet environments and operational e

Re: [Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-22 Thread Chadwick Banning
n Sun, Aug 21, 2016 at 11:20 PM, Alex Samad wrote: > On 21 August 2016 at 11:04, Chadwick Banning > wrote: > > As Rob Nelson mentioned above, you can differentiate between operational > > environments in Hiera as long as you have the appropriate facts > available. >

Re: [Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-22 Thread Chadwick Banning
urce of truth, greatly limits the number of variables in play at >> any given time and streamlines your pipeline. >> >> I would recommend a book on Continuous Integration and/or Continuous >> Delivery as these are subjects far too deep and wide to properly cover here >>

[Puppet Users] Re: Using a module that is not 100% hiera-compliant

2016-10-19 Thread Chadwick Banning
I looked at the PR (https://github.com/camptocamp/puppet-postfix/pull/50) to add "Hiera support" and it appears that it just add some parameters that take hashes that are used to auto-generate instances of defined types. I wouldn't call this "Hiera support", I'd just call it "convenience parame

[Puppet Users] Re: Using a module that is not 100% hiera-compliant

2016-10-20 Thread Chadwick Banning
x27;ll definitely look a it soon, but can you explain what the lines do? > > What would key_name be? > > Thanks! > > On Wednesday, October 19, 2016 at 8:01:34 AM UTC-4, Chadwick Banning wrote: >> >> I looked at the PR (https://github.com/camptocamp/puppet-postfix/pull/

Re: [Puppet Users] changing content of config file through puppet

2016-10-25 Thread Chadwick Banning
Hi Nidhi, I think Rob was referring to https://github.com/openstack/puppet-cinder/blob/master/manifests/backend/solidfire.pp. This appears to be what is changing the config using a custom cinder_config type. You can see the provider code that is updating the config at https://github.com/ope

Re: [Puppet Users] Re: Specifying dependency ordering inside of lambda functions

2017-02-21 Thread Chadwick Banning
> > Autorequires: If Puppet is managing the user’s primary group (as provided > in the gid attribute) or any group listed in the groups attribute then the > user resource will autorequire that group. If Puppet is managing any role > accounts corresponding to the user’s roles, the user resource

[Puppet Users] Re: New Deferred type and agent data lookups in Puppet 6

2018-08-31 Thread Chadwick Banning
Would it be safe to consider this in a general context i.e. as enabling agent-side function execution? On Thursday, August 30, 2018 at 8:11:52 PM UTC-4, Lindsey Smith wrote: > > Hi all, > > We wanted to let you know about an upcoming capability, the Deferred type, > that is now present in Puppet

Re: [Puppet Users] Re: New Deferred type and agent data lookups in Puppet 6

2018-08-31 Thread Chadwick Banning
extract a value from a file agent-side? On Fri, Aug 31, 2018 at 9:12 AM R.I.Pienaar wrote: > > > On Fri, 31 Aug 2018, at 15:03, Chadwick Banning wrote: > > Would it be safe to consider this in a general context i.e. as enabling > > agent-side function execution? > > I

Re: [Puppet Users] Re: New Deferred type and agent data lookups in Puppet 6

2018-08-31 Thread Chadwick Banning
8 16:41:34 UTC+1, Chadwick Banning wrote: >> >> So for this example, there are some sort of limitations as to what the >> 'vault_lookup' function is able to do internally? I had just assumed that >> as long as the function returned a simple value, what the function does

[Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-16 Thread Chadwick Banning
You should be able to also set them using https://forge.puppet.com/puppetlabs/postgresql#postgresql_conf. On Tuesday, October 16, 2018 at 4:54:13 AM UTC-4, comport3 wrote: > > Hi All, > > We are integrating a new PuppetDB role, and note that there are some key > tuning parameters we'd like to mo

[Puppet Users] Re: Puppet 6 client lookup secret from Hashicorp Vault

2019-02-01 Thread Chadwick Banning
If using a different Vault auth method is an option, you could use the AppRole method and define a role and policies in Vault. The Puppet agent then authenticates under a specific role (and instance of that role) that is governed by the policy. On Tuesday, October 9, 2018 at 8:12:39 AM UTC-4, c

[Puppet Users] Re: Roles and profiles dissent

2019-08-24 Thread Chadwick Banning
> > Since reading the reasoning here I've continued to think about this off > and on and still have a hard time with the idea of hard-coding > configuration. It seems like a bit of a paradox within puppet. When > writing modules it is generally accepted to separate any configuration data > f