Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##### node manifest
- node mynode01 {
- include trialfact
- }
- ##### trialfact module
- ## /module_path/trialfact/manifests/init.pp
- class trialfact {
- file{ "/tmp/check":
- ensure => present,
- content => ">>>>> $::custom_version <<<<<"
- }
- }
- ## /module_path/trialfact/lib/facter/custom_label.rb
- Facter.add("custom_version") do
- setcode do
- "160"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement