Way to capture the exec command result which can be used later in puppet

37 Views Asked by At

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,
      } 
}
0

There are 0 best solutions below