Commit de55dc63 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

#36 Restructure role to use latest kickstarter script

parent 117447eb
---
netdata_version: v1.31.0
netdata_force_reset: no
netdata_fluentd_buffer:
green: 50000000
......
......@@ -22,6 +22,34 @@
notify:
- Restart NetData
- name: Configure web listener
ini_file:
path: /etc/netdata/netdata.conf
section: web
option: bind to
value: '*'
notify:
- Restart NetData
- name: Install Alert Templates
template:
src: health.d/{{ item }}.conf
dest: /etc/netdata/health.d/my_{{ item }}.conf
with_items:
- fluentd_buffer
- httpcheck
- oracle
notify:
- Restart NetData
- name: Install Custom Alarms
template:
src: health.d/alarms.conf
dest: /etc/netdata/health.d/my_alarms.conf
when: netdata_custom_notifications is defined
notify:
- Restart NetData
- name: Configure Python Plugins
template:
src: python.d/{{ item }}
......
---
# file: roles/netdata/tasks/install.yml
- name: Clone NetData
git:
accept_hostkey: yes
repo: "https://github.com/netdata/netdata.git"
dest: "/opt/netdata"
force: yes
version: '{{ netdata_version }}'
register: netdata_clone
when: netdata_local_archive is not defined
notify:
- Restart NetData
- name: Extract NetData Archive
unarchive:
src: /opt/{{ netdata_local_archive }}.zip
dest: /opt
remote_src: yes
register: netdata_extract
when: netdata_local_archive is defined
notify:
- Restart NetData
- name: Download NetData Kickstart Script
get_url:
url: https://my-netdata.io/kickstart.sh
dest: /tmp/kickstart.sh
mode: '0755'
- name: Install and configure NetData
shell: ./netdata-installer.sh --dont-wait --disable-telemetry
args:
chdir: /opt/{{ netdata_local_archive|default('netdata') }}
when: netdata_clone.changed or netdata_extract.changed
- name: Install Alert Templates
template:
src: health.d/{{ item }}.conf
dest: /etc/netdata/health.d/my_{{ item }}.conf
with_items:
- fluentd_buffer
- httpcheck
- oracle
notify:
- Restart NetData
- name: Install Custom Alarms
template:
src: health.d/alarms.conf
dest: /etc/netdata/health.d/my_alarms.conf
when: netdata_custom_notifications is defined
shell: /tmp/kickstart.sh --non-interactive --stable-channel --reinstall-even-if-unsafe --disable-telemetry
notify:
- Restart NetData
......
......@@ -14,6 +14,7 @@
- name: Import install
import_tasks: install.yml
when: netdata_force_reset
- name: Import configure
import_tasks: configure.yml
......
......@@ -38,5 +38,14 @@
- name: Ensure Directory
file:
path: /etc/netdata/python.d
path: /etc/netdata/{{ item }}
state: directory
with_items:
- charts.d
- custom-plugins.d
- ebpf.d
- go.d
- health.d
- node.d
- python.d
- statsd.d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment