6

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?

6

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 its clunky. Also they dont 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 managememt, you could just deploy straight from git or bundle it into a tarball or rpm.

8

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
  • 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 Mar 20 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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