Setup inventory view using oneshot quadlet#32
Conversation
| }, | ||
| 'Service' => { | ||
| 'Type' => 'oneshot', | ||
| 'RemainAfterExit' => 'true', |
There was a problem hiding this comment.
Could this cause issues if the view would need to be updated?
There was a problem hiding this comment.
Yes. But the same problem exists with migrations and the services in general. There is the open question of "how does Puppet know it needs to restart services?". In our upgrade tooling, we have worked around this complication by ensuring we stop all services during upgrade. Then the installer will start all the services.
| end | ||
|
|
||
| describe service('iop-core-host-inventory-create-view') do | ||
| it { is_expected.to be_enabled } |
There was a problem hiding this comment.
Unrelated: Do you happen to have a link to documentation that describes the be_enable and be_running predicates. I wasn't able to find any. :-/
There was a problem hiding this comment.
Here ya go -- https://serverspec.org/resource_types.html#service
No description provided.