Git for config files in etc and local

Hi,

I would like to apply simple version control to parts of checkmk. The existing support is good but limited to a specifik part of the folder structure.

In particular, I would like to git the following:

/omd/sites/x/etc/nagvis/maps
/omd/sites/x/local/share/nagvis/htdocs/userfiles/images

Is it ok to add .git folders in these places in the structure? Would it be better to place .git higher (/omd, /omd/sites, /omd/sites/x, etc).

Thanks for advice.

You could make $OMD_ROOT/local or even the whole $OMD_ROOT directory a git repo and work with .gitignore to exclude non-relevant parts.

But there is no automatic support like with the git integration in the Setup menu.

Robert,

Thanks for the quick and informative reply - exactly what I was hoping for. I just did not want to go adding .gits without checking first.

-Arvid

Hello!

If one of the answers helped you solve your question, please mark it as the solution. This way, you thank the person who helped you and also indicate that the question has been resolved. This, in turn, helps others who come across the same question.

Solution

Thank you!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.