[Puppet Users] hiera-mysql working with hiera cli but not through puppet agent

2014-08-08 Thread Daniel Kinon
Hello, I'm running opensource hiera 1.3.4 and puppet 3.6.2. I'm attempting to use hiera-yaml and hiera-mysql backends at the same time. When I run hiera on the command line I retrieve the values I expected from both yaml and mysql but when an agent checks in (daemon or manual), it isn't

[Puppet Users] reduce function doesn't return results from single iteration

2019-02-09 Thread Daniel Kinon
Hello, I'm attempting to use the reduce function(https://puppet.com/docs/puppet/6.2/function.html#reduce) to consolidate hiera facts into data structures I can use with puppet resources. I've run into an issue that I'm not sure how to solve. When the data passed to the reduce function res

Re: [Puppet Users] reduce function doesn't return results from single iteration

2019-02-09 Thread Daniel Kinon
$result + $group > } else { > $result > } > } > > Hope this helps. > - Steve > > >> On Sat, Feb 9, 2019 at 12:52 PM Daniel Kinon wrote: >> Hello, >> I'm attempting to use the reduce >> function(https://puppet.com

[Puppet Users] puppetserver6 and hiera-eyaml-gpg

2019-02-16 Thread Daniel Kinon
Hello, I'm running puppetserver 6.2.0 with hiera-eyaml-gpg but can't seem to get past the following error when I perform a lookup for an encrypted block during a puppet agent run: ~~~ Error: Could not run: cannot load such file -- hiera/backend/eyaml/encryptors/gpg ~~~ Here is the full gem

Re: [Puppet Users] puppetserver6 and hiera-eyaml-gpg

2019-02-19 Thread Daniel Kinon
eed to install hiera-eyaml via > /opt/puppetlabs/puppet/bin/gem. Puppetserver only install gem for jruby > > On Sat, Feb 16, 2019 at 23:00 Daniel Kinon wrote: > >> Hello, >> I'm running puppetserver 6.2.0 with hiera-eyaml-gpg but can't seem to >> ge

[Puppet Users] Help with Multiple Resource Declarations

2019-05-03 Thread Daniel Kinon
Hello Everyone, So I'm trying to create templates for system users. Here is my systemusers class: ~~~ class base::systemusers ( $username = $title, $home = "/var/lib/$username", ) { $systemusers = lookup({ name => 'base::systemusers' }) user { $username: ensure => present

Re: [Puppet Users] Help with Multiple Resource Declarations

2019-05-04 Thread Daniel Kinon
You can > find more information about defined types here: > https://puppet.com/docs/puppet/6.4/lang_defined_types.html > > The syntax to declare the defined type would change slightly. It should > look like this: > base::systemusers { $username: } > > Let me know if you h