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' {
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
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