Advertisement
Guest User

Untitled

a guest
Dec 11th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. This works:
  2.  
  3. # salt salt-test file.replace path=/usr/local/etc/nrpe.cfg pattern='allowed\_hosts\=127\.0\.0\.1' repl='allowed_hosts=10.55.0.3'
  4.  
  5.  
  6. This does not, and I don't know why:
  7.  
  8. nrpe:
  9. pkg:
  10. - installed
  11. service.running:
  12. - name: nrpe2
  13. - enable: True
  14. - watch:
  15. - file.replace:
  16. - path: /usr/local/etc/nrpe.cfg
  17. - pattern: allowed_hosts=127.0.0.1
  18. - repl: allowed_hosts=10.55.0.3
  19.  
  20. # salt salt-test state.highstate -vvvv
  21. Executing job with jid 20131211211639444633
  22. -------------------------------------------
  23.  
  24. salt-test:
  25. Data failed to compile:
  26. ----------
  27. Illegal requisite "[OrderedDict([('path', '/usr/local/etc/nrpe.cfg')]), OrderedDict([('pattern', 'allowed_hosts=127.0.0.1')]), OrderedDict([('repl', 'allowed_hosts=10.55.0.3')])]", please check your syntax.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement