QUESTION: How can I iterate through the whole list of facters in an erb template?
19 views
Skip to first unread message
Victor Martinez
unread,
Nov 10, 2016, 9:46:43 AM11/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Puppet Users
Hi there,
I've been looking for a way of creating an erb file which contains all the facter values. Any ideas how I can accomplish it? Reason: I'd like to generate custom facters per module and populate those facter values as Jenkins Labels
Thanks so much
Matt Zagrabelny
unread,
Nov 10, 2016, 9:51:14 AM11/10/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Untested:
<%
@facts.each do |key, value|
%->
<%= key %> and <%= value %>
<% end -%>
-m
Victor Martinez
unread,
Nov 14, 2016, 7:35:00 AM11/14/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message