Closed anarcat closed 4 years ago
similarily, passing parameters to the class directly, like this:
class { 'needrestart':
configs => [ 'restart' => 'a' ]
}
crashes with:
Error parsing /etc/needrestart/needrestart.conf: Error parsing /etc/needrestart/conf.d/overrides.conf: Can't modify constant item in scalar assignment at (eval 19) line 4, at EOF
the generated config is, strangely:
$nrconf{default_value} = {
restart = 'a';
};
update: #18 is an attempt at fixing this.
and i used this as a workaround for this general issue:
$ignorelist = {
'backups' => ['bacula-sd'],
}
# https://github.com/hetznerZA/hetzner-needrestart/issues/17
file {
'/etc/needrestart/conf.d/more_overrides.conf':
content => template('needrestart/needrestart_customisations.conf.erb');
}
would sure be nice to figure out what to do with that template :)
i think this problem might have been introduced in #12 or #13
Hi there, Thanks for bringing the issue to our attention, we will have a look and revert back in the coming weeks.
hello! did you look at this again?
The following configuration, provided as an example in the README, crashes needrestart:
This is the error:
And this is the generated configuration:
I have tried to find the right way of setting those overrides and it seems there was some work done to do that in #5, but the template that was modified there isn't used anywhere. It looks like @vorlon's fork and this version (available on the forge) have significantly diverged, enough that the parameters in that template are not in use.