Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run compiler
- {%- set nginx_version = pillar['nginx']['version'] -%}
- nginx-compile:
- cmd.run:
- - name: /srv/salt/config/nginx/compiler.sh {{ nginx_version }}
- - cwd: /
- - stateful: True
- - require:
- - pkg: nginx-compiler-base
- # Adds the service.
- nginx-init:
- cmd.run:
- - name: chkconfig --add nginx
- - cwd: /
- - require:
- - cmd: nginx-compile
- produces:
- [INFO ] Executing state cmd.run for /srv/salt/config/nginx/compiler.sh 1.5.8
- [INFO ] Executing command '/srv/salt/config/nginx/compiler.sh 1.5.8' in directory '/'
- [DEBUG ] stdout: name=nginx-compile result=True changed=True comment=
- [INFO ] {'retcode': 0, 'stdout': 'name=nginx-compile result=True changed=True comment', 'changed': 'True', 'pid': 687 2, 'result': 'True', 'stderr': '', 'name': 'nginx-compile'}
- Name: /srv/salt/config/nginx/compiler.sh 1.5.8 - Function: cmd.run - Result: True
- ----------
- State: - cmd
- Name: chkconfig --add nginx
- Function: run
- Result: False
- Comment: The following requisites were not found:
- require:
- cmd: nginx-compile
- Changes:
- ----------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement