Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gearman.yaml.j2
- instances:
- {% node['datadog']['services']['gearmand'].each do |i| -%}
- - server: {{['ipv4']['address']}}
- port: {{"port" OR 4730 }}
- {% if i.key?("tags") -%}
- tags:
- {% i["tags"].each do |t| -%}
- - {{ t }}
- {% endif -%}
- {% endif -%}
- {% endif-%}
- init_config:
- % nothing to add here
- mysql.yaml.j2
- instances:
- {% node['datadog']['services']['mysql'].each do |i| -%}
- - server: {{ i['host'] }}
- user: {{ i['username'] }}
- pass: {{ i['password'] }}
- {% if i.key?('sock') -%}
- sock: {{ i['sock'] }}
- {% endif -%}
- {% if i.key?('tags') -%}
- tags:
- {% i['tags'].each do |t| -%}
- - {{ t }}
- {% endif -%}
- {% endif -%}
- {% if i.key?('options') -%}
- options:
- {% i['options'].each do |o| -%}
- {{ o }}
- {% endif -%}
- {% endif -%}
- {% endif -%}
- # Nothing to configure here
- init_config:
- nginx.yaml.j2
- instances:
- {% node['datadog']['services']['nginx'].each do |i| -%}
- - nginx_status_url: {{ i['nginx_status_url'] }}
- {% if i.key?('tags') -%}
- tags:
- {% i['tags'].each do |t| -%}
- - {{ t }}
- {% endif -%}
- {% endif -%}
- {% endif -%}
- redisdb.yaml.j2
- instances:
- {% node['datadog']['services']['redisdb'].each do |i| -%}
- - host: {{"datadog_server"}}
- port: {{"datadog_port" | 6379 }}
- {% if "key" equals ("password") -%}
- password: {{"password"}}
- {% endif -%}
- {% if "key" equals ("tags") -%}
- tags:
- {% i["tags"].each do |t| -%}
- - {{ t }}
- {% endif -%}
- {% endif -%}
- {% endif -%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement