Skip to content

Commit 89b2d40

Browse files
author
Sam J Sharpe
committed
Add a couple of rkhunter tasks
1 parent f19c39e commit 89b2d40

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

fabfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import licensify
1919
import mongo
2020
import puppet
21+
import rkhunter
2122
import search
2223
import vm
2324

rkhunter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from fabric.api import *
2+
3+
@task(default=True)
4+
def check(*args):
5+
"""Run rkhunter on the machine"""
6+
sudo('/usr/bin/rkhunter --cronjob --report-warnings-only --appendlog')
7+
8+
def propupdate(*args):
9+
"""Update rkhunter file property database on the machine"""
10+
sudo('/usr/bin/rkhunter --propupdate')

0 commit comments

Comments
 (0)