I am running wildfly elytron-tool.sh to mask the password. It is done after the wildfly directory is installed in my node server which is done previous to this step. I want to capture that masked password which is returned from the exec command which can be used later. How to achieve that?
class classname{
exec { '${jboss_home}/bin/elytron-tool.sh mask --salt=12345678 --iteration=256 --secret=':
command => "${jboss_home}/bin/elytron-tool.sh mask --salt=12345678 --iteration=256 --secret=password",
user => $owner,
path => $path,
}
}