Merge "Adding keystone parameters for Tacker"
[apex-tripleo-heat-templates.git] / puppet / services / auditd.yaml
1 heat_template_version: ocata
2
3 description: >
4   AuditD configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   AuditdRules:
22     description: Mapping of auditd rules
23     type: json
24     default: {}
25
26 outputs:
27   role_data:
28     description: Role data for the auditd service
29     value:
30       service_name: auditd
31       config_settings:
32         auditd::rules: {get_param: AuditdRules}
33       step_config: |
34         include ::tripleo::profile::base::auditd
35       upgrade_tasks:
36         - name: Check if auditd is deployed
37           command: systemctl is-enabled auditd
38           tags: step0,validation
39           ignore_errors: True
40           register: auditd_enabled
41         - name: "PreUpgrade step0,validation: Check if auditd is running"
42           shell: >
43             /usr/bin/systemctl show 'auditd' --property ActiveState |
44             grep '\bactive\b'
45           when: auditd_enabled.rc == 0
46           tags: step0,validation
47         - name: Stop auditd service
48           tags: step2
49           service: name=auditd state=stopped