Merge "snmp: add SnmpdBindHost parameter"
[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   EndpointMap:
19     default: {}
20     description: Mapping of service endpoint -> protocol. Typically set
21                  via parameter_defaults in the resource registry.
22     type: json
23   SnmpdReadonlyUserName:
24     default: ro_snmp_user
25     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
26     type: string
27   SnmpdReadonlyUserPassword:
28     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
29     type: string
30     hidden: true
31   SnmpdBindHost:
32     description: An array of bind host addresses on which SNMP daemon will listen.
33     type: comma_delimited_list
34     default: ['udp:161','udp6:[::1]:161']
35
36 outputs:
37   role_data:
38     description: Role data for the SNMP services
39     value:
40       service_name: snmp
41       config_settings:
42         tripleo::profile::base::snmp::snmpd_user: {get_param: SnmpdReadonlyUserName}
43         tripleo::profile::base::snmp::snmpd_password: {get_param: SnmpdReadonlyUserPassword}
44         snmp::agentaddress: {get_param: SnmpdBindHost}
45         tripleo.snmp.firewall_rules:
46           '127 snmp':
47             dport: 161
48             proto: 'udp'
49       step_config: |
50         include ::tripleo::profile::base::snmp
51       upgrade_tasks:
52         - name: Stop snmp service
53           tags: step1
54           service: name=snmpd state=stopped