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