-
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 systemd service filename #310
Comments
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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. As a part of adding the specs for manage_service_file I've added a helper function that I was able to apply to existing tests.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 9, 2019
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.
CallumBanbery
added a commit
to CallumBanbery/puppet-redis
that referenced
this issue
May 10, 2019
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.
cegeka-jenkins
pushed a commit
to cegeka/puppet-redis
that referenced
this issue
Feb 16, 2021
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Set 'redis::manage_service_file: true' in hieradata.
Set 'redis::service_provider: "systemd"' in hieradata.
What are you seeing
When the config class creates the default instance it doesn't set the 'redis_server_name' variable, if the instance is set to manage the service file using systemd it creates the file as '/etc/systemd/system/.service'
puppet-redis/manifests/instance.pp
Lines 219 to 226 in 950e9e3
puppet-redis/manifests/instance.pp
Line 256 in 950e9e3
What behaviour did you expect instead
It appears to be doing as the code says to do, however creating a service file just called '.service' is bad.
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: