Is it possible to save the linux command line result in a variable?
I am trying to store an encrypted value in a variable. For encryption, I use the base64 command. To save it in a variable, I use the generate method. But I can’t keep the value.
$secretvalue = generate("/bin/bash","-c","/usr/bin/echo ${password} | /usr/bin/base64")
linux bash puppet puppet-enterprise
Arunraj
source share