Skip to content

Instantly share code, notes, and snippets.

@jelmerk
Created October 22, 2012 20:04
Show Gist options
  • Save jelmerk/3933757 to your computer and use it in GitHub Desktop.
Save jelmerk/3933757 to your computer and use it in GitHub Desktop.
module Puppet::Parser::Functions
newfunction(:aes_encrypt, :type => :rvalue) do |args|
clear_text = args[0]
passphrase = args[1]
.....
end
end
...
in manifest's init.pp :
$maven_encrypted_master_password = aes_encrypt($maven_master_password, 'settings.security')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment