[Puppet Users] Re: Anyone have sample output from Facter on Joyent?

2014-09-20 Thread Matthew Haughton
Actually all the OS related ones such as osfamily, operatingsystem, kernel etc would be fantastic. On Saturday, 20 September 2014 22:44:04 UTC-4, Matthew Haughton wrote: > > Specifically value of "kernelversion". > > Thanks! > -- You received this message because

[Puppet Users] Anyone have sample output from Facter on Joyent?

2014-09-20 Thread Matthew Haughton
Specifically value of "kernelversion". Thanks! -- 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, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussio

[Puppet Users] Re: Testing with rspec-puppet and ripienaar/module_data

2014-08-27 Thread Matthew Haughton
I worked it out - here's the solution for anyone who might stumble across this: In spec/spec_helper.rb: require 'fixtures/modules/module_data/lib/hiera/backend/module_data_backend.rb'RSpec.configure do |c| c.hiera_config = File.join('spec', 'fixtures', 'hiera', 'hiera.yaml')end In spec/

[Puppet Users] Testing with rspec-puppet and ripienaar/module_data

2014-08-26 Thread Matthew Haughton
Hi all, I have a module I'm trying to convert from params.pp to ripienaar/module_data. I've got to the point where I can run Puppet with: puppet apply --debug --noop --hiera_config spec/fixtures/hiera/hiera.yaml --modulepath spec/fixtures/modules -e 'include ...' and can see from the hier

[Puppet Users] Re: Checking a variable is not 'undef'

2014-07-11 Thread Matthew Haughton
As noted at http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#undef, "When used as a boolean, undef is false." So you can definitely use an if statement that way. On Friday, 11 July 2014 10:38:41 UTC-4, Chris Cowley wrote: > > OK, so what it the recommended way to do this?