Merge "Add auditd upgrate steps"

This commit is contained in:
Jenkins 2017-02-28 15:23:21 +00:00 committed by Gerrit Code Review
commit 86fe8bf7e6

View File

@ -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