Adding SNMPd auth credentials
authorLadislav Smola <lsmola@redhat.com>
Fri, 25 Apr 2014 12:06:46 +0000 (14:06 +0200)
committerLadislav Smola <lsmola@redhat.com>
Mon, 28 Apr 2014 13:07:37 +0000 (15:07 +0200)
-Undercloud Ceilometer has to have access to SNMPd credentials,
 so it can poll the Overcloud nodes
-In every Overcloud node, we need to set the same cretentials
 to SNMPd.conf

Change-Id: Icf7c0c1772b6380b7136108e61c15cafe17274ba

nova-compute-config.yaml
nova-compute-instance.yaml
overcloud-source.yaml
undercloud-source.yaml

index 02d8e00..b296083 100644 (file)
@@ -14,6 +14,10 @@ Resources:
           metering_secret: {get_input: ceilometer_metering_secret}
           service-password: {get_input: ceilometer_password}
           compute_agent: {get_input: ceilometer_compute_agent}
+        snmpd:
+          export_MIB: UCD-SNMP-MIB
+          readonly_user_name: {get_input: snmpd_readonly_user_name}
+          readonly_user_password: {get_input: snmpd_readonly_user_password}
         glance:
           host: {get_input: glance_host}
         hosts: {get_input: static_hosts}
index 71e47cc..fe04ee4 100644 (file)
@@ -43,7 +43,7 @@ Parameters:
           }
         }
     Type: Json
-  KeyName: 
+  KeyName:
     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
     Type: String
     Default: default
@@ -96,6 +96,15 @@ Parameters:
     Description: The password for the ceilometer service account.
     Type: String
     NoEcho: true
+  SnmpdReadonlyUserName:
+    Default: ro_snmp_user
+    Description: The user name for SNMPd with readonly rights running on all Overcloud nodes
+    Type: String
+  SnmpdReadonlyUserPassword:
+    Default: unset
+    Description: The user password for SNMPd with readonly rights running on all Overcloud nodes
+    Type: String
+    NoEcho: true
   NovaComputeDriver:
     Type: String
     Default: libvirt.LibvirtDriver
@@ -176,6 +185,8 @@ Resources:
         ceilometer_metering_secret: {Ref: CeilometerMeteringSecret}
         ceilometer_password: {Ref: CeilometerPassword}
         ceilometer_compute_agent: {Ref: CeilometerComputeAgent}
+        snmpd_readonly_user_name: {Ref: SnmpdReadonlyUserName}
+        snmpd_readonly_user_password: {Ref: SnmpdReadonlyUserPassword}
         glance_host: {Ref: GlanceHost}
         static_hosts: {Ref: StaticHosts}
         keystone_host: {Ref: KeystoneHost}
index ecdf05c..7a1780a 100644 (file)
@@ -117,6 +117,15 @@ Parameters:
     Description: The password for the ceilometer service account.
     Type: String
     NoEcho: true
+  SnmpdReadonlyUserName:
+    Default: ro_snmp_user
+    Description: The user name for SNMPd with readonly rights running on all Overcloud nodes
+    Type: String
+  SnmpdReadonlyUserPassword:
+    Default: unset
+    Description: The user password for SNMPd with readonly rights running on all Overcloud nodes
+    Type: String
+    NoEcho: true
   CloudName:
     Default: ''
     Description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
@@ -376,6 +385,12 @@ Resources:
           metering_secret: {Ref: CeilometerMeteringSecret}
           service-password:
             Ref: CeilometerPassword
+        snmpd:
+          export_MIB: UCD-SNMP-MIB
+          readonly_user_name:
+            Ref: SnmpdReadonlyUserName
+          readonly_user_password:
+            Ref: SnmpdReadonlyUserPassword
         nova:
           compute_driver: libvirt.LibvirtDriver
           db: mysql://nova:unset@localhost/nova
@@ -422,7 +437,7 @@ Resources:
       config: {Ref: controllerConfig}
       server: {Ref: controller0}
       input_values:
-        controller_host:  
+        controller_host:
           Fn::Select:
             - 0
             - Fn::Select:
index 9eaa878..2b24041 100644 (file)
@@ -25,6 +25,15 @@ Parameters:
     Description: The password for the ceilometer service account.
     Type: String
     NoEcho: true
+  SnmpdReadonlyUserName:
+    Default: ro_snmp_user
+    Description: The user name for SNMPd with readonly rights running on all Overcloud nodes
+    Type: String
+  SnmpdReadonlyUserPassword:
+    Default: unset
+    Description: The user password for SNMPd with readonly rights running on all Overcloud nodes
+    Type: String
+    NoEcho: true
   Flavor:
     Default: baremetal
     Description: Flavor to request when deploying.
@@ -149,6 +158,10 @@ Resources:
       ceilometer:
         db: mysql://ceilometer:unset@localhost/ceilometer
         metering_secret: {Ref: CeilometerMeteringSecret}
+        snmpd_readonly_user_name:
+          Ref: SnmpdReadonlyUserName
+        snmpd_readonly_user_password:
+          Ref: SnmpdReadonlyUserPassword
         service-password:
           Ref: CeilometerPassword
       cinder: