Advertisement
Guest User

Untitled

a guest
Jan 18th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # Run compiler
  2. nginx-compile:
  3. cmd.run:
  4. - name: /srv/salt/config/nginx/compiler.sh {{ nginx_version }}
  5. - cwd: /
  6. - stateful: True
  7. - unless: ! nginx -v 2>&1 | grep -qi {{ nginx_version }}
  8. - require:
  9. - pkg: nginx-compiler-base
  10.  
  11. # Adds the service.
  12. nginx-init:
  13. cmd.run:
  14. - name: chkconfig --add nginx
  15. - cwd: /
  16. - require:
  17. - cmd: nginx-compile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement