voxpupuli / puppet-augeasproviders_sysctl

Augeas-based sysctl type and provider for Puppet
Apache License 2.0
10 stars 36 forks source link

OpenBSD sysctl doesn't support -e parameter #57

Closed buzzdeee closed 3 years ago

buzzdeee commented 3 years ago

one of the last changes introduced the -e parameter, but that is not supported on OpenBSD.

without the patch, applying catalog fails alike:

Error: Could not prefetch sysctl provider 'augeas': Execution of '/sbin/sysctl -e kern.bufcachepercent net.inet.ip.forwarding net.inet6.ip6.forwarding' returned 1: sysctl: unknown option -- e
usage: sysctl [-Aanq] [name[=value]]
Error: Failed to apply catalog: Execution of '/sbin/sysctl -e kern.bufcachepercent net.inet.ip.forwarding net.inet6.ip6.forwarding' returned 1: sysctl: unknown option -- e
usage: sysctl [-Aanq] [name[=value]]