Refactored abusehelper init, added support for $abusesa_botnets
This commit is contained in:
parent
7ba77ed2ea
commit
12791c5891
2 changed files with 60 additions and 35 deletions
|
@ -5,6 +5,9 @@
|
|||
# $abusesa_datadir
|
||||
# AbuseSA home directory. Defaults to /var/lib/abusesa.
|
||||
#
|
||||
# $abusesa_botnets
|
||||
# Array of botnet paths to start at boot.
|
||||
#
|
||||
class abusesa {
|
||||
|
||||
case $::operatingsystem {
|
||||
|
@ -76,4 +79,10 @@ class abusesa {
|
|||
}
|
||||
python::setup::install { "/usr/local/src/abusesa": }
|
||||
|
||||
if $abusesa_botnets {
|
||||
$abusehelper_botnets = $abusesa_botnets
|
||||
$abusehelper_user = "abusesa"
|
||||
include abusehelper::init
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue