Created
November 30, 2015 13:20
-
-
Save faxm0dem/223dc122700496a61bb5 to your computer and use it in GitHub Desktop.
puppet rspec fact multiple resolutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add(:java_foo) do | |
has_weight 100 | |
setcode do | |
'bar' | |
end | |
end | |
Facter.add(:java_foo) do | |
has_weight 200 | |
setcode do | |
nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to test this in rspec?