Closed jhoblitt closed 8 years ago
I'm not a Debian/Ubuntu user but I don't think messing with /etc/default/* is nessicary. The service type should deal with enabling LSB init scripts: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/service/debian.rb
Na, its not an init script. /etc/default is analogous to /etc/sysconfig.
Yes, I know. And it shouldn't be necessary to mess with it to get the service to start on boot.
ugh, the smartmontools init script checks for it though... that is ridiculous.
Any decision on this? All shell_config
does is this:
augeas { "shell_config_start_smartd":
lens => 'Shellvars.lns',
incl => /etc/default/smartmontools,
changes => 'set start_smartd "yes"',
}
Or in the case of $file_ensure
== absent
,
augeas { "shell_config_start_smartd":
lens => 'Shellvars.lns',
incl => /etc/default/smartmontools,
changes => 'remove start_smartd',
}
I can write up an alternate PR, if you need.
@lamawithonel That would be fantastic!
superseded by #47
How about this instead?
(augeas is my new favorite puppet type apparently?)