Skip to content

Instantly share code, notes, and snippets.

@Grendel7
Created September 17, 2017 20:42
Show Gist options
  • Save Grendel7/d08ae1c1eca20cbad7019f31c4b685b6 to your computer and use it in GitHub Desktop.
Save Grendel7/d08ae1c1eca20cbad7019f31c4b685b6 to your computer and use it in GitHub Desktop.
Install salt-minion to an LXC container and configure it to respond to a SaltStack master on `saltmaster`.
lxc-attach -n $MY_MINION -- sh -c "apt-get update && apt-get install curl -y && curl -L https://bootstrap.saltstack.com | sh && sed -i -e 's/#master: salt/master: saltmaster/g' /etc/salt/minion && systemctl restart salt-minion"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment