diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-01 05:57:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-01 05:57:48 +0000 |
commit | 7d386877fac3aa62167cf5e96940c6c24105d984 (patch) | |
tree | 91279c40b8ebf35a38b5dbe52600f19616f0d90d /puppet/services | |
parent | 28cc7e6e31a0870716aff4ab706a1cef997264ff (diff) | |
parent | 4f3a72e7d25e9fff192af7a14d8d535286b2d7e2 (diff) |
Merge "Add auditd upgrate steps" into stable/ocata
Diffstat (limited to 'puppet/services')
-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 |