Merge branch 'fix_purge_sshkey_param' into 'master'

Fix user::managed for earlier (<3.6) puppet agents



See merge request !1
This commit is contained in:
LeLutin 2015-10-09 17:38:34 +00:00
commit c8e33769c8

View file

@ -78,9 +78,18 @@ define user::managed(
shell => $real_shell,
groups => $groups,
membership => $membership,
purge_ssh_keys => $purge_ssh_keys,
}
if $purge_ssh_keys {
if versioncmp($::puppetversion, '3.6') >= 0 {
User[$name] {
purge_ssh_keys => true
}
}
else {
notice("Parameter purge_ssh_keys is unsupported in your Puppet agent!")
}
}
if $managehome {
file{$real_homedir: }