Skip to content

Instantly share code, notes, and snippets.

@binford2k
Created February 25, 2020 17:30
Show Gist options
  • Save binford2k/69c9bedde23712172437ee2235e0f3ed to your computer and use it in GitHub Desktop.
Save binford2k/69c9bedde23712172437ee2235e0f3ed to your computer and use it in GitHub Desktop.
$variables = {
'password' => 'this is my passphrase'.node_encrypt::secret,
}
# compile the template source into the catalog
file { '/etc/secrets.conf':
ensure => file,
content => Deferred('inline_epp',
['PASSWORD=<%= $password %>', $variables]),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment