Open ffrank opened 7 months ago
Fixes #525
The wrapping of resources is based on how NspawnRes does it.
But I wonder: It would feel much better to just run Watch of both the wrapped file and svc, and in the mount Watch, only wait for the svc to finish, and then also finish.
Hey great to see this! I had a quick look first. Lots of nice work there. Here are the open issues to discuss:
This removes fstab support-- I actually think that is still valuable to have, at least for now-- so how do we handle that? Do we have a separate resource? Do we have it be an optional for this resource? Do we have mount:systemd and mount:fstab ? Also see 2...
Is the systemd variant of this resource (as shown here) similar enough to the svc resource that they should just be combined there? I think architecturally they're quite similar. I would need to investigate more.
I'm not convinced I want shell tests to stay around. So we should consider a better approach if possible. This won't block your patch, but I want to mention it in case you have ideas.
Thanks Felix!
FYI as per Felix good idea we're in https://github.com/purpleidea/mgmt/issues/745 for now until we agree on how to proceed.
Let's go. It's still not perfect, but simpler and more correct.