Hi everybody. 

I got a question about puppet. I have a case which I would like to run all 
the statements in order and one of them is a custom fact that I created and 
the return is assigned to a variable but I got an error when I do that  (" 
Syntax error at '='; expected '}' at ..." ) , the class I'm talking about 
with the line (commented to make it run) is the the following:

https://github.com/luan-cestari/lightblue-puppet/blob/bug-fix-lightblue-platform/lightblue-puppet%2344/manifests/java.pp#L51
 
( link of the only file related to this issue, but the full repository on  
https://github.com/luan-cestari/lightblue-puppet/tree/bug-fix-lightblue-platform/lightblue-puppet%2344
 
)
 
Do you guys have any idea of a possible work around for this case?.  I 
tried many different tricks there (creating even a class) but it didn't 
work. I also tried to find someone else with the same problem in google but 
I could with that exactly that message (which I presume it some to do with 
the ordering  ( about the anchor that I'm using there, I already removed 
this one but it have the same exception, by the way) )

One thing that could help me is if I could get the full name of an package 
(including the patch version) , as there is a folder with this name and it 
can change by any update of that package and that class make sure to 
install the package and the major version, but I don't know (and I couldn't 
find) a way to get the full name of the package (my custom fact basically 
use an temporary file that I created during the execution to know the 
version of the package so it could use my custom fact to run 'find' command 
to get the right directory, which wont't exist if the package is not 
installed, so that's why I need the ordering)


Workarounds and any hints are appreciated  . Thank you in advance for the 
help and comprehension.

Luan

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/974fc09f-089f-476e-a2e3-5f4dfe45d649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to