[Puppet Users] Installing PuppetDB on Debian 8 with Puppet 3.7

2016-06-29 Thread John Naggets
Hello, I am using Debian 8 with the puppetmaster package from the official Debian 8 repository. Now as Debian does not provide a puppetdb package I wanted to know from which source I should install PuppetDB? and also which version of PuppetDB to install? Will PuppetDB version 4.1 work with Pupp

Re: [Puppet Users] Re: Augtool installation

2016-06-29 Thread David Lutterkort
Hi Shrawan, On Tue, Jun 28, 2016 at 8:51 AM, Shrawan Bhagwat wrote: > Hi David, > > I am getting following error: > > Error: /Stage[main]/Aug_mod::Configuration_files/Augeas[host_file]: Could > not evaluate: undefined method `set' for # > This indicates that there is something wrong with your i

[Puppet Users] Re: Question about custom exported resource

2016-06-29 Thread jcbollinger
On Tuesday, June 28, 2016 at 9:56:52 AM UTC-5, Bret Wortman wrote: > > Here's what I'm trying to do, and I know there's a better way most likely > involving exported resources, but I haven't done much with them before. > > I've got two types of nodes deploying custom software which Puppet is >

[Puppet Users] Powershell silent error Puppet 4.5.2

2016-06-29 Thread goncalojrplacido
Hello all, I've upgraded my Puppet installation from 3.8.2 to 4.5.2 and now I have a problem with a Powershell command. I'm extracting a .zip file to a folder but it doesn't extract anything and it gives no Warning/Error. I only have an error when the installation process tries to execute the

[Puppet Users] Loading predefined docker image

2016-06-29 Thread Fuad P T
hi, I am using Puppet open source to configure my nodes. I want to configure my nodes as docker engines. I achieved this by this by using* 'garathe-docker'* module. But i am unable to load my predefined docker image to nodes. What i mean is, i am having* 'image.tar'* which was created by using '

Re: [Puppet Users] Convert hiera_hash code to hiera_array?

2016-06-29 Thread Carlos Parada
Hi Henrik, Yeah, updating to a newer version sounds like the sensible thing to do, lots of politics involved on this though :/ Will try to test updating to Puppet 4.5 Thanks for your help, much appreciated. On Wed, Jun 29, 2016 at 12:18 AM, Henrik Lindberg < henrik.lindb...@puppet.com> wrote:

Re: [Puppet Users] Convert hiera_hash code to hiera_array?

2016-06-29 Thread R.I.Pienaar
- Original Message - > From: "Carlos Parada" > To: "puppet-users" > Sent: Wednesday, 29 June, 2016 15:25:14 > Subject: Re: [Puppet Users] Convert hiera_hash code to hiera_array? > Hi Henrik, > > Yeah, updating to a newer version sounds like the sensible thing to do, > lots of politics

Re: [Puppet Users] Re: Question about custom exported resource

2016-06-29 Thread Bret Wortman
I like that, John. Titles are guaranteed to be unique or the catalog won't compile, right? This is absolutely supposed to be a one-and-only-one kind of thing, so using title makes much more sense. Thanks for the tip -- I'll write it up and do some testing later today before swapping it for the hie

Re: [Puppet Users] Convert hiera_hash code to hiera_array?

2016-06-29 Thread Carlos Parada
Hi Pienaar, Yup, I'll use that approach. Will begin testing with 3.latest shortly. Many thanks. On Wed, Jun 29, 2016 at 2:44 PM, R.I.Pienaar wrote: > > > - Original Message - > > From: "Carlos Parada" > > To: "puppet-users" > > Sent: Wednesday, 29 June, 2016 15:25:14 > > Subject: Re:

[Puppet Users] puppet exec to test if pattern exist in file

2016-06-29 Thread Andrew Morgan
I want to check if pattern exist in a file and then if it doesn;t echo the pattern in the file. class environment { exec{'one_run': path=>'/usr/bin', command => "echo 'PATH=$PATH:/opt/logstash/bin' >> /etc/profile", onlyif => "grep -qFx

Re: [Puppet Users] puppet exec to test if pattern exist in file

2016-06-29 Thread Peter Kristolaitis
First of all, I will say that this is probably a sledgehammer approach to accomplishing your goal. Many modern platforms have, in their default /etc/profile, support for /etc/profile.d/ that works like a run-parts for building the environment. The Puppet Agent package installs its own $PATH e

Re: [Puppet Users] Installing PuppetDB on Debian 8 with Puppet 3.7

2016-06-29 Thread Nick Miller
John, Puppet provides a repo for Debian Jessie. You can install it with the rpm found here: https://apt.puppetlabs.com/ Best, Nick On Wed, Jun 29, 2016 at 4:46 AM, John Naggets wrote: > Hello, > > I am using Debian 8 with the puppetmaster package from the official Debian > 8 repository. Now as

Re: [Puppet Users] puppet exec to test if pattern exist in file

2016-06-29 Thread Andrew Morgan
Thank you very much for your prompt reply... Will this work?? class environment { exec{'oe_run': path=>'/usr/bin', command => 'echo PATH=\$PATH:/opt/logstash/bin >> /etc/profile', unless => "grep -qFx 'PATH=\$PATH:/opt/logstash/bin' /

Re: [Puppet Users] Installing PuppetDB on Debian 8 with Puppet 3.7

2016-06-29 Thread John Naggets
Thanks Nick for the pointer, I have now installed the puppetlabs-release-pc1-jessie.deb package from apt.puppetlabs.com and I am trying to install PuppetDB with the following command: sudo puppet resource package puppetdb ensure=latest Unfortunately I get the following a dependency error messag

Re: [Puppet Users] Installing PuppetDB on Debian 8 with Puppet 3.7

2016-06-29 Thread Wyatt Alt
John, You'll want a PuppetDB version in the 2.x series -- 3+ requires Puppet 4. On the offchance that you're just getting started, note that you can install the latest puppetserver and puppet-agent packages from the same PC1 repo, and that the latest PuppetDB will work with those. Wyatt On

Re: [Puppet Users] Installing PuppetDB on Debian 8 with Puppet 3.7

2016-06-29 Thread John Naggets
Hi Wyatt, Any ideas where I can find PuppetDB v2.x? In the APT repository of PuppetLabs the oldest I can find is version 3.2. Regards J. On Wednesday, June 29, 2016 at 11:40:01 PM UTC+2, Wyatt Alt wrote: > > John, > > You'll want a PuppetDB version in the 2.x series -- 3+ requires Puppet 4. > >