I wrote my own service and I'd like to deploy it via Juju/Puppet scripts. Main goal is to automate whole process of deploying it and I've found out Juju/Puppet should be the best.
- Do I have to prepare package (deb/rpm) or can it be downloaded from remote repository (it's python service)?
- How should I manage configuration files for this service? Each node has slightly different configuration file and I'd like to know what are approaches to solve this automatically. Is there any common configuration file format which could be used or maybe I could select which lines should be included in configuration on which node or specify "hostname=
hostname -s" and it will be executed by Juju/Puppet and overwrite. Any common solutions?
I'm interested how it is done in production - in datacenters, testing environments etc.. How administrators deal with all those configuration files. How are they automating their work. Recently I had to configure many different services (some of them was installed just from sources, because there was no packages for my distribution - I'm using Ubuntu 12.04) on few different servers. I had to create testing environment and I was really bored when I had to repeat each configuration on each node. I'm not an expert at bash scripting to automate whole process in single or few bash scripts, so maybe tools like Juju/Puppet could be helpful - especially I'm not fan of bash :) and I'd like to write as little as it's possible in bash.
I've never worked at datacenter, so I'd like to know how do professionals do it.