9

I'm trying to understand the difference between managing configuration files for the purposes of simplifying automated deployment.

We have 5 environments to build. So far 2 have been built with no versioning at all. Right now we're using Artifactory to "manage" the rpm files. I've been tasked to "version control the other stuff". Right now, other stuff means a couple of properties files.

My question is, if I were to simply "version control the other stuff", I would store the properties files in Github, I'd then have Jenkins "build" then "deploy" it to Artifactory? Isn't it extremely difficult to manage infrastructure versioning without infrastructure as code?

My second question is, since our goals are to simplify automated deployment, shouldn't we be using Ansible (or puppet or chef but I like ansible). We could then store Ansible playbooks (and cloudformation templates, etc.) in Github. In this case, what binaries would there be to version?

2 Answers 2

8

Version Control (using say Git) and Artifact Management (using Artifactory) are complementary. Version control is useful for easily browsing the historical changes and who made them. Artifact management tools can do this but it's clunky. Also they don't offer a fine grained view of changes, as one version change might involve a large amount of changes.

When integrated with a workflow like feature branches, version control offers some real benefits around collaboration particularly for distributed teams.

Some places use just version control with no artifact management, i.e. Reddit. They deploy to 800 servers 200 times a week using just Git. This may or may not be the best solution for you.

An artifact can be many things, not just a binary. It can be a tar ball of files, an rpm, a virtual machine or a docker container. But I've not really seen artifact tools used to deploy configuration management, you could just deploy straight from Git or bundle it into a tarball or rpm.

11

This is a simple thumb rule one could follow

  • Use version control (git, svn, cvs) for the work product created by humans
  • Use artifact management tool (artifactory, nexus, apache archiva) for the software bundle (artifacts) created by the system thru build or packaging process
HUMAN           ==>            System
GIT/SVN  (build/packaging)     artifactory/archiva
1
  • A colleague has recommended to me that Python Jupyter Notebooks should go in Artifactory (instead of git) because they are not only human readable. They also have XML and JavaScript and HTML. Does this argument make sense?
    – Bobby
    Commented Mar 20, 2019 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.