Re: [Puppet Users] Puppet require - failure handling

2014-01-07 Thread Johan Martinez
Thanks Jose! On Sunday, January 5, 2014 11:27:50 AM UTC-8, Jose Luis Ledesma wrote: > > Clases WordPress requiere both MySQL and apache, so no resource of > WordPress will be "executed" if any of them fails -- You received this message because you are subscribed to the Google Groups "Puppet U

Re: [Puppet Users] dashed by dashboard

2014-01-07 Thread Sam Kottler
On Mon, Jan 6, 2014 at 8:51 PM, Stuart Cracraft wrote: > Okay, took care of that. Thanks. > > Now, when doing per page 170 in chapter 7 (chapter puppet consoles) in Pro > Puppet > by Krum et al, I have: > > ruby /usr/share/foreman-installer/generate_answers.rb > We changed the installation proce

Re: [Puppet Users] Puppet Agent Callback

2014-01-07 Thread DEGREMONT Aurelien
Le 07/01/2014 02:09, rsreeniva...@gopivotal.com a écrit : Hi I am trying to wrap my head around how best to implement the following functionality: * Get information about puppet agent runs as soon as they complete * Some kind of a callback mechanism would be ideal Could this be done by c

[Puppet Users] only subclasses can modify ?

2014-01-07 Thread Klavs Klavsen
I'm trying to modify certain users, created with by calling the define users::local. I tried to do it, by calling users::local::modify - but then puppet complains that only subclasses may modify.. :( What am I doing wrong here? Code: define users::local ($uid,$gid,$realname,$groups=[],$pass=

Re: [Puppet Users] only subclasses can modify ?

2014-01-07 Thread Andrey Kozichev
You need to inherit users::local in users::modify On 7 Jan 2014 10:12, "Klavs Klavsen" wrote: > I'm trying to modify certain users, created with by calling the define > users::local. > > I tried to do it, by calling users::local::modify - but then puppet > complains that only subclasses may modif

Re: [Puppet Users] Re: The Future - ENCs vs Hiera?

2014-01-07 Thread Felix Frank
This really speaks to me. I haven't dabbled in ENCs as of yet, but my natural response to the question of hiera vs. ENC would be to use the right tool for the respective job. If the added complexity of using both is acceptable, do go ahead and use both. If I got my history correct, hiera was not

[Puppet Users] Re: only subclasses can modify ?

2014-01-07 Thread Klavs Klavsen
but defines can't inherit it seems. The docs are a little vague, but they seem to indicate that only classes can inherit ( http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html#inheritance ) -- You received this message because you are subscribed to the Google Groups "Puppet Users

Re: [Puppet Users] only subclasses can modify ?

2014-01-07 Thread Klavs Klavsen
It seems defines can't inherit.. the docs are a bit vague, but they seem to indicate that only classes can inherit : http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html#inheritance -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] Re: The Future - ENCs vs Hiera?

2014-01-07 Thread R.I.Pienaar
- Original Message - > From: "Felix Frank" > To: puppet-users@googlegroups.com > Sent: Tuesday, January 7, 2014 11:08:38 AM > Subject: Re: [Puppet Users] Re: The Future - ENCs vs Hiera? > > This really speaks to me. > > I haven't dabbled in ENCs as of yet, but my natural response to th

[Puppet Users] Re: only subclasses can modify ?

2014-01-07 Thread jcbollinger
On Tuesday, January 7, 2014 4:12:37 AM UTC-6, Klavs Klavsen wrote: > > I'm trying to modify certain users, created with by calling the define > users::local. > > I tried to do it, by calling users::local::modify - but then puppet > complains that only subclasses may modify.. :( > > What am I do

[Puppet Users] Re: Puppet Agent Callback

