Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10 from adamcstephens/user_change_restart
Browse files Browse the repository at this point in the history
user changes need a service restart
  • Loading branch information
adamcrews committed Dec 17, 2014
2 parents 8a2079a + 70dba93 commit 6124c08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manifests/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,22 @@
file { "${user_base}/${title}/auth/password":
ensure => file,
content => "${password}\n",
notify => Service['nessus'],
}

# For the clear txt password to work, we need to ensure there is no hash file.
file { "${user_base}/${title}/auth/hash":
ensure => absent,
ensure => absent,
notify => Service['nessus'],
}

# if we are an admin, just touch the admin file
file { "${user_base}/${title}/auth/admin":
ensure => $admin ? {
true => file,
default => absent,
}
},
notify => Service['nessus'],
}

file { "${user_base}/${title}/auth/rules":
Expand All @@ -59,6 +62,7 @@
ensure => absent,
backup => false,
recurse => true,
notify => Service['nessus'],
}
}
}

0 comments on commit 6124c08

Please sign in to comment.