Skip to content

Instantly share code, notes, and snippets.

@philipsd6
Last active January 2, 2016 22:59
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 philipsd6/8373711 to your computer and use it in GitHub Desktop.
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…
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
twemproxy:
pkg.installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment