Skip to content

Commit

Permalink
Fix meta file
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-wasabi committed Nov 19, 2018
1 parent f74ff63 commit 3cccb6b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ galaxy_info:
- name: Debian
versions:
- all
categories:
galaxy_tags:
- monitoring

dependencies: []
27 changes: 27 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ provisioner:
name: ansible
lint:
name: ansible-lint
inventory:
group_vars:
all:
telegraf_plugins_default:
- plugin: cpu
config:
- percpu = true
- plugin: disk
- plugin: io
- plugin: mem
- plugin: net
- plugin: system
- plugin: swap
- plugin: netstat
- plugin: processes
- plugin: kernel
- plugin: nginx
config:
- urls = ["http://localhost/nginx_status"]
- plugin: logparser
config:
- files = ["/var/log/nginx/access.log"]
- from_beginning = true
- name_override = "nginx_access_log"
- \[logparser.grok\]
- patterns = ["%{COMBINED_LOG_FORMAT}"]

scenario:
name: default
verifier:
Expand Down
2 changes: 1 addition & 1 deletion templates/telegraf-extra-plugin.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% endif %}
{% if item.value.config is defined and item.value.config is iterable %}
{% for items in item.value.config %}
{{ items }}
{% raw %}{{ items }}{% endraw %}}

This comment has been minimized.

Copy link
@talset

talset Nov 20, 2018

why raw ? and why 3 } ?

cat /etc/telegraf/telegraf.d/http_response.conf 
### MANAGED BY dj-wasabi.telegraf ANSIBLE ROLE ###

[[inputs.http_response]]
    {{ items }}}
    {{ items }}}
    {{ items }}}
    {{ items }}}
    {{ items }}}
{% endfor %}
{% endif %}
{% if item.value.tags is defined and item.value.tags is iterable %}
Expand Down

0 comments on commit 3cccb6b

Please sign in to comment.