Skip to content

Instantly share code, notes, and snippets.

@dginther
Created August 26, 2013 20:14
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/6346103 to your computer and use it in GitHub Desktop.
Save dginther/6346103 to your computer and use it in GitHub Desktop.
{% if data['data'] == 'west-add-server' %}
west-add-host:
cmd.file.append:
- tgt: 'monitor-ops1'
- arg:
- name: /etc/check_mk/conf.d/wato/vpc_west_stack/hosts.tst
- text: |
"all_hosts += ["{{ data['id'] }}|cmk-agent|prod|site:west-vpc|lan|tcp|wato|/" + FOLDER_PATH + "/","
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment