Hi,
I am trying search multiple facts in the txt file in puppet facts.
How can i use multiple if statements in puppet facts
*Facter.add("isjavaversion#{a}") do*
*setcode do*
* if
Facter.value('java_foundversion2_path2').strip.include?(val.strip)*
* if Facter.value('java_foundversion1_path1').strip.include?(val.strip)*
* "true"*
* # puts a*
* else*
* "false"*
* #puts a*
* end*
*elseif Facter.value('java_foundversion1_path1').strip.include?(val.strip)*
* "true"*
* # puts a*
* else*
* "false"*
* #puts a*
* end*
*end*
*end*
*end*
But it throwing me an error near elseif statement.
--
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/95c14160-ca24-4eeb-8b35-7782370b6968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.