Basic saltstack states to make a minimal server configuration.
Add these to your saltstack states:
git submodule add https://github.com/cebe-cc/salt-basic.git salt/basic
The states are independent of their actual location in the state file tree, so you may replace salt/basic with a location of your choice.
- Debian
- 7,
wheezy - 8,
jessie - 9,
stretch - 10,
buster - 11,
bullseye - 12,
bookworm
- 7,
-
Add LTS package repos and Debian backports, also install
httpstransport for apt (apt.sls) -
Enable automatic security upgrades (
apt-upgrades.sls) -
configure a nice bashrc, profile and motd (
bash.sls) -
disable NFS if not required, fixes issue with pre-installed portmapper deamon (
nfs.sls) -
🚧 ensure time synchronisation is configured properly, either via NTP or systemd-timesyncd (
ntp.sls) -
create an SSH key for root (
ssh.sls) -
manage SSH authorized keys for user
root. If present in pillar, keys will be added to/root/.ssh/authorized_keys:# configure ssh authorized_keys in pillar ssh: authorized_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAA...IawH9LTTF2C8D4Vl [email protected]
-
install common cli tools (
tools.sls, optional:tools-extra.sls,tools-build.sls) -
🚧 Make sure a full VI editor is installed and configured (
vim.sls) -
🚧 GIT and GIT config