[Puppet Users] Re: Debugging Puppet catalog compilation issues

2015-03-24 Thread Frederic Conrotte
Thanks for your answer Nick, I will surely try this when 3.7.5 is out Le mardi 24 mars 2015 13:10:25 UTC+1, Frederic Conrotte a écrit : > > Hello > > I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this > compilation issue: > > > [1;31mError: Could not retrieve catalog from re

[Puppet Users] Re: Puppet Agent broken on OS X (Yosemite w/ Ruby 2.2.0)?

2015-03-24 Thread Charlie Sharpsteen
On Tuesday, March 24, 2015 at 11:42:57 AM UTC-7, Joaquin Menchaca wrote: > > > $ ruby --version > ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14] > > $ puppet --version > /Users/vagrant/.rvm/gems/ruby-2.2.0/gems/puppet-3.7.4/lib/puppet/defaults.rb:465: > > warning: duplicated key at li

[Puppet Users] Re: Joining multiple template files with Hiera

2015-03-24 Thread Kevin Freels
In the words of Emily Litella, "Nevermind". I found puppetlabs-concat, it does exactly what I'm looking for. I knew once I posed the question, the answer would pop out at me. Thanks!! k On Tuesday, March 24, 2015 at 8:54:03 AM UTC-7, Kevin Freels wrote: > > Greetings!! > > DISCLAIMER: New

Re: [Puppet Users] misbehaving file resource on only one server

2015-03-24 Thread Christopher Wood
On Tue, Mar 24, 2015 at 04:30:27PM -0400, Gabriel Filion wrote: > Hello, > > I'm having issues with one server when it tries to apply a super simple > file resource that ensures a file is absent: > > file { '/etc/munin/plugin-conf.d/uptime.conf': ensure => absent } > > I can easily replicate thi

Re: [Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-24 Thread Tom Limoncelli
On Tue, Mar 24, 2015 at 1:11 PM, Nick Howes wrote: > On Tuesday, 24 March 2015 15:22:16 UTC, Tom Limoncelli wrote: >> >> I'd like to assign $v one hash if $y == 'foo' and a different hash if >> $y == 'bar'. However it seems like conditional assignments aren't >> permitted. >> >> $ puppet --versio

[Puppet Users] misbehaving file resource on only one server

2015-03-24 Thread Gabriel Filion
Hello, I'm having issues with one server when it tries to apply a super simple file resource that ensures a file is absent: file { '/etc/munin/plugin-conf.d/uptime.conf': ensure => absent } I can easily replicate this with a puppet apply -e of the above line. I get the following error: err: /S

[Puppet Users] Puppet Agent broken on OS X (Yosemite w/ Ruby 2.2.0)?

2015-03-24 Thread Joaquin Menchaca
$ ruby --version ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14] $ puppet --version /Users/vagrant/.rvm/gems/ruby-2.2.0/gems/puppet-3.7.4/lib/puppet/defaults.rb:465: warning: duplicated key at line 466 ignored: :queue_type /Users/vagrant/.rvm/gems/ruby-2.2.0/gems/puppet-3.7.4/lib/pup

[Puppet Users] Re: Augeas editing of fstab

