snmp: add SnmpdBindHost parameter
[apex-tripleo-heat-templates.git] / puppet / services / snmp.yaml
index fd6ed81..072ccc1 100644 (file)
@@ -28,6 +28,10 @@ parameters:
     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
     type: string
     hidden: true
+  SnmpdBindHost:
+    description: An array of bind host addresses on which SNMP daemon will listen.
+    type: comma_delimited_list
+    default: ['udp:161','udp6:[::1]:161']
 
 outputs:
   role_data:
@@ -37,6 +41,7 @@ outputs:
       config_settings:
         tripleo::profile::base::snmp::snmpd_user: {get_param: SnmpdReadonlyUserName}
         tripleo::profile::base::snmp::snmpd_password: {get_param: SnmpdReadonlyUserPassword}
+        snmp::agentaddress: {get_param: SnmpdBindHost}
         tripleo.snmp.firewall_rules:
           '127 snmp':
             dport: 161
@@ -45,5 +50,5 @@ outputs:
         include ::tripleo::profile::base::snmp
       upgrade_tasks:
         - name: Stop snmp service
-          tags: step2
+          tags: step1
           service: name=snmpd state=stopped