i need to generate a token for use in a config fil...
# puppet
n
i need to generate a token for use in a config file. a colleague's previous pass at this used
execs
to generate the token and update the conf file. right now, it's erb but could be an epp template if that offers any benefits. trying to use ruby methods within the template like
Copy code
TOKEN: "<%=`/usr/bin/generate token username=xyz lifespan=3600`.split('=').last%>"
doesn't emit the value of the expression. what would folks suggest here?