Show HN: Welder – set up your Linux server with plain shell scripts
1–10 of 71 posts
Re: Show HN: Welder – set up your Linux server with plain shell scripts
#2Re: Show HN: Welder – set up your Linux server with plain shell scripts
#3I was about to make the point about Ansible but I guess you've already made it in the README.
Looking at how you use this thing, I'm really not sure it would save me any time versus using Ansible.
Re: Show HN: Welder – set up your Linux server with plain shell scripts
#4Re: Show HN: Welder – set up your Linux server with plain shell scripts
#5I was about to make the point about Ansible but I guess you've already made it in the README.
Is Ansible really too much though, as the author suggests in README for simple tasks? If all you want is basic "SSH to a server, install some packages" type behavior, I'd still make the argument Ansible is simpler than this. Ansible isn't like Chef/other competitors where you have to bootstrap or install a client on the target machine. IIRC it only really needs SSH access and a Python installation present on the targ…
Ansible is also declarative (in principle) while shell scripts are imperative, which is a bit of mind bender. Then, when you debug, you have to understand that Ansible is implemented by imperative code.
Re: Show HN: Welder – set up your Linux server with plain shell scripts
#6That's a lot harder to achieve with plain shell scripts, unless you're pretty disciplined about only performing mutations to your system that are themselves idempotent (like a package install).
Re: Show HN: Welder – set up your Linux server with plain shell scripts
#7I was about to make the point about Ansible but I guess you've already made it in the README.
Is Ansible really too much though, as the author suggests in README for simple tasks? If all you want is basic "SSH to a server, install some packages" type behavior, I'd still make the argument Ansible is simpler than this. Ansible isn't like Chef/other competitors where you have to bootstrap or install a client on the target machine. IIRC it only really needs SSH access and a Python installation present on the targ…
Ansible has some undisputed advantages (e.g. idempotence) and if I had to recommend Ansible vs my approach, I'd always recommend Ansible. But for my personal needs (single-server rails apps), I prefer shell scripts.
Re: Show HN: Welder – set up your Linux server with plain shell scripts
#8I came from setup shell scripts (especially running in the postinstall step of debian-installer) to Ansible, and I think the big win with Ansible is at least the ideal of idempotency. That's a lot harder to achieve with plain shell scripts, unless you're pretty disciplined about only performing mutations to your system that are themselves idempotent (like a package install).
Indeed. That's why I use Saltstack. I can do all I use Salt for without Salt. Except Idempotency
Re: Show HN: Welder – set up your Linux server with plain shell scripts
#9 ssh -t user@example.com "$(Re: Show HN: Welder – set up your Linux server with plain shell scripts
#10I came from setup shell scripts (especially running in the postinstall step of debian-installer) to Ansible, and I think the big win with Ansible is at least the ideal of idempotency. That's a lot harder to achieve with plain shell scripts, unless you're pretty disciplined about only performing mutations to your system that are themselves idempotent (like a package install).
Due to taking over a project I had to deep dive into it pretty quickly and to me it feels like shell in yaml syntax.