Re: [Puppet Users] Case statements in a file directive

2012-04-16 Thread Geoff Davis
You're pretty close. You don't want the case statement per se, but you do want a conditional: file { "/usr/local/nagios/libexec": require => File['/usr/local/nagios'], ensure => directory, owner => 'root', group => 'root', mode=> 655, recurse => true, source => $::architec

[Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
I'm doing some work on module development inside of a Vagrant VM of CentOS 6.2. This VM has the community version of Puppet installed (2.7.13 I think), but that doesn't include Hiera by default. My module is dependent on Nan Liu's puppet-staging module, which requires hiera. This puts me into t

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
That's what I'm looking for. I'll fold in that branch into my testing until it goes mainline. Any ETA on it going mainline? On Apr 17, 2012, at 11:14 AM, Nigel Kersten wrote: > > > On Tue, Apr 17, 2012 at 11:08 AM, Geoff Davis wrote: > I'm doing some work o

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
turns true, the function isn't actually usable: Hiera config file /etc/puppet/hiera.yaml not readable at /tmp/vagrant-puppet/modules-0/staging/manifests/init.pp:31 on node centos-6-vagrant.vagrantup.com Is there a way to check whether the function is actually usable as well? Geoff Davis Scrip

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
sion of staging/init.pp that generated the error below: https://github.com/nanliu/puppet-staging/blob/5e1a8763ae36c2ea21c0a5b6a1f0e586e077f0fd/manifests/init.pp Note that all of the hiera calls have defaults. Geoff Davis Scripps Institution of Oceanography gada...@ucsd.edu, (858) 822-5756 On A

Re: [Puppet Users] Determining if hiera (or any function) is installed on a node

2012-04-17 Thread Geoff Davis
pet.noarch 2.7.13-1.el6puppetlabs [1] http://packages.vstone.eu/vagrant-boxes/ [2] http://packages.vstone.eu/vagrant-boxes/CHANGELOG Geoff Davis Scripps Institution of Oceanography gada...@ucsd.edu, (858) 822-5756 On Apr 17, 2012, at 12:32 PM, Gary Larizza wrote: > And here'

Re: [Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Geoff Davis
des/scope_and_puppet.html Geoff Davis Scripps Institution of Oceanography gada...@ucsd.edu, (858) 822-5756 On Apr 17, 2012, at 12:31 PM, Forrie wrote: > Thank you, I appreciate it.Still learning all the interesting > nuances of this syntax. I'm not yet familiar with this $:: >

Re: [Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Geoff Davis
Yup, I fat-fingered my response. On Apr 17, 2012, at 4:10 PM, Denmat wrote: >> /(i386|i586|i686/) => > should be >> /(i386|i586|i686)/ => > shouldn't it? > > Den > On 18/04/2012, at 9:01, Forrie wrote: > >> So, it's choking on this still at the line with the cond