2015-03-24 Thread Anthony Clark
Yeah I've currently got a mounttab block that controls just / and /var, but I'd kind of like to have it run on *any* filesystem that is xfs and mounted in a VM. This augeas works for single filesystems: augeas { 'fstabxfsnobarrier': context => '/files/etc/fstab/*[file="/var"][vfstype="xfs"]',

[Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-24 Thread Nick Howes
On Tuesday, 24 March 2015 15:22:16 UTC, Tom Limoncelli wrote: > > I'd like to assign $v one hash if $y == 'foo' and a different hash if > $y == 'bar'. However it seems like conditional assignments aren't > permitted. > > $ puppet --version > 3.7.3 > > $ cat -n hash-condeq.pp > 1 $y = 'f

[Puppet Users] Issue creating rabbitmq exchange with puppet

2015-03-24 Thread John Lynch
Hi, I was wondering if anyone has seen this issue before? I am trying to add an rabbitmq exchange using puppet, here is what I have in my pp file rabbitmq_exchange { "MyTestExchange@/": type => 'topic', ensure => present, } Going by the documentation, this looks

[Puppet Users] Joining multiple template files with Hiera

2015-03-24 Thread Kevin Freels
Greetings!! DISCLAIMER: New to Hiera. I'm trying to so something which seems should be really easy to do. However, all the examples I've seen so far seem to be overly complicated, and I need to get this up without brute-forcing it.. What I want to do build dynamically a file based on multiple

[Puppet Users] Use of hash in a conditional assignment doesn't work

2015-03-24 Thread Tom Limoncelli
I'd like to assign $v one hash if $y == 'foo' and a different hash if $y == 'bar'. However it seems like conditional assignments aren't permitted. $ puppet --version 3.7.3 $ cat -n hash-condeq.pp 1 $y = 'foo' 2 3 $v = $y ? { 4 'foo' => { 'x' => 'xfoo', 'y' => 'yfoo', },

[Puppet Users] Re: Debugging Puppet catalog compilation issues

2015-03-24 Thread Nick Howes
On Tuesday, 24 March 2015 12:10:25 UTC, Frederic Conrotte wrote: > > Hello > > I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this > compilation issue: > > > [1;31mError: Could not retrieve catalog from remote server: Error 400 on > SERVER: assert_type(): Expected type Stri

[Puppet Users] Re: Breaking change named as improvement in facter 2.0

2015-03-24 Thread jcbollinger
On Monday, March 23, 2015 at 7:30:10 AM UTC-5, Jayapandian Ponraj wrote: > > https://tickets.puppetlabs.com/browse/FACT-163 > > TLDR: The custom fact loading logic has been changed in facter-2.0 from > recursive to only top level directories. This is definitely a change in > behaviour and must

[Puppet Users] Provider/type with no name

2015-03-24 Thread Nick Howes
Hi, I'm writing a couple of types and providers to manage firewalld direct-mode chains and rules, which don't have any intrinsic name or ID. I've worked around it by combining their unique distinguishing properties into a name, which is used in `self.instances` so `puppet resource` works, and s

Re: [Puppet Users] Re: Tracking services that need to be restarted

2015-03-24 Thread Nick Howes
On Friday, 20 March 2015 14:04:25 UTC, Christopher Wood wrote: > > On Fri, Mar 20, 2015 at 06:17:55AM -0700, jcbollinger wrote: > > >exec { "Flag myservice for restart": > > command => '/bin/touch /var/run/services/myservice_update', > > refreshonly => true, > > subscrib

[Puppet Users] Re: Augeas editing of fstab

2015-03-24 Thread Ryan Anderson
You really ought to try using the 'mount' resource type: http://docs.puppetlabs.com/references/latest/type.html#mount The native type already knows about /etc/fstab format and is far more cross-platform and simple to use than augeas. -- You received this message because you are subscribed to t

[Puppet Users] Puppetlabs-mysql with Percona

2015-03-24 Thread Matt Shields
Does anyone have an example of provisioning Percona MySQL using the puppetlabs-mysql module? Here's my puppet code: 15 package { 'percona-release': 16 ensure => present, 17 source => ' http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm

[Puppet Users] Debugging Puppet catalog compilation issues

2015-03-24 Thread Frederic Conrotte
Hello I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this compilation issue: [1;31mError: Could not retrieve catalog from remote server: Error 400 on SERVER: assert_type(): Expected type String[1, default] does not match actual: Float on node (...)[0m I have been looking

Re: [Puppet Users] Re: Status of Data in modules

2015-03-24 Thread Gregory Orange
I've been trying to use the module_data module, but cannot get it to bring in values. Is there a worked example somewhere, including site.pp and hiera.yaml? https://github.com/zipkid/puppet3-hiera_data_in_module hasn't helped - I get the class defaults from init.pp, not the data from the yaml