I have not tested the vault_lookup and Deferred fu...
# puppet
b
I have not tested the vault_lookup and Deferred function much in the last 2 years since I set it up, but I was surprised to see my secret output to the command line. Puppet 8.10 on AlmaLinux. My code is following the format below. Thoughts? I know that there was an issue with delayed processing but I thought that had been fixed.
Copy code
$variables = {
'password' => Deferred('vault_lookup::lookup',
["secret/test", 'https://vault.docker:8200']),
}

# compile the template source into the catalog
file { '/etc/secrets.conf':
ensure => file,
content => stdlib::deferrable_epp('mymodule/secrets.conf.epp', $variables)
}