Skip to content

Instantly share code, notes, and snippets.

@matthewryanscott
Created May 10, 2013 18:03
Show Gist options
  • Save matthewryanscott/5556210 to your computer and use it in GitHub Desktop.
Save matthewryanscott/5556210 to your computer and use it in GitHub Desktop.
ufw:
pkg.installed
enable ufw:
cmd.run:
- name: ufw enable
- require:
- pkg: ufw
enable ssh:
cmd.run:
- name: ufw allow ssh
- require:
- pkg: ufw
{% if 'saltmaster' in grains['roles'] %}
allow salt:
cmd.run:
- name: ufw allow salt
- require:
- pkg: ufw
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment