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

How do I use deeper facts in a template .erb?

$
0
0
I'm using Facter 3. For example in a message of the day module i'm using this syntax in my .erb template: - This system is running: <%= @operatingsystem %> (displays "CentOS") - Filesystem Type: <%= @filesystems %> (displays "xfs") But I want to display the output of the fact: "os => release => full" instead of operatingsystem (to display: "7.1.x") What is the correct syntax in using a more deeply nested fact in an .erb template?

Viewing all articles
Browse latest Browse all 75

Trending Articles