File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) and [ Keep a changelog] ( https://github.com/olivierlacan/keep-a-changelog ) .
4
4
5
+ ## [ 1.0.1] ( https://github.com/blalop/pihole_role/tree/1.0.1 ) - 2021-07-03
6
+ ### Fixed
7
+ * [ #5 ] ( https://github.com/blalop/pihole_role/issues/5 ) When no password is provided, skip exporter parameter @blalop
8
+
5
9
## [ 1.0.0] ( https://github.com/blalop/pihole_role/tree/1.0.0 ) - 2021-06-30
6
10
### Added
7
11
* [ #3 ] ( https://github.com/blalop/pihole_role/issues/3 ) Allow no password @blalop
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ pihole_exporter_private_tmp: yes
53
53
pihole_exporter_documentation_link : https://github.com/eko/pihole-exporter
54
54
pihole_exporter_max_files : 32768
55
55
pihole_exporter_log_output : " {% if pihole_exporter_log_file is defined %} file:{{ pihole_exporter_log_file }} {% else %} journal{% endif %}"
56
+
56
57
pihole_exporter_options :
57
58
- " port {{ pihole_exporter_port }}"
58
59
- " pihole_hostname {{ pihole_exporter_hostname }}"
59
- - " pihole_password {{ pihole_password }}"
60
60
- " pihole_port {{ pihole_lighttpd_port }}"
61
+ - " {% if pihole_password != '' %}pihole_password {{ pihole_password }}{% endif %}"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RuntimeDirectory=pihole_exporter
13
13
LimitNOFILE={{ pihole_exporter_max_files }}
14
14
15
15
16
- ExecStart={{ pihole_exporter_exec_name }} {% for option in pihole_exporter_options %} -{{ option }} {% endfor %}
16
+ ExecStart={{ pihole_exporter_exec_name }} {% for option in pihole_exporter_options %}{% if option != '' %} -{{ option }} {% endif %} {% endfor %}
17
17
18
18
StandardOutput={{ pihole_exporter_log_output }}
19
19
StandardError={{ pihole_exporter_log_output }}
@@ -22,4 +22,4 @@ KillSignal=SIGTERM
22
22
Restart=always
23
23
24
24
[Install]
25
- WantedBy=multi-user.target
25
+ WantedBy=multi-user.target
You can’t perform that action at this time.
0 commit comments