From 90e8cf80a717469b20cbf4ba99bade4406ebb258 Mon Sep 17 00:00:00 2001 From: kgyan Date: Tue, 21 Apr 2020 16:54:34 -0400 Subject: [PATCH] added aide task --- CHANGELOG.md | 7 +++++++ README.md | 7 +++++++ metadata.json | 4 ++-- tasks/aideinit.json | 7 +++++++ tasks/aideinit.sh | 4 ++++ 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 tasks/aideinit.json create mode 100644 tasks/aideinit.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 90b7da9..6731975 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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** diff --git a/README.md b/README.md index 45dd2d1..d62fb68 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/metadata.json b/metadata.json index c58369b..cc18443 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "iu-aide", - "version": "1.2.5", + "version": "1.3.5", "author": "Kenneth Gyan ", "summary": "Installs, configures, and manages AIDE (Advanced Intrustion Detection Environment).", "license": "BSD-3-Clause", @@ -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" } diff --git a/tasks/aideinit.json b/tasks/aideinit.json new file mode 100644 index 0000000..ab061ad --- /dev/null +++ b/tasks/aideinit.json @@ -0,0 +1,7 @@ +{ + "puppet_task_version": 1, + "supports_noop": true, + "description": "This task initializes aide and copies the aide database", + "parameters": { + } +} diff --git a/tasks/aideinit.sh b/tasks/aideinit.sh new file mode 100644 index 0000000..5ca2820 --- /dev/null +++ b/tasks/aideinit.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +/usr/sbin/aideinit +/bin/cp /var/lib/aide/aide.db.new /var/lib/aide/aide.db \ No newline at end of file