diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:04:59 -0700 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:04:59 -0700 |
| commit | 8f187c573954b6c8d1650ac33a164c52e032ac16 (patch) | |
| tree | c605d0cf51d272393006e5486bfdc24984cf801f /_posts/2014-03-23-golang-for-sysadmin.md | |
| parent | Update some posts to make the tests pass. (diff) | |
| download | lumberjaph-8f187c573954b6c8d1650ac33a164c52e032ac16.tar.gz | |
Stop using Jekyll.
Moving away from Jekyll to Hugo. This commit clean up the old files to
prepare for the migration.
Diffstat (limited to '_posts/2014-03-23-golang-for-sysadmin.md')
| -rw-r--r-- | _posts/2014-03-23-golang-for-sysadmin.md | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/_posts/2014-03-23-golang-for-sysadmin.md b/_posts/2014-03-23-golang-for-sysadmin.md deleted file mode 100644 index 3b754a2..0000000 --- a/_posts/2014-03-23-golang-for-sysadmin.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: golang for sysadmins -summary: In which I'm looking for a solution on how to deploy golang programs -layout: post ---- - -Recently I've been reading articles about golang and how it can be used to replace scripts that you would usually write in Python Perl or Bash. I can understand why you would do that (you get a binary, so it's faster, it works without the need of an interpreter, etc). - -At work we have a "ops.git" repository with all our rules for cfengines, configurations for services, zones for DNS, and also a tons of scripts. Most of them, today, are in Python/Perl/Bash. I've been looking and toying to replace some of them with golang, but I don't see how we could do that without modifying the existing setup. - -This scripts are copied on a system by `cfengine`, usually in `/usr/local/bin`. I'm trying to figure out how would you do that for programs in go ? I can't imagine a solution where you would have to compile the binary and commit it to the repository (the size of the repository would just explode), and I don't like the idea of having a hook in `cfengine` to compile and put them in place. - -The main solution that I can see here is to have a different repository with all the scripts, and let jenkins build a debian package (something like $company-ops-tools.deb) and then have it deployed/upgraded by cfengine via `apt`. - -Another solution would have to put a Makefile into this repository and let jenkins build some artifacts, put them in a package, and get it deployed. - -Is there another simpler solution ? By simpler I really mean faster than having to go through a build system, since it has to compile, build a package, and then get it deployed. It's not really great when you want to have a quick feedback on a script you're writing, and the current ops are quiet used to this, so having to go through a longer loop would be annoying. - -If you're using go in your company with this kind of setup, I'll be interested in feedback, feel free to contact me by [email](mailto:franck.cuny@gmail.com), on [Twitter](https://twitter.com/franckcuny) or [Google+](https://plus.google.com/+franckcuny). |
