user: Added cron job for updating the user classes
This commit is contained in:
parent
bd9b80ed90
commit
3a119a5340
1 changed files with 14 additions and 0 deletions
|
@ -368,6 +368,20 @@ class user::system {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Update user classes from LDAP.
|
||||||
|
#
|
||||||
|
class user::cron {
|
||||||
|
|
||||||
|
cron { "puppet-make-user":
|
||||||
|
ensure => present,
|
||||||
|
command => "( cd /etc/puppet/modules/user && make ) >/dev/null",
|
||||||
|
user => "root",
|
||||||
|
minute => "*/5",
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Add local user account.
|
# Add local user account.
|
||||||
#
|
#
|
||||||
define user::add($uid, $gid, $comment, $home, $shell, $groups=undef) {
|
define user::add($uid, $gid, $comment, $home, $shell, $groups=undef) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue