From 13ab4407818eff38e77341cb3c517574299ea473 Mon Sep 17 00:00:00 2001 From: Marc Herrera Date: Fri, 19 Feb 2021 13:27:03 +0100 Subject: [PATCH] Bugfix snmpv3 user --- CHANGELOG.md | 4 ++++ manifests/v3user.pp | 2 +- metadata.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1afb75c..e116b6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.2.7 + +* Bugfix v3user encpass variable was not taken into account + ## 0.2.6 * Added **snmpd::extend** diff --git a/manifests/v3user.pp b/manifests/v3user.pp index f654327..296a848 100644 --- a/manifests/v3user.pp +++ b/manifests/v3user.pp @@ -24,7 +24,7 @@ } exec { "create snmpdv3 user ${username}": - command => "/usr/local/bin/puppet_net-snmp-create-v3-user ${ro_flag} -A ${authpass} -a ${auth_algorithm} -X ${authpass} -x ${enc_algorithm} ${username}", + command => "/usr/local/bin/puppet_net-snmp-create-v3-user ${ro_flag} -A ${authpass} -a ${auth_algorithm} -X ${encpass} -x ${enc_algorithm} ${username}", # unless => "grep '${username}' ${snmpd::params::net_snmpd_persistent_datafile}", unless => "snmpwalk -v3 -l authPriv -u nttrmmon -a SHA -A \"${authpass}\" -x AES -X \"${authpass}\" 127.0.0.1 .1.3.6.1.6.3.15.1.2.2.1.3 -t 1 -r 1", path => '/usr/sbin:/usr/bin:/sbin:/bin', diff --git a/metadata.json b/metadata.json index 9402fad..3253e50 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "eyp-snmpd", - "version": "0.2.6", + "version": "0.2.7", "author": "eyp", "summary": "SNMP agent management", "license": "Apache-2.0",