Skip to content
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

expose the daemon_reload parameter from systemd::drop_in to systemd::service_limits #168

Closed

Conversation

gfa
Copy link

@gfa gfa commented Jan 8, 2021

I did need this to break a dependency cycle when calling systemd::service_limits and systemd::timer (with different resources) within the same class

@gfa gfa force-pushed the gfa_expose_daemon_reload_to_service_limits branch from d44a411 to 254cf2e Compare January 8, 2021 09:46
@gfa gfa force-pushed the gfa_expose_daemon_reload_to_service_limits branch from 254cf2e to 4e4416b Compare January 8, 2021 09:52
@gfa
Copy link
Author

gfa commented Jan 13, 2021

There are 15 tests that fail always

rspec ./spec/defines/dropin_file_spec.rb[1:1:1:10:1] # systemd::dropin_file supported operating systems on redhat-8-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:2:10:1] # systemd::dropin_file supported operating systems on ubuntu-18.04-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:3:10:1] # systemd::dropin_file supported operating systems on oraclelinux-7-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:4:10:1] # systemd::dropin_file supported operating systems on ubuntu-16.04-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:5:10:1] # systemd::dropin_file supported operating systems on archlinux-5-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:6:10:1] # systemd::dropin_file supported operating systems on centos-8-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:7:10:1] # systemd::dropin_file supported operating systems on centos-7-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:8:10:1] # systemd::dropin_file supported operating systems on fedora-30-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:9:10:1] # systemd::dropin_file supported operating systems on redhat-7-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:10:10:1] # systemd::dropin_file supported operating systems on debian-9-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:11:10:1] # systemd::dropin_file supported operating systems on debian-10-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:12:10:1] # systemd::dropin_file supported operating systems on sles-15-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:13:10:1] # systemd::dropin_file supported operating systems on debian-8-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:14:10:1] # systemd::dropin_file supported operating systems on sles-12-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

rspec ./spec/defines/dropin_file_spec.rb[1:1:15:10:1] # systemd::dropin_file supported operating systems on virtuozzolinux-7-x86_64 with sensitve content is expected to contain File[/etc/systemd/system/sensitive.service.d/sensitive.conf] with ensure => "file" and content  supplied string

I get those errors even when running locally against master, and in other PRs I see the same errors #167 #169

@ekohl
Copy link
Member

ekohl commented Jan 13, 2021

I'm not a maintainer, but thoughts on #171?

@gfa
Copy link
Author

gfa commented Jan 13, 2021

I'm not a maintainer, but thoughts on #171?

I just saw #171, looks pretty good and it will solve my problem :)
However I have machines running puppet agent < 5 so i cannot yet drop this

I'll check how fast can we upgrade puppet agents and luckily close this PR :)

@raphink
Copy link
Member

raphink commented Jan 14, 2021

I'm in favor of #171

@raphink raphink closed this Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants