Skip to content

Instantly share code, notes, and snippets.

@nijotz
Created December 8, 2014 22:02
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 nijotz/b5a2885899ac6dec6bf2 to your computer and use it in GitHub Desktop.
Save nijotz/b5a2885899ac6dec6bf2 to your computer and use it in GitHub Desktop.
phantomjs salt
{% set phantomjs_url = 'https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-i686.tar.bz2' %}
{% set phantomjs_file = 'phantomjs-1.9.1-linux-i686.tar.bz2' %}
{% set phantomjs_folder = 'phantomjs-1.9.1-linux-i686' %}
phantomjs:
archive:
- extracted
- name: /usr/local/share/
- source: {{ phantomjs_url }}
- source_hash: md5=30ed55d9f81f4017ece2a60577acc063
- archive_format: tar
- tar_options: xvj
- if_missing: /usr/local/share/{{ phantomjs_folder }}
- keep: True
- require:
- pip: python-pkgs
file.symlink:
- name: /usr/bin/phantomjs
- target: /usr/local/share/{{ phantomjs_folder }}/bin/phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment