Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dginther
Created August 22, 2013 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dginther/6313846 to your computer and use it in GitHub Desktop.
Save dginther/6313846 to your computer and use it in GitHub Desktop.
2013-08-22 23:01:27,128 [salt.template ][DEBUG ] Rendered data from file: /srv/reactor/wato.sls:
install:
cmd.cmd.run:
- name: salt 'monitor-ops1' file.append /etc/check_mk/conf.d/wato/vpc_west_stack/tmp.tmp \
"This is a test. This is only a test."
2013-08-22 23:01:27,132 [salt.loaded.int.render.yaml][DEBUG ] Results of YAML rendering:
{'install': {'cmd.cmd.run': [{'name': 'salt \'monitor-ops1\' file.append /etc/check_mk/conf.d/wato/vpc_west_stack/tmp.tmp \\ "This is a test. This is only a test."'}]}}
2013-08-22 23:01:27,133 [salt.config ][DEBUG ] Reading configuration from /etc/salt/master
2013-08-22 23:01:27,181 [salt.config ][DEBUG ] Missing configuration file: /root/.salt
2013-08-22 23:01:27,182 [salt.utils.event ][DEBUG ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
2013-08-22 23:01:27,182 [salt.utils.event ][DEBUG ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
2013-08-22 23:01:27,183 [salt.utils.event ][ERROR ] Failed to execute cmd: <bound method ReactWrap.cmd of <salt.utils.event.ReactWrap object at 0x1d9fd10>>
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/utils/event.py", line 434, in run
ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))
File "/usr/lib/pymodules/python2.7/salt/utils/event.py", line 448, in cmd
return local.cmd_async(*args, **kwargs)
TypeError: cmd_async() takes at least 3 arguments (2 given)
reactor:
- 'wato':
- /srv/reactor/wato.sls
salt-call event.fire_master 'west-add-server' 'wato'
{% if data['data'] == 'west-add-server' %}
install:
cmd.cmd.run:
- name: salt 'monitor-ops1' file.append /etc/check_mk/conf.d/wato/vpc_west_stack/tmp.tmp \
"This is a test. This is only a test."
{% endif %}
@dginther
Copy link
Author

{% if data['data'] == 'west-add-server' %}
install:
cmd.file.append:

  • tgt: 'monitor-ops1'
  • arg:
    • /etc/check_mk/conf.d/wato/vpc_west_stack/tmp.tmp
      "This is a test. This is only a test."
      {% endif %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment