diff options
author | mh <mh@immerda.ch> | 2011-09-06 15:02:51 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-09-06 15:02:51 +0200 |
commit | 64205c93a957bafdfb255a991844f2d7744f11b5 (patch) | |
tree | 4b53b63ad9bd9d2785fe27190fccecee54ef90da /lib/puppet/parser/functions/trocla.rb | |
parent | 0b59b4e84c8d3d2244294e625f0b916709959e28 (diff) |
as setting a hash first is a bit cumbersome, we provide the possibility to pass a yaml string
Diffstat (limited to 'lib/puppet/parser/functions/trocla.rb')
-rw-r--r-- | lib/puppet/parser/functions/trocla.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/trocla.rb b/lib/puppet/parser/functions/trocla.rb index 487d1fd..e042872 100644 --- a/lib/puppet/parser/functions/trocla.rb +++ b/lib/puppet/parser/functions/trocla.rb @@ -20,6 +20,10 @@ Create or get the mysql style sha1 hashed password. # this needs to be assigned # like that. $password_user3 = trocla('user3','pgsql', $options_user3) + +Options can also be passed as a yaml string: + + $password_user3 = trocla('user3','pgsql', \"username: 'user3'\") " ) do |*args| require File.dirname(__FILE__) + '/../../util/trocla_helper' |