Closed jyaworski closed 7 years ago
A couple of options are available, then. In https://github.com/voxpupuli/puppet-collectd we made a minimum_version parameter to get around the 'needs two runs to configure' problem. We could look at the matrix that this module supports, and return the oldest version in the matrix. Then it would populate on first run.
Although this isn't necessarily an argument, "sudo" not being installed is very rare these days.
Another alternative is that if it returns blank or isn't installed somehow, we could then use rpm or dpkg.
@jyaworski I like your suggestion. Querying the package manager in the fact is one way to avoid the requirement of multiple runs, as you will have a version.
@tosmi Do you know, if the warning inside sudo::conf is still required?
@saz done.
Ping @saz
Is there a reason for closing this?
It was unmerged for some time.
What if sudo isn't installed? This fact is used inside the module on RedHat only and will try rpm querying first.