diff --git a/sls/collectd/pkg.sls b/sls/collectd/pkg.sls index 9f4e27a..c83e814 100644 --- a/sls/collectd/pkg.sls +++ b/sls/collectd/pkg.sls @@ -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 diff --git a/sls/lib/libmicrohttpd.sls b/sls/lib/libmicrohttpd.sls new file mode 100644 index 0000000..a920b4c --- /dev/null +++ b/sls/lib/libmicrohttpd.sls @@ -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 %}