Show HN: A simple Go utility to ease deployments via SSH and SCP
1–10 of 26 posts
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#2Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#3A comparison to Ansible might be helpful to help clarify why you would choose this instead.
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#4A comparison to Ansible might be helpful to help clarify why you would choose this instead.
This application only allows two things:
* Uploading a file, or series of files. * Running a command, or series of commands.
In short I'm very simple. But because of that it avoids some of the horrors of trying to be overly-complex in the way that Ansible is. It avoids cryptic failures, and the horrible "language" for looping constructs, etc.
I could imagine adding support for cron, mysql, etc, but I think as soon as you allow real conditional actions to such utilities it becomes a mess to use.
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#5A comparison to Ansible might be helpful to help clarify why you would choose this instead.
This. I think Go Templates can be nearly or equally as powerful as Jinja2, but there may need to be additional filters and shortcodes added like Hugo.
Those are things I deliberately left out, but I could be open to persuasion if the expression was natural.
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#6Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#7I believe that we are getting to a point where config management might as well be in a programming language instead of a bunch of ad-hoc scripts in templates that defer to dynamic language scripts and become a mess.
0 - https://github.com/cretz/systrument 1 - https://github.com/cretz/software-ideas/issues/1
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#8This definitely looks interesting, have you considered an option to use rsync instead of scp?
Not a bad idea, but I guess I'd need to think about it. Mostly the "large" files I pull from github, or distribution sites. I tend to only upload some simple config-files, and systemd-service units. So the extra overhead of SCP isn't so significant.
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#9Heh, I made a similar thing (mostly unreleased/undocumented at [0], original idea at [1]) that would take your Go code, build a binary wrapper for it using the target OS arch, SSH to the target, SCP the file over, run the binary, connect stdout/stderr/stdin with the remote, allow the remotely running binary to request files from the home binary, and delete itself once complete. One thing I found is SCP/SFTP is a real…
Re: Show HN: A simple Go utility to ease deployments via SSH and SCP
#10Heh, I made a similar thing (mostly unreleased/undocumented at [0], original idea at [1]) that would take your Go code, build a binary wrapper for it using the target OS arch, SSH to the target, SCP the file over, run the binary, connect stdout/stderr/stdin with the remote, allow the remotely running binary to request files from the home binary, and delete itself once complete. One thing I found is SCP/SFTP is a real…
Is the purpose to use a faster machine for a particular compute job?