Skip to content

Instantly share code, notes, and snippets.

@olivierlambert
Last active August 29, 2015 14:07
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 olivierlambert/d566ce3a1058b8f732ec to your computer and use it in GitHub Desktop.
Save olivierlambert/d566ce3a1058b8f732ec to your computer and use it in GitHub Desktop.
Salt Formula for 'n'
package_for_n:
pkg:
- installed
- pkgs:
- curl
download_n:
cmd.run:
- name: 'curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n'
- unless: which n
executable_n:
cmd.run:
- name: 'chmod +x /usr/local/bin/n'
install_n:
cmd.run:
- name: '/usr/local/bin/n stable'
- env:
- PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment