[Puppet Users] Quoting keys in hiera lookups

2015-06-25 Thread Daniel Urist
Is there any way to quote keys in hiera lookups so hiera doesn't interpret periods as further lookups? For example, if I have yaml that looks like this: myservertype: host1.domain: somekey: somevalue host2.domain: somekey.somevalue The periods in the keys host1.domain and

Re: [Puppet Users] Re: Announce: Puppet Agent 1.2, Facter 3, Puppet 4.2, Hiera 3

2015-06-29 Thread Daniel Urist
Are there up-to-date instructions for how to install from the apt repos for jessie? On Fri, Jun 26, 2015 at 12:13 PM, Eric Sorenson eric.soren...@puppetlabs.com wrote: Last night we rolled a patch release which includes a fix for FACT-1055, a regression which inadvertently broke backward

Re: [Puppet Users] Announce: PuppetDB 2.3.8 has been released!

2015-10-20 Thread Daniel Urist
Is there any update on when puppetdb will be available for Debian 8 (jessie)? Puppetserver is now available according to the announcement for v.2.1.2. On Wed, Oct 14, 2015 at 4:34 PM, Wyatt Alt wrote: > PuppetDB 2.3.8 October 14, 2015 > > PuppetDB 2.3.8 Downloads > >

[Puppet Users] Avoiding duplicate exported resource

2016-03-03 Thread Daniel Urist
I've created a module to configure a caching nginx proxy. I am running several of these proxies behind a load balancer. They all proxy the same external address. I'd like to export a nagios host/service for monitoring the external address, which will then be collected on my nagios server. The

Re: [Puppet Users] Avoiding duplicate exported resource

2016-03-07 Thread Daniel Urist
I've managed to solve this with query_resources() from puppedbquery to generate an array of the resources and ensure_resource() to only create a single instance. That seems to be the cleanest way at the moment to handle this. On Mon, Mar 7, 2016 at 9:25 AM, Ken Barber wrote:

Re: [Puppet Users] Logrotate module broken, string 'undef' now treated as undef

