mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
Add libmicrohttpd dep to collectd.pkg
This commit is contained in:
parent
5786593cfd
commit
4904ec5ef7
@ -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
|
||||
|
9
sls/lib/libmicrohttpd.sls
Normal file
9
sls/lib/libmicrohttpd.sls
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user