Live data from Hacker News

What scripts have you built to stand up a new server?

news.ycombinator.com

21–30 of 55 posts

Re: What scripts have you built to stand up a new server?

#21

This is what cloud-init[1], Puppet[2] et al a for. I haven't done this with shell scripts in at least 15 years. [1] https://github.com/canonical/cloud-init [2] https://www.puppet.com/

I’ve written Java programs that write a bash script that runs under cloud init. It’s a lot less code than Puppet, it “just works” and you never hear that “you can’t get from there” or spend three days to find out how to configure something you could configure in three minutes if Puppet wasn’t involved.

I can't say Puppet has ever gotten in my way, but I've been using it for a very long time. I will admit it has a steep learning curve.

Re: What scripts have you built to stand up a new server?

#23
Not ready yet, but a TCL powered agent that manages *BSD jails.

I currently have a working design of my host, which has a jail, that hosts a jail within that jail which then hosts another jail which then hosts two more jails of dns and www.

or, otherwise:

Host -> Infrastructure -> NetServices -> Netbox which hosts DNS and WWW

This agent sits on all jails and reports back stats such as networking with auto throttling. Because jails are just a zfs zvol and config away it's has the ability to create too.

All sitting cosy within a TK GUI. On the roadmap is to plug it in to NaviServer and with essence of vanilla JavaScript turn it in to a web frontend.

Re: What scripts have you built to stand up a new server?

#24
post #18

This is probably an unpopular opinion, but I have a bunch of install scripts that install some programs from source. Even some basic things like vim. The reason being that there's some customization I want to do. A lot is that I often can't trust the package manger. For simple things like idk if I'll get python3 (or even python) support in vim to the fact that Ubuntu 20 had fd-find and batcat while Ubuntu 22 has fd a…

> A lot is that I often can't trust the package manger. If you can't trust the package manager, how can you trust the install media?

I think you're misunderstanding. Read the sentence after the quoted one for clarification.

Re: What scripts have you built to stand up a new server?

#26
I have built server deployments with Powershell DSC. Honestly, it was not stable enough for my liking at the time, and you were on your own in terms of support. I never went back, and work decided to go with a mix of VM extensions and Chef.

My JellyFin server, I have a bunch of powershell scripts mostly to reproduce the config of JellyFin components (NGINX, cert for public access, TV listings, automated content scraping, auto-update, library management, etc). I am building a Powershell module which wraps the JellyFin REST API to help with all this. Lastly, the tasks which run on a schedule self-register with Windows Task Scheduler.

Re: What scripts have you built to stand up a new server?

#27

This is probably an unpopular opinion, but I have a bunch of install scripts that install some programs from source. Even some basic things like vim. The reason being that there's some customization I want to do. A lot is that I often can't trust the package manger. For simple things like idk if I'll get python3 (or even python) support in vim to the fact that Ubuntu 20 had fd-find and batcat while Ubuntu 22 has fd a…

This is why we hackernews

Re: What scripts have you built to stand up a new server?

#28

This is what cloud-init[1], Puppet[2] et al a for. I haven't done this with shell scripts in at least 15 years. [1] https://github.com/canonical/cloud-init [2] https://www.puppet.com/

Just configured my first cloud-unit file and put it on a partitioned USB with the Ubuntu Server iso. It worked! Thanks for the heads up.
Post reply on HN