2016-05-19 Thread Daniel Urist
ppet are you seeing this on? > > On Wed, May 18, 2016 at 2:33 PM, Daniel Urist <dur...@ucar.edu> wrote: > >> I have been using the yo61 logrotate module from puppetforge ( >> https://forge.puppet.com/yo61/logrotate), which seems to be the most >> popular, but it rec

Re: [Puppet Users] Re: Logrotate module broken, string 'undef' now treated as undef

2016-05-20 Thread Daniel Urist
t reproducing it today. > Did you only see it with puppet runs against a master, or also with local > puppet apply? > > On Fri, May 20, 2016 at 8:20 AM, Daniel Urist <dur...@ucar.edu> wrote: > >> I filed a bug: https://tickets.puppetlabs.com/browse/SERVER-1356 >

[Puppet Users] Logrotate module broken, string 'undef' now treated as undef

2016-05-18 Thread Daniel Urist
I have been using the yo61 logrotate module from puppetforge ( https://forge.puppet.com/yo61/logrotate), which seems to be the most popular, but it recently stopped working, with many errors about undefined parameters. The issue seems to be the use of the string 'undef' as a default value; for

Re: [Puppet Users] Re: Logrotate module broken, string 'undef' now treated as undef

2016-05-20 Thread Daniel Urist
I filed a bug: https://tickets.puppetlabs.com/browse/SERVER-1356 On Fri, May 20, 2016 at 6:41 AM, JeremyCampbell wrote: > I can confirm the same issue on Puppetserver v2.4.0 > > -- > You received this message because you are subscribed to the Google Groups > "Puppet

Re: [Puppet Users] Logrotate module broken, string 'undef' now treated as undef

2016-05-19 Thread Daniel Urist
VAR2: VAR3: VAR4: 'undef' VAR5: "undef" On Thu, May 19, 2016 at 8:30 AM, Daniel Urist <dur...@ucar.edu> wrote: > puppetserver: 2.3.2-1puppetlabs1 > puppet client: 3.8.5-2~bpo8+1 > > Both server and clients are running Debian 8 (jessie); the puppet client > is from the Deb

[Puppet Users] hiera_hash, lookup, Hiera 5

2017-02-10 Thread Daniel Urist
I have been using ":merge_behavior: deeper" in my hiera.yaml file to turn on deep hash merges with hiera_hash, but now this appears to be broken. The latest docs (at https://docs.puppet.com/puppet/4.9/lookup_quick.html) suggest using the lookup() function, but then state this: IMPORTANT: These

[Puppet Users] hiera deep hash merges broken

2017-02-14 Thread Daniel Urist
To get deep hash merges in hiera, I have been using the following in my hiera.yaml: > --- > :merge_behavior: deeper > :backends: > - eyaml And in one of my classes, a call to hiera_hash() like this: $if_merged = hiera_hash('profiles::pserver::interfaces') However, with puppetserver

[Puppet Users] Re: hiera deep hash merges broken

2017-02-14 Thread Daniel Urist
Just found this issue, which seems to describe what's going on: https://github.com/TomPoulton/hiera-eyaml/issues/222 So eyaml is broken wrt hash merges? Are there any workarounds available? On Tue, Feb 14, 2017 at 12:35 PM, Daniel Urist <dur...@ucar.edu> wrote: > To get deep ha

Re: [Puppet Users] Re: hiera deep hash merges broken

2017-02-16 Thread Daniel Urist
It turns out my issue was caused by eyaml no longer supporting deep hash merges. I've worked around my issue by separating out plain yaml and eyaml. Fortunately none of my existing code does a deep hash merge on the eyaml keys. It would be great to get some reassurance that eyaml will continue to

[Puppet Users] logrotate and puppetserver debian package

2016-09-13 Thread Daniel Urist
The release notes for puppetserver state the following ( https://docs.puppet.com/puppetserver/latest/release_notes.html): Debian upgrade note: On Debian-based Linux distributions, logrotate will > continue to attempt to manage your Puppet Server log files until > /etc/logrotate.d/puppetserver is

[Puppet Users] hiera_include failing with undefined method "cached_file_data"

2017-03-13 Thread Daniel Urist
So, this just started happening on all my nodes following upgrade to puppet-agent 1.9.3-1jessie on my puppet master: root@nweb8:/# puppet agent -t > Info: Retrieving pluginfacts > Info: Retrieving plugin > Info: Loading facts > Error: Could not retrieve catalog from remote server: Error 500 on

[Puppet Users] Re: hiera_include failing with undefined method "cached_file_data"

2017-03-13 Thread Daniel Urist
I've tried replacing the call to hiera_include() with a call to include() like this (per https://docs.puppet.com/puppet/latest/function.html#hierainclude) , but that results in the same error: include( lookup("roles::${role}", {'merge' => 'unique' }) ) On Mon, Mar 13, 2017 at 10:

[Puppet Users] Re: hiera_include failing with undefined method "cached_file_data"

2017-03-13 Thread Daniel Urist
Fixed by restarting puppetserver per https://tickets.puppetlabs.com/browse/PUP-7337 It looks like the debian packages are missing a restart trigger: https://tickets.puppetlabs.com/browse/PA-681 On Mon, Mar 13, 2017 at 11:10 AM, Daniel Urist <dur...@ucar.edu> wrote: > I've tried

[Puppet Users] Force custom service provider to never be default

2017-06-06 Thread Daniel Urist
I've written a simple custom service provider for monit that inherits from the debian provider. Since this is running on debian systems, I want to use the debian "enable" to enable/disable running at boot, but I want monit to manage the running service rather than puppet.

[Puppet Users] ERB variable scope

2017-10-06 Thread Daniel Urist
I've noticed in classes with multiple templates that ERB variables seem to share a single scope. That caught me by surprise-- is that intended behavior? Here's a simple test case: class erb_scope_test ( ) { $myarr1 = [ 'one' ] $myarr2 = [ 'two' ] $str1 = inline_template("<%=

Re: [Puppet Users] ERB variable scope

2017-10-09 Thread Daniel Urist
gt; On 06/10/17 11:28, Daniel Urist wrote: > >> I've noticed in classes with multiple templates that ERB variables seem >> to share a single scope. That caught me by surprise-- is that intended >> behavior? >> >> > Intended or not - that is the behavior, and this

Re: [Puppet Users] One master per environment, or one to rule them all?

2017-10-12 Thread Daniel Urist
Option (2) allows you to test upgrades to the puppet infrastructure itself, which changes not infrequently. On Wed, Oct 11, 2017 at 3:15 PM, Antony Gelberg wrote: > I've asked a similar question on the Terraform mailing-list but on > reflection, I think it's more