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:
commit
c8e33769c8
1 changed files with 10 additions and 1 deletions
|
@ -78,9 +78,18 @@ define user::managed(
|
||||||
shell => $real_shell,
|
shell => $real_shell,
|
||||||
groups => $groups,
|
groups => $groups,
|
||||||
membership => $membership,
|
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 {
|
if $managehome {
|
||||||
file{$real_homedir: }
|
file{$real_homedir: }
|
||||||
|
|
Loading…
Reference in a new issue