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
Hi,
I am trying to id fact in path location for new puppet facts.
logfile = "/home/${::id}/javaapp.txt"
log = Facter::Util::FileRead.read(logfile)
can we use like this?
Please help me
Felix Frank
unread,
Nov 9, 2014, 6:58:56 PM11/9/14
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
Hi,
it is not at all clear what you are trying to do here. The code
you post lacks any relevant context.
I will go ahead and assume that you have a custom fact called
'id', and that you wish to use its value in the code for other
custom facts. This is how you do it:
id = Facter.value(:id)
logfile = "/home/#{id}/javaapp.txt"