Merge pull request #69 from corvus-migratorius/update-ipmi-exporter
Update IPMI exporter
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
when: ipmi_exporter_local_conf is defined
|
||||
ansible.builtin.template:
|
||||
src: "{{ ipmi_exporter_local_conf }}"
|
||||
dest: "{{ ipmi_exporter_config_dir }}/local.conf"
|
||||
dest: "{{ ipmi_exporter_config_dir }}/local.yml"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0640'
|
||||
@@ -14,7 +14,7 @@
|
||||
when: ipmi_exporter_web_conf is defined
|
||||
ansible.builtin.template:
|
||||
src: "{{ ipmi_exporter_web_conf }}"
|
||||
dest: "{{ ipmi_exporter_config_dir }}/web.yaml"
|
||||
dest: "{{ ipmi_exporter_config_dir }}/web.yml"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0640'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
[Unit]
|
||||
Description=IPMI exporter
|
||||
Description=Prometheus IPMI exporter
|
||||
Documentation=https://github.com/prometheus-community/ipmi_exporter
|
||||
After=network.target
|
||||
StartLimitIntervalSec=120
|
||||
StartLimitBurst=5
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=3
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -15,10 +15,10 @@ ExecStart=/usr/sbin/ipmi_exporter \
|
||||
{{ ipmi_exporter_args }} \
|
||||
{% endif %}
|
||||
{% if ipmi_exporter_local_conf is defined %}
|
||||
--config.file={{ ipmi_exporter_config_dir }}/local.conf \
|
||||
--config.file={{ ipmi_exporter_config_dir }}/local.yml \
|
||||
{% endif %}
|
||||
{% if ipmi_exporter_web_conf is defined %}
|
||||
--web.config.file={{ ipmi_exporter_config_dir }}/web.yaml
|
||||
--web.config.file={{ ipmi_exporter_config_dir }}/web.yml
|
||||
{% endif %}
|
||||
|
||||
SyslogIdentifier=ipmi_exporter
|
||||
@@ -35,4 +35,4 @@ PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user