Closed tpdownes closed 8 years ago
P.S. I have 2 more commits which fixes a number of other problems.
variable
to defined resource that defaults to $title
. This allows the logging to take on vernacular-friendly names./etc/sysctl.conf
is confusing. Variable is set in 2 places if it exists in /etc/sysctl.conf
prior to execution. Modify behavior to remove entries from /etc/sysctl.conf
.refreshonly
precludes use of onlyif
in exec
resource. Eliminate refreshonly
and rely on combination of notify
and onlyif
to prevent unnecessary executions./etc/sysctl.d
file prior to enforcing the value. Prevents another unnecessary exec
resource from running.P.P.S. I intend for this to be a new branch, not to overwrite master. But I can't express that in a pull request.
If you're willing to introduce a dependency on puppetlabs-stdlib
, you could replace the line removal exec
with a file_line
.
@thias are you willing to accept this PR? @tpdownes if @thias won't accept your PR would you add your fork to the puppetforge as own module?
Eliminate need for hiera_merge_values because advanced lookup features are now built-in to Puppet 4 and more recent versions of hiera.
Additionally, resolve weirdness of namespace where sysctl is not a class but sysctl::base is a class, by making sysctl a class and moving defined resource to sysctl::configuration. The new way of using this class is to
include sysctl
and set, e.g.,
Because Puppet 4 is a breaking upgrade in many ways I do not feel uncomfortable making this a breaking upgrade. There are a number of issues open that seem to stem from the fact that
sysctl
is a defined resource but not a class.