merged with puzzle
This commit is contained in:
parent
795a719e01
commit
9e55abd8b9
2 changed files with 9 additions and 3 deletions
|
@ -15,15 +15,15 @@
|
|||
# Note: If you'd like to use unencrypted passwords, you have to set a variable
|
||||
# $password_salt to an 8 character long salt, being used for the password.
|
||||
# gid: define the gid of the group
|
||||
# absent: let the system take a gid (*default*)
|
||||
# uid: take the same as the uid has if it isn't absent
|
||||
# absent: let the system take a gid
|
||||
# uid: take the same as the uid has if it isn't absent (*default*)
|
||||
# <value>: take this gid
|
||||
# manage_group: Wether we should add a group with the same name as well
|
||||
# Default: true
|
||||
define user::managed(
|
||||
$name_comment = 'absent',
|
||||
$uid = 'absent',
|
||||
$gid = 'absent',
|
||||
$gid = 'uid',
|
||||
$groups = [],
|
||||
$manage_group = 'true',
|
||||
$membership = 'minimum',
|
||||
|
|
6
plugins/puppet/parser/functions/mkpasswd.rb
Normal file
6
plugins/puppet/parser/functions/mkpasswd.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
# needs an 8-char salt *always*
|
||||
module Puppet::Parser::Functions
|
||||
newfunction(:mkpasswd, :type => :rvalue) do |args|
|
||||
%x{/usr/bin/mkpasswd -H MD5 #{args[0]} #{args[1]}}.chomp
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue