Is it possible to use Deferred with the command in resource type exec?

The code we are trying to replace to use a Vault secret has an gpg key as a 
passed in secret. I saw a code example in Ben Ford's blog post.

notify { 'vault server debugging': # Defer interpolation to runtime after 
the value is resolved. message => Deferred( 'sprintf', ['Password: %s', 
$db_password] ), }

I was wondering if similar logic could be used for exec? And maybe %p is 
better for a key than %s.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/46803cd9-db3e-4300-b528-98cb09eec1e7n%40googlegroups.com.

Reply via email to