Add role specific information to the service template
[apex-tripleo-heat-templates.git] / puppet / services / snmp.yaml
1 heat_template_version: ocata
2
3 description: >
4   SNMP client configured with Puppet, to facilitate Ceilometer Hardware
5   monitoring in the undercloud. This service is required to enable hardware
6   monitoring.
7
8 parameters:
9   ServiceNetMap:
10     default: {}
11     description: Mapping of service_name -> network name. Typically set
12                  via parameter_defaults in the resource registry.  This
13                  mapping overrides those in ServiceNetMapDefaults.
14     type: json
15   DefaultPasswords:
16     default: {}
17     type: json
18   RoleName:
19     default: ''
20     description: Role name on which the service is applied
21     type: string
22   RoleParameters:
23     default: {}
24     description: Parameters specific to the role
25     type: json
26   EndpointMap:
27     default: {}
28     description: Mapping of service endpoint -> protocol. Typically set
29                  via parameter_defaults in the resource registry.
30     type: json
31   SnmpdReadonlyUserName:
32     default: ro_snmp_user
33     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
34     type: string
35   SnmpdReadonlyUserPassword:
36     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
37     type: string
38     hidden: true
39   SnmpdBindHost:
40     description: An array of bind host addresses on which SNMP daemon will listen.
41     type: comma_delimited_list
42     default: ['udp:161','udp6:[::1]:161']
43
44 outputs:
45   role_data:
46     description: Role data for the SNMP services
47     value:
48       service_name: snmp
49       config_settings:
50         tripleo::profile::base::snmp::snmpd_user: {get_param: SnmpdReadonlyUserName}
51         tripleo::profile::base::snmp::snmpd_password: {get_param: SnmpdReadonlyUserPassword}
52         snmp::agentaddress: {get_param: SnmpdBindHost}
53         tripleo.snmp.firewall_rules:
54           '127 snmp':
55             dport: 161
56             proto: 'udp'
57       step_config: |
58         include ::tripleo::profile::base::snmp
59       upgrade_tasks:
60         - name: Stop snmp service
61           tags: step1
62           service: name=snmpd state=stopped