Skip to content

Instantly share code, notes, and snippets.

@knuta
Created November 16, 2015 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knuta/abd6cdd7fba464b14854 to your computer and use it in GitHub Desktop.
Save knuta/abd6cdd7fba464b14854 to your computer and use it in GitHub Desktop.
Salt: Install something from source
# A tarball with the sources
/root/whatever.tar.gz:
file.managed:
- source: salt://whatever/whatever.tar.gz
# A script for installing the sources
/usr/local/sbin/install-whatever.sh:
cmd.wait:
- watch:
- file: /usr/local/sbin/install-whatever.sh
- file: /root/whatever.tar.gz
file.managed:
- source: salt://whatever/install-whatever.sh
- mode: 500
@ashutoshnarayan
Copy link

Thanks @knuta. Will try this way as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment