[Puppet Users] Custom utils lib

2013-02-22 Thread loic
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

[Puppet Users] Reload fact variable during run

2012-11-07 Thread loic
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' {

[Puppet Users] rspec-puppet and exported resources

2012-08-15 Thread Loic Dachary
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 --