Advertisement
Guest User

Untitled

a guest
Jan 19th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # Run compiler
  2. {%- set nginx_version = pillar['nginx']['version'] -%}
  3. nginx-compile:
  4. cmd.run:
  5. - name: /srv/salt/config/nginx/compiler.sh {{ nginx_version }}
  6. - cwd: /
  7. - stateful: True
  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
  18.  
  19.  
  20. produces:
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. [INFO ] Executing state cmd.run for /srv/salt/config/nginx/compiler.sh 1.5.8
  33. [INFO ] Executing command '/srv/salt/config/nginx/compiler.sh 1.5.8' in directory '/'
  34. [DEBUG ] stdout: name=nginx-compile result=True changed=True comment=
  35. [INFO ] {'retcode': 0, 'stdout': 'name=nginx-compile result=True changed=True comment', 'changed': 'True', 'pid': 687 2, 'result': 'True', 'stderr': '', 'name': 'nginx-compile'}
  36.  
  37.  
  38.  
  39. Name: /srv/salt/config/nginx/compiler.sh 1.5.8 - Function: cmd.run - Result: True
  40. ----------
  41. State: - cmd
  42. Name: chkconfig --add nginx
  43. Function: run
  44. Result: False
  45. Comment: The following requisites were not found:
  46. require:
  47. cmd: nginx-compile
  48.  
  49. Changes:
  50. ----------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement