Created
November 16, 2015 07:53
-
-
Save knuta/abd6cdd7fba464b14854 to your computer and use it in GitHub Desktop.
Salt: Install something from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @knuta. Will try this way as well