Add netdata-client role
This commit is contained in:
parent
2f54131368
commit
83bb915308
7
netdata-client/files/netdata.conf
Normal file
7
netdata-client/files/netdata.conf
Normal file
@ -0,0 +1,7 @@
|
||||
[global]
|
||||
# disable the local database
|
||||
memory mode = none
|
||||
|
||||
[health]
|
||||
# disable health checks
|
||||
enabled = no
|
20
netdata-client/tasks/main.yml
Normal file
20
netdata-client/tasks/main.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
# This role installs netdata on a node and configures it to send data to the collector
|
||||
|
||||
- name: Install netdata
|
||||
shell: bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait --dont-start-it
|
||||
- name: Copy main netdata config file
|
||||
copy:
|
||||
src: netdata.conf
|
||||
dest: /etc/netdata/netdata.conf
|
||||
backup: yes
|
||||
- name: Copy netdata stream config
|
||||
copy:
|
||||
src: stream.conf
|
||||
dest: /etc/netdata/stream.conf
|
||||
backup: yes
|
||||
- name: Start netdata service and ensure it starts on boot
|
||||
systemd:
|
||||
name: netdata
|
||||
state: started
|
||||
enabled: yes
|
Loading…
Reference in New Issue
Block a user