Created
September 8, 2015 00:23
-
-
Save AzMoo/c0c6c30bf9484d309dd4 to your computer and use it in GitHub Desktop.
Puppet Django Secret Key
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
module Puppet::Parser::Functions | |
newfunction(:django_secret_key) do |args| | |
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$^&*(-_=+)' | |
password = '' | |
50.times { password << chars[rand(chars.size)] } | |
return password | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment