Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2017 04:25
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 anonymous/83369ebd3f577af5091fcdbfbcaccffd to your computer and use it in GitHub Desktop.
Save anonymous/83369ebd3f577af5091fcdbfbcaccffd to your computer and use it in GitHub Desktop.
Allowing node to listen below port 1000 with salt
libcap2-bin:
pkg.installed
node-port-access:
cmd.run:
- user: root
- name: |
setcap cap_net_bind_service=+ep `readlink -f \`which node\``
- require:
- pkg: libcap2-bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment