Update the template_version alias for all the templates to pike.
[apex-tripleo-heat-templates.git] / puppet / services / snmp.yaml
1 heat_template_version: pike
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   SnmpdOptions:
44     description: A string containing the commandline options passed to snmpd
45     type: string
46     default: '-LS0-5d'
47
48 outputs:
49   role_data:
50     description: Role data for the SNMP services
51     value:
52       service_name: snmp
53       config_settings:
54         tripleo::profile::base::snmp::snmpd_user: {get_param: SnmpdReadonlyUserName}
55         tripleo::profile::base::snmp::snmpd_password: {get_param: SnmpdReadonlyUserPassword}
56         snmp::agentaddress: {get_param: SnmpdBindHost}
57         snmp::snmpd_options: {get_param: SnmpdOptions}
58         tripleo.snmp.firewall_rules:
59           '127 snmp':
60             dport: 161
61             proto: 'udp'
62       step_config: |
63         include ::tripleo::profile::base::snmp
64       upgrade_tasks:
65         - name: Stop snmp service
66           tags: step1
67           service: name=snmpd state=stopped