Add libmicrohttpd dep to collectd.pkg

This commit is contained in:
Antsiferov Grigory 2019-04-04 18:53:38 +03:00
parent 5786593cfd
commit 4904ec5ef7
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,8 @@
include:
- gentoo.makeconf
- lib.glibc
- lib.openssl
- lib.libmicrohttpd
{% set collectd = salt['pillar.get']('collectd', {}) -%}
{% set collectd_version = collectd.get('version', '>=5.8') %}
@ -22,6 +25,10 @@ manage-collectd-plugins:
app-metrics/collectd:
pkg.installed:
- require:
- pkg: sys-libs/glibc
- pkg: openssl
- pkg: net-libs/libmicrohttpd
- version: "{{ collectd_version }}[{{ ','.join(collectd_use) }}]"
{% if collectd_packaged %}
- binhost: force

View File

@ -0,0 +1,9 @@
{% set libs_packaged = salt['pillar.get']('libs:packaged', False) %}
net-libs/libmicrohttpd:
pkg.latest:
{% if libs_packaged %}
- binhost: force
{% else %}
- binhost: try
{% endif %}