Skip to content

Commit

Permalink
added aide task
Browse files Browse the repository at this point in the history
  • Loading branch information
kekogya committed Apr 21, 2020
1 parent 4cd20cd commit 90e8cf8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Release 1.3.5

**Enhancements**

* Updated pdk
* Added puppet aide task to initialize and copy aide database

## Release 1.2.5

**Enhancements**
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,13 @@ aide::syslogout: false
aide::hour: 1
```

### Tasks
The aide module has a task that allows a user to manually initialize aide and copy the database. This is paticular useful when multiple changes are detected on more than one server. The commands the task executes are below and has been tested on Ubuntu.
```
aideinit
cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db
```

## Limitations

This module currently supports RedHat, CentOS, Debian and Ubuntu Linux but it has been fully tested on Ubuntu 16.04 and Ubuntu 18.04.
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iu-aide",
"version": "1.2.5",
"version": "1.3.5",
"author": "Kenneth Gyan <kgyan@iu.edu>",
"summary": "Installs, configures, and manages AIDE (Advanced Intrustion Detection Environment).",
"license": "BSD-3-Clause",
Expand Down Expand Up @@ -68,7 +68,7 @@
"cis-benchmarks",
"cis"
],
"pdk-version": "1.16.0",
"pdk-version": "1.17.0",
"template-url": "https://github.com/puppetlabs/pdk-templates.git#1.10.0",
"template-ref": "tags/1.10.0-0-gbba9ac3"
}
7 changes: 7 additions & 0 deletions tasks/aideinit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"puppet_task_version": 1,
"supports_noop": true,
"description": "This task initializes aide and copies the aide database",
"parameters": {
}
}
4 changes: 4 additions & 0 deletions tasks/aideinit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

/usr/sbin/aideinit
/bin/cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db

0 comments on commit 90e8cf8

Please sign in to comment.