mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Switching to netdata config template.
This commit is contained in:
parent
3a3248a227
commit
6fb27a3b00
3 changed files with 7 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -44,6 +44,7 @@ venv*
|
|||
|
||||
# Docker Jinja templates
|
||||
docker/haproxy/haproxy.consul.cfg
|
||||
docker/netdata/netdataconfig/netdata.conf
|
||||
# docker/haproxy/haproxy.staging.cfg # Staging doesn't use jinja templates, so no need to ignore
|
||||
docker/nginx/nginx.consul.conf
|
||||
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
---
|
||||
- name: Enable python.d
|
||||
become: yes
|
||||
copy:
|
||||
dest: /etc/netdata/conf.d/netdata.conf
|
||||
content: |
|
||||
[plugins]
|
||||
go.d = no
|
||||
python.d = yes
|
||||
[web]
|
||||
mode = none
|
||||
register: netdata_conf
|
||||
- name: Copy netdata.conf template
|
||||
template:
|
||||
src: /srv/newsblur/docker/netdata/netdataconfig/netdata.conf.j2
|
||||
dest: /srv/newsblur/docker/netdata/netdataconfig/netdata.conf
|
||||
notify: restart netdata
|
||||
|
||||
- name: Setup Netdata docker container
|
||||
become: yes
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# run as user = netdata
|
||||
# host access prefix = /host
|
||||
# glibc malloc arena max for plugins = 1
|
||||
hostname = netdata-docker
|
||||
hostname = {{ ansible_hostname }}
|
||||
# history = 3996
|
||||
# update every = 1
|
||||
# config directory = /etc/netdata
|
Loading…
Add table
Reference in a new issue