I want to create a random hex string in the format

041f798-a5f

inclusive the dash in a XML file.

I have tried using a self written shell script which generates the string 
with

<hid><%= exec('/var/somedir/somescript') %></hid>

in the template. That unfortunately didn't work.

I suspect I have to write a small embedded ruby template / code snipplet to 
generate this structure but after some web search I still have no idea how 
to do that in Embedded Ruby. Does somebody have a short erb suggestion?




-- 
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/17c87311-bf8c-4aba-98ed-af30f62e3aca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to