feat(debian): allow to install using OS packages
This commit is contained in:
parent
0166fbdf6c
commit
3014494740
@ -30,9 +30,9 @@
|
|||||||
{%- set uri = '%s/%s/releases/download/%s/%s'|format(p.pkg.uri, name, v.version, name) %}
|
{%- set uri = '%s/%s/releases/download/%s/%s'|format(p.pkg.uri, name, v.version, name) %}
|
||||||
{%- set url = '%s-%s.%s-%s.tar.gz'|format(uri, v.version|replace('v',''), p.kernel, p.arch) %}
|
{%- set url = '%s-%s.%s-%s.tar.gz'|format(uri, v.version|replace('v',''), p.kernel, p.arch) %}
|
||||||
{%- set dir = '%s-%s'|format(name, v.version) %}
|
{%- set dir = '%s-%s'|format(name, v.version) %}
|
||||||
{%- endif %}
|
|
||||||
{%- do p.pkg.component[name].update({'path': p.dir.archive ~ '/' + dir }) %}
|
{%- do p.pkg.component[name].update({'path': p.dir.archive ~ '/' + dir }) %}
|
||||||
{%- do p.pkg.component[name]['archive'].update({'name': p.dir.archive + '/' + dir, 'source': url}) %}
|
{%- do p.pkg.component[name]['archive'].update({'name': p.dir.archive + '/' + dir, 'source': url}) %}
|
||||||
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
@ -25,14 +25,73 @@ Debian:
|
|||||||
- cron
|
- cron
|
||||||
use_upstream_repo: false
|
use_upstream_repo: false
|
||||||
use_upstream_package: false
|
use_upstream_package: false
|
||||||
use_upstream_archive: true
|
use_upstream_archive: false
|
||||||
repo:
|
|
||||||
humanname: 'prometheus repository'
|
|
||||||
key_url: 'https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg'
|
|
||||||
file: /etc/apt/sources.list.d/prometheus.list
|
|
||||||
component:
|
component:
|
||||||
|
prometheus:
|
||||||
|
name: prometheus
|
||||||
|
alertmanager:
|
||||||
|
name: prometheus-alertmanager
|
||||||
|
apache_exporter:
|
||||||
|
name: prometheus-apache-exporter
|
||||||
|
bind_exporter:
|
||||||
|
name: prometheus-bind-exporter
|
||||||
|
bird_exporter:
|
||||||
|
name: prometheus-bird-exporter
|
||||||
|
blackbox_exporter:
|
||||||
|
name: prometheus-blackbox-exporter
|
||||||
|
hacluster_exporter:
|
||||||
|
name: prometheus-hacluster-exporter
|
||||||
|
haproxy_exporter:
|
||||||
|
name: prometheus-haproxy-exporter
|
||||||
|
homeplug_exporter:
|
||||||
|
name: prometheus-homeplug-exporter
|
||||||
|
ipmi_exporter:
|
||||||
|
name: prometheus-ipmi-exporter
|
||||||
|
libvirt_exporter:
|
||||||
|
name: prometheus-libvirt-exporter
|
||||||
|
mailexporter:
|
||||||
|
name: prometheus-mailexporter
|
||||||
|
mongodb_exporter:
|
||||||
|
name: prometheus-mongodb-exporter
|
||||||
|
mysqld_exporter:
|
||||||
|
name: prometheus-mysqld-exporter
|
||||||
|
nginx_exporter:
|
||||||
|
name: prometheus-nginx-exporter
|
||||||
|
nginx_vts_exporter:
|
||||||
|
name: prometheus-nginx-vts-exporter
|
||||||
node_exporter:
|
node_exporter:
|
||||||
|
name: prometheus-node-exporter
|
||||||
args_file: /etc/default/prometheus-node-exporter
|
args_file: /etc/default/prometheus-node-exporter
|
||||||
|
node_exporter_collectors:
|
||||||
|
name: prometheus-node-exporter-collectors
|
||||||
|
openstack_exporter:
|
||||||
|
name: prometheus-openstack-exporter
|
||||||
|
pgbouncer_exporter:
|
||||||
|
name: prometheus-pgbouncer-exporter
|
||||||
|
postfix_exporter:
|
||||||
|
name: prometheus-postfix-exporter
|
||||||
|
postgres_exporter:
|
||||||
|
name: prometheus-postgres-exporter
|
||||||
|
process_exporter:
|
||||||
|
name: prometheus-process-exporter
|
||||||
|
pushgateway:
|
||||||
|
name: prometheus-pushgateway
|
||||||
|
snmp_exporter:
|
||||||
|
name: prometheus-snmp-exporter
|
||||||
|
sql_exporter:
|
||||||
|
name: prometheus-sql-exporter
|
||||||
|
squid_exporter:
|
||||||
|
name: prometheus-squid-exporter
|
||||||
|
tplink_plug_exporter:
|
||||||
|
name: prometheus-tplink-plug-exporter
|
||||||
|
trafficserver_exporter:
|
||||||
|
name: prometheus-trafficserver-exporter
|
||||||
|
varnish_exporter:
|
||||||
|
name: prometheus-varnish-exporter
|
||||||
|
xmpp_alerts:
|
||||||
|
name: prometheus-xmpp-alerts
|
||||||
|
|
||||||
|
|
||||||
exporters:
|
exporters:
|
||||||
node_exporter:
|
node_exporter:
|
||||||
textfile_collectors_dependencies:
|
textfile_collectors_dependencies:
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: ft=sls
|
# vim: ft=sls
|
||||||
|
|
||||||
|
{%- if grains.os_family == 'RedHat' %}
|
||||||
|
|
||||||
{%- set tplroot = tpldir.split('/')[0] %}
|
{%- set tplroot = tpldir.split('/')[0] %}
|
||||||
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
||||||
|
|
||||||
@ -16,6 +18,15 @@ prometheus-package-repo-install-pkgrepo-managed:
|
|||||||
- pattern: ' gpgkey2='
|
- pattern: ' gpgkey2='
|
||||||
- repl: '\n '
|
- repl: '\n '
|
||||||
- ignore_if_missing: True
|
- ignore_if_missing: True
|
||||||
- onlyif: {{ grains.os_family == 'RedHat' }}
|
{%- endif %}
|
||||||
|
|
||||||
|
{%- else %}
|
||||||
|
|
||||||
|
prometheus-package-repo-install-pkgrepo-managed:
|
||||||
|
test.show_notification:
|
||||||
|
- name: Skipping repository configuration
|
||||||
|
- text: |
|
||||||
|
At the moment, there's no repo for {{ grains['os'] }}
|
||||||
|
See https://prometheus.io/download/
|
||||||
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user