2014-01-07 Thread jcbollinger
On Monday, January 6, 2014 7:09:01 PM UTC-6, rsreen...@gopivotal.com wrote: > > Hi > > I am trying to wrap my head around how best to implement the following > functionality: > >- Get information about puppet agent runs as soon as they complete >- Some kind of a callback mechanism would

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread jcbollinger
On Monday, January 6, 2014 4:42:54 PM UTC-6, kai wrote: > > Hm nothing in the logs. It's worth mentioning that I run this on the > puppet master. Here's the config in case I missed something there: > > What version of Puppet are you running? As what user is the master running? (Typically an u

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread kai
> > What version of Puppet are you running? > *3.4.1 for both master and agent* > As what user is the master running? (Typically an unprivileged user named > 'puppet'.) > *The master is running as user puppet* > As what user are you running the agent in your tests? > *I am running the agent and

[Puppet Users] Alternating results with mount Puppet resource

2014-01-07 Thread zerozerounouno
Hi, I have a problem with a host which has a Puppet class applied to it. The host, a CentOS 6.4 machine, has been provisioned and is managed using Foreman, but I'm not sure this is related to the problem. The class includes a "mount" type resource which should mount a NFS share and add the relat

Re: [Puppet Users] Puppet Agent Callback

2014-01-07 Thread rsreenivasan
Thanks Aurélien. Could you point me to some documentation around this? On Tuesday, January 7, 2014 2:10:35 AM UTC-8, Aurélien Degrémont wrote: > > Le 07/01/2014 02:09, rsreen...@gopivotal.com a écrit : > > Hi > > I am trying to wrap my head around how best to implement the following > funct

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread kai
It is worth mentioning that if I replace this hierarchy: - "%{::environment}/%{::osfamily}/%{::lsbdistcodename}" which uses directories with just a single file like so: - "%{::environment}_%{::osfamily}_%{::lsbdistcodename}" both puppet apply and puppet agent are able to find the variable. If

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread Jose Luis Ledesma
Mmm the error is about ssh_package_name, but you have tried the puppet apply with ssh_service_name. could be this the problem? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, sen

[Puppet Users] Re: Puppet Agent Callback

2014-01-07 Thread rsreenivasan
Thanks for the response. I shall look into the scheduler. - Ranga On Tuesday, January 7, 2014 6:44:14 AM UTC-8, jcbollinger wrote: > > > > On Monday, January 6, 2014 7:09:01 PM UTC-6, rsreen...@gopivotal.comwrote: >> >> Hi >> >> I am trying to wrap my head around how best to implement the follo

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread kai
One more thing to mention is that if I change the hierarchy from being a directory as mentioned above to just a file like so: :hierarchy: - "%{::environment}_%{::osfamily}_%{::lsbdistcodename}" both puppet apply and puppet agent are able to find the variable. However if I prepend the "domai

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread Andrey Kozichev
Content of the yaml file - any quotes there which might cause issues? Try puppet master compile for the node - is it failing as well? > What version of Puppet are you running? > *3.4.1 for both master and agent* > As what user is the master running? (Typically an unprivileged user named > 'puppet

[Puppet Users] Re: mco package fail with puppet 3.4.0

2014-01-07 Thread Nikolay Georgieff
Same issue here. [root@puppet ucla_gateway]# mco package puppet update -F foreman_env=testing -v Discovering hosts using the redisdiscovery method 58 / [ ==> ] 29 / 58 The package application failed to run, use -v for full error det

[Puppet Users] Re: Hiera and puppet apply/puppet agent

2014-01-07 Thread kai
Actually I figured it out. The problem was that if I want to use directory the last element in the hierarchy must not be derived from a fact, so this works: :hierarchy: - "%{::domain}/%{::environment}/%{::osfamily}/%{::lsbdistcodename}/params" /etc/puppet/data/loc.example.com/production/

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread kai
I actually have both variables. On Tuesday, January 7, 2014 11:54:38 AM UTC-6, Jose Luis Ledesma wrote: > > Mmm the error is about ssh_package_name, but you have tried the puppet > apply with ssh_service_name. could be this the problem? -- You received this message because you are subscribed to

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread kai
--- :backends: - yaml - file :hierarchy: - defaults - "%{clientcert}" - "%{::domain}/%{::environment}/%{::osfamily}/%{::lsbdistcodename}" - global :yaml: :datadir: /etc/puppet/data On Tuesday, January 7, 2014 12:05:46 PM UTC-6, Andrew wrote: > > > Content of the yaml file - any quo

Re: [Puppet Users] Re: mco package fail with puppet 3.4.0

2014-01-07 Thread Jeff Bachtel
https://tickets.puppetlabs.com/browse/MCO-144 It's fixed in package agent 4.2.1 (not yet pushed to yum repo, alas) Jeff On 01/07/2014 01:18 PM, Nikolay Georgieff wrote: Same issue here. [root@puppet ucla_gateway]# mco package puppet update -F foreman_env=testing -v Discovering hosts using t

Re: [Puppet Users] Augeus: Duplicate "sysctl" setting

2014-01-07 Thread gh
On 1/6/14 9:28 AM, bruce bushby wrote: > Hello > > I have a issue with duplicate Augeas settings and hoping to bounce the > issue off the community for some ideas. > > I like to "pre-deploy" my servers regardless of what application they > will run and I typically have them sitting in > (/etc/pu

[Puppet Users] PuppetDB 1.6.0-rc1 Now available

2014-01-07 Thread Ken Barber
** Release Candidate ** PuppetDB 1.6.0-rc1 Prerelease: PuppetDB 1.6.0 is not yet released * RC1: January 7th, 2014. PuppetDB 1.6.0-rc1 Downloads Available in native package format in the pre-release repositories at: http://yum.puppetlabs.com and http://apt.puppetlab

Re: [Puppet Users] sudo class not found

2014-01-07 Thread Tim Dunphy
> > init.pp should be inside the manifests folder. Yup! That did it. All set! [root@puppet:~] #puppet agent --test Info: Retrieving plugin Info: Caching catalog for puppet.mydomain.com Info: Applying configuration version '1389080461' Notice: Finished catalog run in 0.42 seconds Thanks for the

[Puppet Users] Announce: Puppet 2.7.25 is available

2014-01-07 Thread Sam Kottler
Released January 7, 2014. 2.7.25 is a bugfix release in the Puppet 2 series. Please note that this release is supported by the community; Puppet Labs is not responsible for maintaining the release. This release fixes: Andrew Parker (1): 233e80 (Maint) Add rake task for running specs on win

[Puppet Users] getting error on puppet plugin download

2014-01-07 Thread Bhavin Shah
Hi, I am getting the following error when i execute "puppet plugin download" root@osbuild:/etc/puppet/manifests# puppet plugin download err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: Error 403 on SERVER: Forbidden request: osbuild.iplabs.att.com(1

[Puppet Users] Upgrading from 2x to 3x while simultaneously learning Puppet

2014-01-07 Thread Salient Digital
I'm new here, and to Puppet also. I've inherited some Puppet 2x code in an SVN repo at my work, and have the daunting task of sorting out whether we can/should use "what we have", or if we should upgrade/rewrite everything from scratch on Puppet 3x. Obviously there are pros and cons of each ap

[Puppet Users] trouble sharing a file in a module

2014-01-07 Thread Tim Dunphy
hey all, Having a little trouble sharing a file as part of a module I'm attempting to use. This is the error that I'm seeing: [root@beta:~] #puppet agent --test --server puppet.mydomain.com info: Caching catalog for beta.jokefire.com info: Applying configuration version '1389142209' err: /Stage

Re: [Puppet Users] trouble sharing a file in a module

2014-01-07 Thread Moses Mendoza
On Tue, Jan 7, 2014 at 5:00 PM, Tim Dunphy wrote: > hey all, > > > Having a little trouble sharing a file as part of a module I'm attempting to > use. > > This is the error that I'm seeing: > > [root@beta:~] #puppet agent --test --server puppet.mydomain.com > info: Caching catalog for beta.jokefir

[Puppet Users] Re: Installation problem (PE 3.0.0 on RHEL 6.4 x64)

2014-01-07 Thread pclonan
> > > Hello, I had the exact same issue. The problem was Postgres, its need to be able to resolve localhost. Added "127.0.0.1 localhost.localdomain localhost" to /etc/hosts - problem fixed. Once Puppet was installed, I removed the above entry - and pe-postgresql wouldn't start. Added loc