Re: [Puppet Users] Let puppet configure your monitoring (here: nimsoft)

2014-02-25 Thread Nikola Petrov
I am not familiar with nimsoft but I will try to help anyways here - sorry if I am missing something but you can correct me. Let's say you want to monitor the oracle instance: First you specify the nimsoft_oracle_connection you already have written(as I saw from the readme in github) and then on t

Re: [Puppet Users] Best practices: client/server VS Git

2014-02-25 Thread Nikola Petrov
On Thu, Feb 20, 2014 at 07:15:50AM -0800, Julien Deloubes wrote: > Hello there, > i'm actually learning Puppet in order to pass the exam. > I have no professional experience on the product yet, and wanting some > feedback from you professional devops. > For the moment i see 2 ways for Puppet to sy

[Puppet Users] No resources and catalog information with puppetdb

2014-02-25 Thread Louis Coilliot
Hello, with my puppetdb - I can't query any resource or catalog - exported resources are not working This is working : # echo '["=", ["fact", "rubyversion"], "1.8.7"]' > queryfile # curl -X GET http://localhost:8080/v3/nodes --data-urlencode query@queryfile 2>/dev/null | tail -7 }, { "name"

[Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Helen Paterson
Hi, What is the syntax for install_options containing a variable ? This code below works fine,but i'd like to remove D:\BuildAgent\jre' and replace it with ${::javahome}, what should the syntax be? install_options => [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0', 'INSTAL

[Puppet Users] puppet module generate skeleton not working on PE?

2014-02-25 Thread Stephen Wallace
Hi I'm wondering if anybody has successfully managed to get any `puppet module generate` templates (e.g. https://github.com/garethr/puppet-module-skeleton) working on a Puppet Enterprise box? I've tried both of the github skeleton modules on two different versions of PE, but not joy. Seems strai

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread johan-OF
Hi Helen, "INSTALLDIR=${::agenthome}\jre" HTH Jo should do the trick On 02/25/2014 10:52 AM, Helen Paterson wrote: Hi, What is the syntax for install_options containing a variable ? This code below works fine,but i'd like to remove D:\BuildAgent\jre' and replace it with ${::javahome}, what

[Puppet Users] yum tries to downgrade a package (ensure => version)

2014-02-25 Thread Jose Luis Ledesma
Hi, I have found a problem trying to upgrade a rhel6 package (libcgroup), the current version installed is: libcgroup-0.37-7.el6.x86_64 And I want to install this version: libcgroup-0.37-7.2.el6_4.x86_64 So I created a class that states: package { 'libcgroup':

[Puppet Users] Does r10k play nicely with Puppet Enterprise gems?

2014-02-25 Thread Steven James
As r10k is a gem install, and has quite a few gem dependenciesdoes anybody know if it plays nicely with Puppet Enterprise? As long as I use PE's /opt/puppet/bin/{bundle,rake} when doing the builds, should all be fine? Anybody have any stories or woe and dispair, or just lots of associated hap

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Helen Paterson
Thank you, although that works, it means all other install options are ignored ','JAVAUPDATE=0','AUTOUPDATECHECK=0. as check for updates is enabled On Tuesday, February 25, 2014 9:57:45 AM UTC, Johan De Wit wrote: > > Hi Helen, > > "INSTALLDIR=${::agenthome}\jre" > > HTH > > Jo > should do the t

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Felix Frank
Hi, On 02/25/2014 11:30 AM, Helen Paterson wrote: > Thank you, although that works, it means all other install options are > ignored ','JAVAUPDATE=0','AUTOUPDATECHECK=0. as check for updates is enabled that wouldn't appear to be a puppet related problem. To be safe, though, can you share the rele

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Helen Paterson
class installjava7::x86 { package { 'Java 7 Update 51': ensure =>'7.0.510' , source => '\\cam-OPS20\Install\IT Apps\Java\jre-7u51-windows-i586.exe', install_options => [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0',"INSTALLDIR=${::javahom

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-25 Thread Nikola Petrov
On Wed, Feb 05, 2014 at 06:38:24PM +0100, Gareth Rushgrove wrote: > This came up in discussion a couple of times at the Puppet contributor > summit at Config Management Camp in Gent over the last couple of days > so I thought I'd write up. > > A while ago I put together a pretty complete/opinionat

[Puppet Users] How to use puppet modules on the forge on vagrant

2014-02-25 Thread bkoo004
I am trying to use this module https://forge.puppetlabs.com/puppetlabs/ntp#usage on vagrant but when I copy the manifests to the puppet module path on vagrant I get this error Could not find parent resource type 'ntp::params' of type hostclass in production at /tmp/vagrant-puppet-1/modules-0/n

Re: [Puppet Users] No resources and catalog information with puppetdb

2014-02-25 Thread Ken Barber
> with my puppetdb > - I can't query any resource or catalog > - exported resources are not working > > > This is working : > > # echo '["=", ["fact", "rubyversion"], "1.8.7"]' > queryfile > # curl -X GET http://localhost:8080/v3/nodes --data-urlencode > query@queryfile 2>/dev/null | tail -7 > }, {

Re: [Puppet Users] Best practices: client/server VS Git

2014-02-25 Thread Ken Barber
> This is the approach we are currently taking and it allows you to use > virtual resources. This is the only thing which should drive you to this > setup - the other is much simpler in my opinion. Of course there might > be a way to use a central PuppetDB service in masterless setup but at > least

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread jcbollinger
On Tuesday, February 25, 2014 5:10:25 AM UTC-6, Helen Paterson wrote: > > class installjava7::x86 { > > > >package { 'Java 7 Update 51': > ensure =>'7.0.510' , > source => '\\cam-OPS20\Install\IT > Apps\Java\jre-7u51-windows-i586.exe', > inst

[Puppet Users] How to purge and install package on same run?

2014-02-25 Thread Kenton Brede
I've got a situation where I need to remove a set of packages and then install the upgraded versions. I can't just upgrade. It's rare that I have to upgrade the software but I'd like to have something in place to upgrade when I have to. What's the best way to handle these types of situations wit

[Puppet Users] Re: notify on agent from puppet function

2014-02-25 Thread jcbollinger
On Monday, February 24, 2014 8:15:29 AM UTC-6, bazil wrote: > > Hi all, > > could you advice any way to put a message in puppet agent output from > puppet function on master. > > Not directly, because functions run on the master, during catalog compilation. If the message can be computed on t

[Puppet Users] Re: yum tries to downgrade a package (ensure => version)

2014-02-25 Thread jcbollinger
On Tuesday, February 25, 2014 4:07:06 AM UTC-6, Jose Luis Ledesma wrote: > > Hi, > >I have found a problem trying to upgrade a rhel6 package (libcgroup), > the current version installed is: > > libcgroup-0.37-7.el6.x86_64 > >And I want to install this version: > > libcgroup-0.37-7.2.el6_

Re: [Puppet Users] Re: notify on agent from puppet function

2014-02-25 Thread Vasil Mikhalenya
Unfortunately, the message could be computed only in function. Do I understand correctly that it is impossible to push Notify in catalog from function during compilation. On Tue, Feb 25, 2014 at 5:26 PM, jcbollinger wrote: > > > On Monday, February 24, 2014 8:15:29 AM UTC-6, bazil wrote: >> >> H

[Puppet Users] Possible issue with nagios_* commands

2014-02-25 Thread JonY
I'm trying to setup a nagios server via puppet to monitor the other servers in the group. I can get the various stored info from puppet db but when the *.cfg files are created in the nagios folder they are all root:root 0600. IE nagios can't read them. I can work around this but I'm wondering

Re: [Puppet Users] Possible issue with nagios_* commands

2014-02-25 Thread Matthias Saou
On Tue, 25 Feb 2014 09:01:43 -0800 (PST) JonY wrote: > I'm trying to setup a nagios server via puppet to monitor the other > servers in the group. I can get the various stored info from puppet > db but when the *.cfg files are created in the nagios folder they are > all root:root 0600. > > IE n

Re: [Puppet Users] Possible issue with nagios_* commands

2014-02-25 Thread Felix Frank
Hi, there will be appropriate options to the nagios types starting with 3.5, see https://tickets.puppetlabs.com/browse/PUP-1327 As a workaround you can now manage the configs as file { } resources. This should not interfere with the nagios types. HTH, Felix On 02/25/2014 06:01 PM, JonY wrote: >

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-25 Thread Josh Cooper
There are actually two different issues here: On Tue, Feb 18, 2014 at 12:31 PM, jmp242 wrote: > Here's another test where I just added --test to your command, and passed > to a log file. It should show my issue. Anyway, it does look very similar > an error, though I can't figure out why any of t

Re: [Puppet Users] Style and Formatting Best Practice

2014-02-25 Thread David Schmitt
On 2014-02-20 23:51, Charles McLaughlin wrote: Hello, I'm trying to develop Puppet style guidelines at my job and would like some feedback and opinions on a few patterns. Please just follow the official style guide (or suggest improvements there if necessary). Regards, David -- You receiv

[Puppet Users] puppet module generate skeleton not working on PE?

2014-02-25 Thread Peter
Hi, I am not sure on the underlying reasons but this doesnt work under the root account. I ran into the same issue when I was playing with it on a dev box. Peter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

[Puppet Users] puppet agent gives error undefined method `empty?' for nil:NilClass

2014-02-25 Thread Tom Hanstra
I have a puppet master which has over 50 puppet agents talking to it just fine. But I have one particular server on which the agent, after connecting and exchanging keys, gives the following error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `emp

[Puppet Users] Custom service status not working

2014-02-25 Thread Guy Knights
I have a service set up with a custom status check, but when I run puppet it ignores my custom status command and runs the standard upstart status check. My service definition is as follows: service { "gamedeploy-${title}": ensure => running, provider => upstart, start => "/sbin/

[Puppet Users] Re: Does r10k play nicely with Puppet Enterprise gems?

2014-02-25 Thread Adrien Thebo
Hi Steven, I'm glad that you've found r10k useful! r10k has pretty a lightweight set dependencies that should play nicely with the rest of Puppet Enterprise, and it's important to me that r10k can easily be installed and behave well in PE. I know that r10k is frequently deployed in PE environm

[Puppet Users] Re: Does r10k play nicely with Puppet Enterprise gems?

2014-02-25 Thread Steven James
Thanks Adrien! On Wednesday, February 26, 2014 10:41:28 AM UTC+11, Adrien Thebo wrote: > > Hi Steven, > > I'm glad that you've found r10k useful! > > r10k has pretty a lightweight set dependencies that should play nicely > with the rest of Puppet Enterprise, and it's important to me that r10k can

Re: [Puppet Users] How to use puppet modules on the forge on vagrant

2014-02-25 Thread johan-OF
it is always handy to show your command. Assuming you did a a pupept apply, add the --modulepath to the command. puppet apply --modulepath=/tmp/vagrant-puppet-1/modules-0/ /tmp/vagrant-puppet-1/modules-0/ntp/tests/init.pp puppet knows now where to find the other classes. HTH grts jo On 02

Re: [Puppet Users] How to use puppet modules on the forge on vagrant

2014-02-25 Thread David Schmitt
Hi, you can find a fully working project with vagrant in my github repo: https://github.com/DavidS/dasz-configuration There you can check how the Vagrantfile is configured and how the filesystem layout looks like. You'll see both puppet and puppet_server configured vagrants there. Regard

[Puppet Users] Re: puppet module generate skeleton not working on PE?

2014-02-25 Thread Stephen Wallace
Peter, When I ran the puppet module generate as non-rootit worked like a charm! Maybe some of the other talented people on this forum may have a clue as to why. Thanks again. Stephen On Wednesday, 26 February 2014 07:25:43 UTC+11, Peter wrote: > > Hi, > > I am not sure on the underlying r