summaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-02-28 15:23:21 +0000
committerGerrit Code Review <review@openstack.org>2017-02-28 15:23:21 +0000
commit86fe8bf7e697233fecaff91d2f8669e059ff37c9 (patch)
tree918c1df731a332989da1b56d8c8940d6e4e7260c /puppet
parent73a3eb9be5259a43364770b39b57d87520b455fe (diff)
parent5838d6f765a1ca9535b5d57c1299439040a5def2 (diff)
Merge "Add auditd upgrate steps"
Diffstat (limited to 'puppet')
-rw-r--r--puppet/services/auditd.yaml15
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