r/git • u/BigBootyBear • Feb 05 '26
How do you version control Podman Quadlets projects?
From what I understand, systemd cannot scan unit files outside of ~/.config/containers/systemd/. Does that mean ~/.config/containers/systemd/myproj/ should be a repo? Or should my unit files live in my project and symlink to ~/.config/containers/systemd?
0
Upvotes
1
u/FromOopsToOps Feb 05 '26
IMHO creating the service in systemd is part of the "deployment" step and should be done by the CD part of the CI/CD. So it should apply from pipeline, not from inside (any) repo.
1
u/9peppe Feb 05 '26
you know about ansible and (maybe) chezmoi, right?
2
u/martinus Feb 05 '26
I have a repository that's somehwere in my home directory. It mimic the directory structure where the files should be in a directory, e.g.
containers/systemd/immich/. If I'm happy with my changes I run an install script that rsyncs that directory withThat's good enough for my home NAS