Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run compiler
- nginx-compile:
- cmd.run:
- - name: /srv/salt/config/nginx/compiler.sh {{ nginx_version }}
- - cwd: /
- - stateful: True
- - unless: ! nginx -v 2>&1 | grep -qi {{ nginx_version }}
- - require:
- - pkg: nginx-compiler-base
- # Adds the service.
- nginx-init:
- cmd.run:
- - name: chkconfig --add nginx
- - cwd: /
- - require:
- - cmd: nginx-compile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement