Re: [Puppet Users] How to organizing puppet code on the master

2018-05-16 Thread Andrew Grimberg
I know some folks think this is heresy, but I personally dislike defining each node in the default manifest. I think it's better to drive as much data as possible from hiera as possible, as such I do it more like this. I define a node definition that does a hiera lookup to determine what role to

Re: [Puppet Users] Install modules from puppet forge at runtime

2017-08-16 Thread Andrew Grimberg
On 08/15/2017 11:45 PM, Rakshatha shetty wrote: > I have a query on the usage of modules present in Puppet Forge. > > When puppet agent -t command is run in puppet agent machine, if the > specified module is not present in Puppet master server will puppet > agent or master connect to puppet forge

Re: [Puppet Users] Automated PuppetDB/PostgreSQL install?

2017-07-24 Thread Andrew Grimberg
On 07/22/2017 09:50 AM, Keith Miller wrote: > Hey guys, new to Puppet and looking for some help. Some facts first: > > * Using Ubuntu 16.04 > * Cluster will be of about 60-80 nodes > * Building the infrastructure with Terraform > * Have Puppet Server and Puppet Agents installing through

Re: [Puppet Users] hiera_hash string key variable

2017-06-27 Thread Andrew Grimberg
Greetings João, Do you have it inside double or single quotes? If it's in single quotes, like your example, then it's only going to be literal. To get interpolation you've got to use double quotes like Henrik had. -Andy- On 06/27/2017 08:26 AM, João Matos wrote: > Doesnt work. ${variable} is

Fwd: Re: [Puppet Users] Location of config files in roles/profiles pattern

2017-06-19 Thread Andrew Grimberg
Forwarded Message Subject: Re: [Puppet Users] Location of config files in roles/profiles pattern Date: Mon, 19 Jun 2017 08:46:14 +0200 From: Angel L. Mateo Reply-To: puppet-users@googlegroups.com To: puppet-users@googlegroups.com > > I do something similar by

Re: [Puppet Users] Manage delivery and execution of RPMs not in YUM

2017-03-02 Thread Andrew Grimberg
Repositories should _never_ contain binary objects. The only exception I ever allow my developers is graphical assets related to websites. On 03/02/2017 08:48 AM, warron.french wrote: > Garrett, thanks. > > So, to clarify for myself in terms of a BEST practice are you declaring > "don't deliver

Re: [Puppet Users] rabbitMQ puppet module - deploy ssl certificate

2017-02-10 Thread Andrew Grimberg
On 02/10/2017 03:26 AM, Romgo wrote: > Hello, > > I am using the rabbitmq puppet module from > https://forge.puppet.com/puppetlabs/rabbitmq/readme > > I want to enable the ssl configuration for the management port. > So the declaration is like this : > > ssl_key=>

Re: [Puppet Users] profiles/hiera, defalults and defined

2016-11-03 Thread Andrew Grimberg
Sounds like you could use a little code-review process (such as Gerrit) managing the hiera repo. That coupled with something like hiera-eyaml-gpg (or similar) would allow you to have your junior admins submit changes for review allowing such hiera configs to be worked on by multiple parties and

Re: [Puppet Users] Spec testing and dalen-puppetdbquery

2016-11-01 Thread Andrew Grimberg
On 11/01/2016 02:25 PM, Garrett Honeycutt wrote: > On 11/1/16 4:03 PM, Peter Berghold wrote: >> I have a module that I am writing spec tests for that uses the Puppet >> Forge module cited in the subject line to query for a list of nodes >> fitting a particular criteria. When I run the spec test

Re: [Puppet Users] Problem upgrading to puppetserver 2.5.0 and exported resources

2016-09-07 Thread Andrew Grimberg
On 09/07/2016 05:19 AM, Angel L. Mateo wrote: > Hello, > > I am upgrading my puppetservers (ubuntu 14.04) from 2.4.0 to 2.5.0. > Upgrading process it's fine, but after it whenever I connect a node > (puppet-agent 1.5.3 or puppet-agent 1.6.2) I'm having a lot of messages > about creating

Re: [Puppet Users] Re: hiera-eyaml not decrypting?

2016-07-08 Thread Andrew Grimberg
Our team completely dropped the yaml backend as we always ended up with weird issues of hiera not always finding the yaml. Doesn't matter if we don't actually have anything encrypted in the eyaml file, all files for us are eyaml now. -Andy- On 07/08/2016 10:37 AM, dkoleary wrote: > I'll be

Re: [Puppet Users] encrypting hiera data?

2016-07-08 Thread Andrew Grimberg
On 07/08/2016 06:29 AM, dkoleary wrote: > Hey; > > I've come to the point where I need to encrypt a password in hiera data. > After trying (and failing) the recipe in the puppet cookbook, I hit the > google searches and very quickly came across hiera eyaml. > > So, short question: is

Re: [Puppet Users] Re-issuing agent certs from a newer Puppet Master

2016-06-01 Thread Andrew Grimberg
On 06/01/2016 09:39 AM, warron.french wrote: > Hello again, > I have a a few Puppet Agents on to which I installed the > puppet-agent software from my first Puppetmaster1, however, something > happened and I had to rebuild that server - for labelling purposes I am > (in this email) calling it

Re: [Puppet Users] New module classes not showing in cosole

2016-05-10 Thread Andrew Grimberg
On 05/10/2016 08:25 AM, Ali wrote: > thanks for quick reply. > > Problem is its not showing in enterprise console under classification - > node group - classes - add new class drop down list . > > Not sure if I am missing some configuration or need to add new module to > somewhere else so it can

Re: [Puppet Users] New module classes not showing in cosole

2016-05-10 Thread Andrew Grimberg
On 05/10/2016 07:43 AM, Ali wrote: > Hi , > > My new test module critical_policy class in not showing in console . I > restarted all pe-services , rebooted node but no luck . Any help will be > appreciated . > > # puppet --version > 4.4.1 > > # puppet module list >

Re: [Puppet Users] Re: Upgrading Puppet from 2.7 to 4

2016-05-09 Thread Andrew Grimberg
on/migration. > Ramin K: OS of the Master is Debian Wheezy. Have you actually done the > upgrade? > Andrew Grimberg: This approach in fact sounds as if its the best way, > considering also what Henrik says below about new > versions/modules/tooling/practices. But it sounds like

Re: [Puppet Users] Upgrading Puppet from 2.7 to 4

2016-05-06 Thread Andrew Grimberg
On 05/06/2016 06:59 AM, Martin Alfke wrote: > Hi Chris, > > On 06 May 2016, at 15:46, christg76 wrote: > >> Hi, I'm fairly new to Puppet and have been given the project of >> upgrading an existing Puppet 2.7 site (Puppetmaster with >> Apache/Passenger, and MySQL for

Re: [Puppet Users] python on puppet

2016-04-22 Thread Andrew Grimberg
Bapi, I would go with Rob's suggestion here as well. I can definitely attest to stankevich/python being a good module as I use it extensively. Here's a code snippet that would do what you want using that module: --[cut]-- class { 'python': version => 'system', pip => 'present', dev