Advertisement
Guest User

Untitled

a guest
Nov 13th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. include:
  2. - access.www-data
  3.  
  4. nginx:
  5. pkg:
  6. - latest
  7. file.managed:
  8. - name: /etc/nginx/nginx.conf
  9. - source: salt://nginx/files/nginx.jinja2
  10. - template: jinja
  11. - require:
  12. - pkg: nginx
  13. service.running:
  14. - enable: True
  15. - require:
  16. - pkg: nginx
  17. - user: www-data
  18. - watch:
  19. - file: /etc/nginx/nginx.conf
  20. iptables.append:
  21. - table: filter
  22. - chain: INPUT
  23. - jump: ACCEPT
  24. - match: state
  25. - connstate: NEW,ESTABLISHED
  26. - dport: 80
  27. - proto: tcp
  28. - sport: 1024:65535
  29. - save: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement