Hi Luca,
I have to convert a string in base64 before placing it inside a template
> with puppet.
> Is there a function available and how?
>
Puppet templates are embedded ruby, and you can do almost anything you can
with regular ruby. So you the Base64 module from ruby:
<%
require 'base64'
%>
<%= Base64.encode64('foobar') %>
Cheers,
Paul
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/VGxscxdr3bgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.