Does anybody use multiple version control systems?...
# gitops
k
Does anybody use multiple version control systems? We have self hosted Gitlab for our FedRAMP environment, and an existing cloud Bitbucket for our commercial side. I'm curious if anyone has a decent solution for keeping shared configuration and infrastructure in sync between platforms. We don't have anyone on the federal side yet, we just finished building it out and are nearing the end of our audit. We're already having issues with rework and having to untangle changes between the two. I don't particularly want to deal with the headache longer than I need to.
If there's a better channel to post in let me know. I saw gitops and dumped the above here.
c
Essentially - don’t 🙂 . Using git submodules where you need to “share” something and keeping the config and state in one place might be a good solution - I’ve seen that work. Might be a bit of refactoring needed to pull IaC and config out into a module if it’s not already possible with your structure, but you probably rather have that one-time effort than a continuous stream of little problems.
t
I agree with "don't" but setting up GitLab as a mirror of Bitbucket is an option. I've seen some heinous business requirements create some heinous coding patterns... https://docs.gitlab.com/ee/user/project/repository/mirror/
k
I threw out modules and got a lot of pushback for some reason. I'm guessing because it will end up needing a bunch of effort to make that work. I don't think mirror works since they aren't fully shared. Can you define the files to mirror or is it just the whole repo?
c
definitely curious if there is a good solution out there- we mirror some repos between disparate version control systems, it's not great, but for the moment it works (like duct tape) have been burned by submodules enough that I get the pushback 🙂
t
If you want submodules, and you want to make them much less worse... meta is a thing
c
thanks! will check it out used to use a tool called "repo" (terrible name) but meta looks like a reincarnation of it
k
Same, thanks for the reference. I'll check it out as well.