r/linux • u/thomas-mc-work • Dec 12 '20
Software Release Welder – set up your Linux server with plain shell scripts
https://gitlab.com/welder-cm/welder4
u/givemeoldredditpleas Dec 13 '20
checked the repository, thanks for showing what "works for you".
cosmetics: in the test/prepare-containers.sh you could generate "ephemeral" ssh-keys per test run, so to not make webgits alarm for committed private keys.
1
13
u/kahiru_ Dec 13 '20
I like this, not having to program in yaml is a huge plus for me
6
u/uint64 Dec 13 '20
But... it does use yaml
4
u/kahiru_ Dec 13 '20
As far as I understood it uses yaml, but only for the static data, not for the logic you may want to express
1
u/thomas-mc-work Dec 13 '20 edited Dec 17 '20
That's right: YAML is only used for defining variables. And I think using it that way should be straight forward and intuitive. That's different to an idempotent and declarative DSL provided by YAML.
1
3
u/doubled112 Dec 13 '20 edited Dec 13 '20
So, like pssh?
Edit: yes, but also no
2
u/thomas-mc-work Dec 13 '20
From the man page:
pssh is a program for executing ssh in parallel on a number of hosts.
So this a missing aspect of welder, that could be added in the future.
2
3
u/PeterJHoburg Dec 13 '20
Cool. I love ansible, but it is really overkill for workstation setup. I will have to check that out! Thanks!
3
u/thomas-mc-work Dec 13 '20
Thank you! I'm glad you like it.
Any other feedback or contributions are welcome.
5
0
Dec 13 '20
[deleted]
1
u/thomas-mc-work Dec 13 '20
What does that mean?
12
u/turdas Dec 13 '20
360 degrees.
3
u/thomas-mc-work Dec 13 '20
Not quite. The plain shell script are supported by a lean but powerful environment that provides the handling and uploading of static and template files, variables and semi-automatic resolution of secrets via a gopass integration.
11
u/linuxlover81 Dec 13 '20
i am a little bit unsure what this gives me vs. ansible? there's a role/module structure in both, both use ssh and python. both use jinja for templating?
could you further dig into this on your readme? and i do not get why the custom dsl is complicated when you can just write shell commands or file?