diff options
author | Carlos Camacho <ccamacho@redhat.com> | 2017-02-26 21:36:39 +0100 |
---|---|---|
committer | Carlos Camacho <ccamacho@redhat.com> | 2017-02-28 16:25:51 +0000 |
commit | 4f3a72e7d25e9fff192af7a14d8d535286b2d7e2 (patch) | |
tree | 9ecba691b5b23cf9e6d5cf079b79e77fc8112189 | |
parent | a3ad36ad3baef935fda1155b2aeabaacf64f7357 (diff) |
Add auditd upgrate steps
Add base upgrade steps for auditd
Change-Id: Iaa56eb40ed80d20744cf8bab18504d700466d26e
(cherry picked from commit 5838d6f765a1ca9535b5d57c1299439040a5def2)
-rw-r--r-- | puppet/services/auditd.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/puppet/services/auditd.yaml b/puppet/services/auditd.yaml index 639631e1..a0535ae7 100644 --- a/puppet/services/auditd.yaml +++ b/puppet/services/auditd.yaml @@ -32,3 +32,18 @@ outputs: auditd::rules: {get_param: AuditdRules} step_config: | include ::tripleo::profile::base::auditd + upgrade_tasks: + - name: Check if auditd is deployed + command: systemctl is-enabled auditd + tags: step0,validation + ignore_errors: True + register: auditd_enabled + - name: "PreUpgrade step0,validation: Check if auditd is running" + shell: > + /usr/bin/systemctl show 'auditd' --property ActiveState | + grep '\bactive\b' + when: auditd_enabled.rc == 0 + tags: step0,validation + - name: Stop auditd service + tags: step2 + service: name=auditd state=stopped |