Last active
January 2, 2016 22:59
-
-
Save philipsd6/8373711 to your computer and use it in GitHub Desktop.
The first Salt state will download twemproxy and build it in /tmp and then install it. But it's not advisable to build software from source and just install it. A better solution is to use your distributions package manager tools to create a package which you then make accessible via a package repository. After that, you can use the much simpler…
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
twemproxy-source: | |
archive: | |
- extracted | |
- name: /tmp/ | |
- source: https://twemproxy.googlecode.com/files/nutcracker-0.3.0.tar.gz | |
- source_hash: sha1=b17f973ff2de9bd5e21417786a1449bea1557fba | |
- archive_format: tar | |
- tar_options: z | |
- if_missing: /tmp/nutcracker-0.3.0 | |
build: | |
cmd.wait: | |
- cwd: /tmp/nutcracker-0.3.0 | |
- names: | |
- ./configure | |
- make | |
- make install | |
- watch: | |
- archive: twemproxy-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
twemproxy: | |
pkg.installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment