Created
February 25, 2020 17:30
-
-
Save binford2k/69c9bedde23712172437ee2235e0f3ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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