Commit a7e8a85e authored by Cool Fire's avatar Cool Fire

Use versioncmp instead since puppet facts that are numbers still insist on being strings

parent 60177e66
Pipeline #1713 passed with stages
in 8 minutes and 23 seconds
......@@ -22,7 +22,7 @@ class profile::base::snmpclient(
location => $location,
}
if $facts['os']['family'] == 'Debian' and $facts['os']['release']['major'] >= '9' {
if $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '9') >= 0 {
file { '/etc/systemd/system/snmpd.service':
ensure => file,
owner => 'root',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment