This repository was archived by the owner on Nov 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- <p ><img src =" https://www.circonus.com/wp-content/uploads/2015/03/sol-icon-itOps.png " alt =" graph logo " title =" graph " align =" right " height =" 60 " /></p >
2
-
3
1
# Ansible Role: pushgateway
4
2
5
3
[ ![ Build Status] ( https://travis-ci.org/cloudalchemy/ansible-pushgateway.svg?branch=master )] ( https://travis-ci.org/cloudalchemy/ansible-pushgateway )
@@ -22,8 +20,8 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
22
20
23
21
| Name | Default Value | Description |
24
22
| -------------- | ------------- | -----------------------------------|
25
- | ` pushgateway_version ` | 0.16.0 | Node exporter package version |
26
- | ` pushgateway_web_listen_address ` | "0.0.0.0:9100 " | Address on which node exporter will listen |
23
+ | ` pushgateway_version ` | 0.5.2 | Node exporter package version |
24
+ | ` pushgateway_web_listen_address ` | "0.0.0.0:9091 " | Address on which node exporter will listen |
27
25
| ` pushgateway_persistence ` | true | Enable persistence file |
28
26
| ` pushgateway_config_flags_extra ` | {} | Additional configuration flags passed at startup to pushgateway binary |
29
27
Original file line number Diff line number Diff line change 6
6
state : directory
7
7
owner : " root"
8
8
group : " root"
9
- recurse : true
10
9
mode : 0755
11
10
12
11
- name : Create persistence file
16
15
owner : " {{ pushgateway_system_user }}"
17
16
group : " {{ pushgateway_system_group }}"
18
17
mode : 0640
18
+ register : touch_log
19
+ changed_when : touch_log.diff.before.state != "file" # Needed for idempotance (https://github.com/ansible/ansible/issues/30226)
19
20
when : pushgateway_persistence
20
21
21
22
- name : Allow pushgateway port in SELinux on RedHat OS family
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ User={{ pushgateway_system_user }}
10
10
Group={{ pushgateway_system_group }}
11
11
ExecStart=/usr/local/bin/pushgateway \
12
12
{% if pushgateway_persistence %}
13
- --persistance .file="{{ pushgateway_persistence_dir }}/persistence" \
13
+ --persistence .file="{{ pushgateway_persistence_dir }}/persistence" \
14
14
{% endif %}
15
15
--web.listen-address={{ pushgateway_web_listen_address }}{% for flag , flag_value in pushgateway_config_flags_extra .items () %} \
16
16
--{{ flag }}{% if flag_value %} ={{ flag_value }}{% endif %} {% endfor %}
You can’t perform that action at this time.
0 commit comments