Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

Commit a126fda

Browse files
committed
[patch] fix readme; do not set permissions recursively
1 parent dd243f2 commit a126fda

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
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-
31
# Ansible Role: pushgateway
42

53
[![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
2220

2321
| Name | Default Value | Description |
2422
| -------------- | ------------- | -----------------------------------|
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 |
2725
| `pushgateway_persistence` | true | Enable persistence file |
2826
| `pushgateway_config_flags_extra` | {} | Additional configuration flags passed at startup to pushgateway binary |
2927

tasks/configure.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
state: directory
77
owner: "root"
88
group: "root"
9-
recurse: true
109
mode: 0755
1110

1211
- name: Create persistence file
@@ -16,6 +15,8 @@
1615
owner: "{{ pushgateway_system_user }}"
1716
group: "{{ pushgateway_system_group }}"
1817
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)
1920
when: pushgateway_persistence
2021

2122
- name: Allow pushgateway port in SELinux on RedHat OS family

templates/pushgateway.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ User={{ pushgateway_system_user }}
1010
Group={{ pushgateway_system_group }}
1111
ExecStart=/usr/local/bin/pushgateway \
1212
{% if pushgateway_persistence %}
13-
--persistance.file="{{ pushgateway_persistence_dir }}/persistence" \
13+
--persistence.file="{{ pushgateway_persistence_dir }}/persistence" \
1414
{% endif %}
1515
--web.listen-address={{ pushgateway_web_listen_address }}{% for flag, flag_value in pushgateway_config_flags_extra.items() %}\
1616
--{{ flag }}{% if flag_value %}={{ flag_value }}{% endif %} {% endfor %}

0 commit comments

Comments
 (0)