Switching to netdata config template.

This commit is contained in:
Samuel Clay 2021-04-13 15:06:07 -04:00
parent 3a3248a227
commit 6fb27a3b00
3 changed files with 7 additions and 12 deletions

1
.gitignore vendored
View file

@ -44,6 +44,7 @@ venv*
# Docker Jinja templates # Docker Jinja templates
docker/haproxy/haproxy.consul.cfg 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/haproxy/haproxy.staging.cfg # Staging doesn't use jinja templates, so no need to ignore
docker/nginx/nginx.consul.conf docker/nginx/nginx.consul.conf

View file

@ -1,15 +1,9 @@
--- ---
- name: Enable python.d - name: Copy netdata.conf template
become: yes template:
copy: src: /srv/newsblur/docker/netdata/netdataconfig/netdata.conf.j2
dest: /etc/netdata/conf.d/netdata.conf dest: /srv/newsblur/docker/netdata/netdataconfig/netdata.conf
content: | notify: restart netdata
[plugins]
go.d = no
python.d = yes
[web]
mode = none
register: netdata_conf
- name: Setup Netdata docker container - name: Setup Netdata docker container
become: yes become: yes

View file

@ -16,7 +16,7 @@
# run as user = netdata # run as user = netdata
# host access prefix = /host # host access prefix = /host
# glibc malloc arena max for plugins = 1 # glibc malloc arena max for plugins = 1
hostname = netdata-docker hostname = {{ ansible_hostname }}
# history = 3996 # history = 3996
# update every = 1 # update every = 1
# config directory = /etc/netdata # config directory = /etc/netdata