Skip to content

Commit

Permalink
Merge pull request #15 from NTTCom-MS/RITM0229913
Browse files Browse the repository at this point in the history
Bugfix snmpv3 user
  • Loading branch information
mherrre authored Feb 19, 2021
2 parents db0429d + 13ab440 commit c889345
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.2.7

* Bugfix v3user encpass variable was not taken into account

## 0.2.6

* Added **snmpd::extend**
Expand Down
2 changes: 1 addition & 1 deletion manifests/v3user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit c889345

Please sign in to comment.