-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix manage_service_file variable #309
Fix manage_service_file variable #309
Conversation
I think this is fixing a bug, but also changing the default behaviour? Currently puppet-redis/manifests/config.pp Line 36 in 950e9e3
ie we end up with redis::instance {'default':
manage_service_file => undef,
...
} This should result in the default value of puppet-redis/manifests/instance.pp Line 212 in 950e9e3
With this change, we will now correctly use the value from params.pp, but unfortunately that's a different default. Does this need to be updated too? Are you able to add some spec tests to prove/disprove what's actually happening? |
Correction, your change is correct. I didn't notice that All the same, do you think you'd be able to add a spec test for the |
The manage_service_file is configured incorrectly and doesn't allow for overriding the value with hieradata. Updaing the init.pp class params allows the file to be passed in.
5858ca1
to
30f9b8c
Compare
@alexjfisher I've added tests for having the let(:params) do
{
manage_service_file: true,
service_provider: 'systemd'
}
end But passing the value in as a fact and it's fine. puppet-redis/spec/classes/redis_spec.rb Lines 8 to 16 in 30f9b8c
I just don't know why that's required as it should really work from |
Fixes voxpupuli#308 Fixes voxpupuli#310 The manage_service_file is configured incorrectly and doesn't allow for overriding the value with hieradata. Updaing the init.pp class params allows the file to be passed in. The filename for the systemd default service was incorrectly set as the variable is undefined.
30f9b8c
to
eed9525
Compare
@CallumBanbery Thank you very much for your contribution. |
Pull Request (PR) description
The manage_service_file is configured incorrectly and doesn't
allow for overriding the value with hieradata. Updaing the init.pp
class params allows the file to be passed in.
This Pull Request (PR) fixes the following issues
Fixes #308
Fixes #310