Browse Source

Fix grains generation when linux_netlink.ls is not available

Change-Id: Id4b0b405872457bd8b20f450e4031d6808d3cf59
pull/108/head
Filip Pytloun 7 years ago
parent
commit
ea11327afe
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      linux/meta/collectd.yml

+ 2
- 0
linux/meta/collectd.yml View File

plugin: netlink plugin: netlink
template: linux/files/collectd_netlink.conf template: linux/files/collectd_netlink.conf
ignore_selected: false ignore_selected: false
{%- if 'linux_netlink.ls' in salt.keys() %}
interfaces: interfaces:
{%- for interface_name in salt['linux_netlink.ls']() %} {%- for interface_name in salt['linux_netlink.ls']() %}
- {{ interface_name }} - {{ interface_name }}
{%- endfor %} {%- endfor %}
{%- endif %}
linux_system_cpu: linux_system_cpu:
plugin: cpu plugin: cpu
linux_system_entropy: linux_system_entropy:

Loading…
Cancel
Save