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"
or even just
logfile = "/home/#{Facter.value(:id)}/javaapp.txt"
HTH,
Felix
On 10/29/2014 04:48 PM, Spriya wrote:
> 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
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/545FFFE8.7020606%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.