Change flat network name for nosdn fdio scenario
[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   ServiceData:
10     default: {}
11     description: Dictionary packing service data
12     type: json
13   ServiceNetMap:
14     default: {}
15     description: Mapping of service_name -> network name. Typically set
16                  via parameter_defaults in the resource registry.  This
17                  mapping overrides those in ServiceNetMapDefaults.
18     type: json
19   DefaultPasswords:
20     default: {}
21     type: json
22   RoleName:
23     default: ''
24     description: Role name on which the service is applied
25     type: string
26   RoleParameters:
27     default: {}
28     description: Parameters specific to the role
29     type: json
30   EndpointMap:
31     default: {}
32     description: Mapping of service endpoint -> protocol. Typically set
33                  via parameter_defaults in the resource registry.
34     type: json
35   SnmpdReadonlyUserName:
36     default: ro_snmp_user
37     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
38     type: string
39   SnmpdReadonlyUserPassword:
40     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
41     type: string
42     hidden: true
43   SnmpdBindHost:
44     description: An array of bind host addresses on which SNMP daemon will listen.
45     type: comma_delimited_list
46     default: ['udp:161','udp6:[::1]:161']
47   SnmpdOptions:
48     description: A string containing the commandline options passed to snmpd
49     type: string
50     default: '-LS0-5d'
51
52 outputs:
53   role_data:
54     description: Role data for the SNMP services
55     value:
56       service_name: snmp
57       config_settings:
58         tripleo::profile::base::snmp::snmpd_user: {get_param: SnmpdReadonlyUserName}
59         tripleo::profile::base::snmp::snmpd_password: {get_param: SnmpdReadonlyUserPassword}
60         snmp::agentaddress: {get_param: SnmpdBindHost}
61         snmp::snmpd_options: {get_param: SnmpdOptions}
62         tripleo.snmp.firewall_rules:
63           '127 snmp':
64             dport: 161
65             proto: 'udp'
66       step_config: |
67         include ::tripleo::profile::base::snmp
68       upgrade_tasks:
69         - name: Stop snmp service
70           tags: step1
71           service: name=snmpd state=stopped