RE: [Puppet Users] Puppet ordering: ensure exported resource to beevaluated BEFORE classes

2018-01-08 Thread Matthew Kennedy
As far as I understand this is not really possible. This is because you don’t have control over the order of compilation of resources into the catalog. The compiler first evaluates all classes then moves on and eventually has a step that evaluates all collections and so on until the catalog is

Re: [Puppet Users] same hiera data across multiple profiles

2017-06-13 Thread Matthew Kennedy
As a general rule you shouldn't have multiple profiles pulling the same data from hiera. Treat profiles like lego blocks that you can compose as needed. In this case create a ssl_certs profile who's role is to pull in hieradata via standard parameters. This profile has the responsibility to get t

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-02 Thread Matthew Kennedy
You got it. Note that the arrow operators do exactly the same thing as the before and require metaparameters so you could have add one of those to one of the resources. Personally when a manifest has resources that are more serial or scripty I prefer the obvious expression adding a chain of ->'d re

Re: [Puppet Users] Order two calls of parameterized classes

2017-06-01 Thread Matthew Kennedy
Because puppet is declarative you can only have one instance of a resource with a particular title in the catalog. This means you cannot have two instances of a class in the catalog (though you can include a class multiple times but it only exists in the catalog once) Luckily you do not have two i

Re: [Puppet Users] r10K - Unable to understand the benefits of r10k dynamic environments..

2017-05-25 Thread Matthew Kennedy
There are several ways dynamic environments can be helpful here is one I've used to great effect. Have three primary branches production, staging and development. (or release, snapshot and master. The branches themselves don't matter) Ensure that all production nodes use the production, staging

Re: [Puppet Users] Over-engineering rant

2017-01-08 Thread Matthew Kennedy
IMHO, the changes made to the language in 4.x allows for better and more complete modeling of systems. Yes you have more 'things' to learn, the types/lookup systems for example but they are relatively simple to understand. Look at your ntp example, I image it was the specification of Types that loo

[Puppet Users] Unable to install r10k 1.5.1

2016-12-13 Thread Matthew Kennedy
I'm running OSS 3.8 using r10k 1.5.1 and ruby 1.9.3p551 (2014-11-13) [x86_64-linux] Brightbox Error from puppet run. Error: Could not update: Execution of '/usr/bin/gem install -v 1.5.1 --no-rdoc --no-ri r10k --no-ri --no-rdoc' returned 1: ERROR: Error installing r10k: fast_gettext requires R

Re: [Puppet Users] Possible to prevent submission to PuppetDB on certain runs

2015-07-16 Thread Matthew Kennedy
The problem is we want regular runs to submit storeconfigs, with special runs disabling certain functionality (via overridden facts). In our case our application orchestration module uses exported resources and resource collection heavily. Having our puppet masters submit a catalog to puppetdb

[Puppet Users] Possible to prevent submission to PuppetDB on certain runs

2015-07-10 Thread Matthew Kennedy
I have the need to run puppet in a 'stripped down' state, essentially turning off a large portion of an orchestration module. The problem occurs when puppetdb receives a catalog that does not have any of the exported resources that the orchestration module would generate. This obviously wreak

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Matthew Kennedy
Gosh sorry, would be something like existant_class. On Wednesday, January 7, 2015 12:28:09 PM UTC-7, Felix.Frank wrote: > > On 01/07/2015 08:18 PM, Matthew Kennedy wrote: > > So changing this to: > > if ($profile == 'existantclass') { > include &q

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Matthew Kennedy
ad a rocky but ultimately agreeable relationship. On Tuesday, January 6, 2015 4:49:04 PM UTC-7, Felix.Frank wrote: > > On 12/30/2014 09:05 PM, Matthew Kennedy wrote: > > > if (defined("profile::${separator}::${profile}")) { > include "profile::${separat

[Puppet Users] Re: Trouble with class with _ in name

2014-12-30 Thread Matthew Kennedy
Submitted issue https://tickets.puppetlabs.com/browse/PUP-3799 On Tuesday, December 30, 2014 10:35:01 AM UTC-7, Matthew Kennedy wrote: > > I have code that pulls in profiles. > > if (defined("profile::${separator}::${profile}")) { > include "pr

[Puppet Users] Re: Trouble with class with _ in name

2014-12-30 Thread Matthew Kennedy
Well, I did a downgrade to 3.7.2 and this issue no longer appears. It appears there is a regression on 3.7.3. I'll submit a bug. On Tuesday, December 30, 2014 10:35:01 AM UTC-7, Matthew Kennedy wrote: > > I have code that pulls in profiles. > > if (defined("profile::$

[Puppet Users] Trouble with class with _ in name

2014-12-30 Thread Matthew Kennedy
I have code that pulls in profiles. if (defined("profile::${separator}::${profile}")) { include "profile::${separator}::${profile}" } $separator will be something like 'app' or 'role' $profile will be something like 'blah' or 'blah_app' The profile classes looks like class profile

[Puppet Users] Issue setting class parameter based on another class parameter (same class)

2014-04-22 Thread Matthew Kennedy
I have a class parameterized class that looks similar to... class blahapp::app ( $sor_host_ip = hiera('blahapp::app::sor_host_ip'), $rep_host_ip = hiera('blahapp::app::rep_host_ip', $sor_host_ip) ) { if !($rep_host_ip) { fail("Unable to set rep_host_ip. sor_host_

Re: [Puppet Users] Hiera, version control & encrypted backends

2014-04-13 Thread Matthew Kennedy
We use hiera-eyaml... This let's us selectively encrypt keys (passwords) and let everything else remain plaintext. We use git and have very little concern as long as we keep our private key secure. We also publish our public key so others can encrypt sensitive data themselves. Because we have sev

Re: [Puppet Users] Re: runinterval - is it seconds or minutes? Docs are incomplete!

2013-05-28 Thread Matthew Kennedy
It is there, just where Eric said it was. No need to get upset. It might be helpful to mention where the time notation format can be found in the sections where it is used. Would preempt issues like this in the future. Matt On May 28, 2013 1:46 PM, "Tim Schaefer" wrote: > Item 175: runinterval

Re: [Puppet Users] apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-25 Thread Matthew Kennedy
Why are there two separate repos, especially when you are unable to install a package from main without the other? On May 25, 2013 11:52 AM, "Arnaud Gomes-do-Vale" wrote: > Eric Sorenson writes: > > > We'll do a better job in the future of > > (a) pointing out the necessity of the dependencies r

Re: [Puppet Users] Re: apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-23 Thread Matthew Kennedy
ies: > puppet : Depends: puppet-common (= 3.2.1-1puppetlabs1) but it is not going > to be installed > E: Unable to correct problems, you have held broken packages. > at /tmp/vagrant-puppet/modules-0/puppet/manifests/init.pp:39 > > > Chris > > On Wednesday, 22 May 2013 22:53

[Puppet Users] Re: Announce: Puppet 3.2.1 Available

2013-05-22 Thread Matthew Kennedy
It seems that the puppetlabs apt repository is broken with the release of these packages. When trying to install puppetmaster-passenger I now get this was working 2 hours ago. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are u

[Puppet Users] apt repository appears to have dependency issue with latest release (3.2.1)

2013-05-22 Thread Matthew Kennedy
When trying to install puppetmaster-passenger from puppetlabs apt repo I get... was working 2ish hours ago (before the 3.2 release) Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required