I always forget the workflow to set user passwords, harden ssh with my ed_25519 keys, etc. Show us your scripts!
What scripts have you built to stand up a new server?
1–10 of 55 posts
Re: What scripts have you built to stand up a new server?
#2Re: What scripts have you built to stand up a new server?
#3This 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/
Re: What scripts have you built to stand up a new server?
#4Strongly recommended for those looking for inspiration. Give "ansible-doc --list" a spin! This shows modules, it can filter for existing roles as well.
Re: What scripts have you built to stand up a new server?
#5This 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/
https://docs.ansible.com/ansible/latest/getting_started/intr...
Re: What scripts have you built to stand up a new server?
#6On mobile at the moment, can't share - but I have a great library of Ansible roles. Strongly recommended for those looking for inspiration. Give "ansible-doc --list" a spin! This shows modules, it can filter for existing roles as well.
Re: What scripts have you built to stand up a new server?
#7This 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/
Re: What scripts have you built to stand up a new server?
#8Re: What scripts have you built to stand up a new server?
#9My Raspberry Pis at home are maybe the only exception, in which case I don’t need to harden anything as they’re isolated on my network and run trivial things like a webcam.
I’ve been a Linux sysadmin my entire professional life, and I’ll never go back to VIMing conf files ever again. It’s wonderful.
That said, if you do have to do this, Packer and Ansible still exist.
Re: What scripts have you built to stand up a new server?
#10Here's half of it.