Hi all,
Is it possible to have a custom utils lib in puppet ?
By exemple I want to have a custom class used in many custom facts and many
custom function :
module_utils/lib/puppet/my_class.rb
And in my custom fact I can call this class :
require 'module_utils'
Facter.add(custom_fact) do
Hi,
I just made a custom fact to display a status about mysql.
The fact variable is 'foo'.
In a module I test this fact variable to apply or not a ressource :
class bar {
if $::foo == 'toto' {
notice(Execute ressource)
# Reload fact variable ?
if $::foo == 'toto' {
Hi,
Is there a way to test for exported resources using rspec-puppet ? I found
a post explaining how it could be done with cucumber (
http://blog.nistu.de/2011/09/04/testing-exported-resources-with-cucumber-puppet
) but could not find examples or documentation for rspec-puppet.
Cheers
--