Rely on the service_provider fact#694
Conversation
|
@ekohl tests fail 💔 |
|
is this a 12.0.0 candidate? |
|
No, it's a branch I had locally that I thought I should finish at some point. I'd rather get 12.0.0 out now and merge this later. |
|
what's the status here? |
9f89e2d to
5c08590
Compare
|
Rebased and updated the tests |
|
test failures related? |
|
I'm not entirely sure how to explain the test failures. It's also annoying we don't have EL7 tests now so that should be fixed first by using an older image. |
|
So that does appear to be the problem: |
|
Thinking more about this, it may well be that |
f85d957 to
e0ab4c5
Compare
This avoids hardcoding the service provider and greatly simplifies the code. It changes the path to systemctl to /bin/systemctl which exists on Debian. On Red Hat /bin is a symlink to /usr/bin so it also works.
This was way too conservative and caused puppetserver to run out of heap space. This gives it a bit more breathing room.
|
After such a long time I finally found out the problem and it was really stupid: I used |
|
This finally passes. The other failures are unrelated. |
| $agent_restart_command = "/usr/sbin/service ${service_name} reload" | ||
| $unavailable_runmodes = [] | ||
| if $facts['service_provider'] == 'systemd' { | ||
| $agent_restart_command = "/bin/systemctl reload-or-restart ${service_name}" |
wbclark
left a comment
There was a problem hiding this comment.
What if any is the relationship between these two commits? Is the change to server_jvm_max_heap_size better suited to a separate PR?
|
It's something I found while testing this manually. Technically it could be a separate PR, but I think there's little value in that. It is only for the acceptance tests so it's not like users need to know about it via the changelog. Combining them saves CI resources. |
Ah, got it, TY |
This avoids hardcoding the service provider and greatly simplifies the code.