[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] Re: rspec-puppet and exported resources

2012-08-20 Thread Loic Dachary
For the record, there is an issue related to this topic opened at https://github.com/rodjek/rspec-puppet/issues/2 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-u

[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 -- Yo