Skip to content

🔧 Basic saltstack states to make a minimal server configuration.

License

Notifications You must be signed in to change notification settings

cebe-cc/salt-basic

Repository files navigation

salt-basic

Basic saltstack states to make a minimal server configuration.

Usage

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.

Supported OSs

  • Debian
    • 7, wheezy
    • 8, jessie
    • 9, stretch
    • 10, buster
    • 11, bullseye
    • 12, bookworm

Features

  • Add LTS package repos and Debian backports, also install https transport 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

About

🔧 Basic saltstack states to make a minimal server configuration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published