Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to access hierarchical facts from facter?

$
0
0
I'd like to create a custom fact derived from another fact. With facter 2.x other facts are accessible via: Facter.value(:memorysize) But how do I access hierarchical facts from Ruby code? e.g.: memory: system: available: 29.70 GiB available_bytes: 31890997248 capacity: 5.12% total: 31.30 GiB total_bytes: 33612447744 used: 1.60 GiB used_bytes: 1721450496

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>