Skip to content

Commit

Permalink
Changed the snmp user and group for Ubuntu 18.04
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
cliff-wakefield-acurus authored and alexjfisher committed Oct 23, 2018
1 parent e1132ca commit 7ab970b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
if $::operatingsystem == 'Debian' and versioncmp($::operatingsystemmajrelease, '9') >= 0 {
$varnetsnmp_owner = 'Debian-snmp'
$varnetsnmp_group = 'Debian-snmp'
} elsif $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemmajrelease, '18.04') >= 0 {
$varnetsnmp_owner = 'Debian-snmp'
$varnetsnmp_group = 'Debian-snmp'
} else {
$varnetsnmp_owner = 'snmp'
$varnetsnmp_group = 'snmp'
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04",
"16.04"
"16.04",
"18.04"
]
}
],
Expand Down

0 comments on commit 7ab970b

Please sign in to comment.