Closed buzzdeee closed 7 years ago
reworked a bit, in order to add default package name in params.pp for 5.7 to '', and 5.8 to 'sudo', based on ::kernelversion. ::operatingsystemrelease is not really suitable for use with OpenBSD, since it usually has -stable, -snapshot, -beta etc. suffixed, which complicates matter with versioncmp()
but enhance the default case, to allow installation of package also on OpenBSD.
reason for that is that OpenBSD recently dropped sudo from base and moved it to ports/packages. At some point in time, a default in param.pp could be added. I tried with versioncmp on operationgsystemrelease, but I only have 5.7-snapshots, or 5.8-beta hosts around, that versioncmp messed totally up with those in order to get it right :(
while there, I added/enhanced spec tests for OpenBSD package installation.