Skip to content

Instantly share code, notes, and snippets.

@Grendel7
Created September 17, 2017 20:46
Show Gist options
  • Save Grendel7/03d0daae49e8677a7da3b065196f8630 to your computer and use it in GitHub Desktop.
Save Grendel7/03d0daae49e8677a7da3b065196f8630 to your computer and use it in GitHub Desktop.
Create a Debian LXC container and install a SaltStack master to it
# Create the LXC container.
lxc-create -n saltmaster -t debian -- -r stretch
lxc-start -n saltmaster
# Install SaltStack on it.
lxc-attach -n saltmaster -- sh -c "apt-get update && apt-get install curl -y && curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com && sh bootstrap-salt.sh -M -N"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment