Merge pull request #29 from C-J1/add-support-for-netdata

Add support for netdata
This commit is contained in:
David Stephens 2018-12-18 23:51:21 +00:00 committed by GitHub
commit 0bd3e6f36e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 0 deletions

View file

@ -32,6 +32,7 @@ just a stock Ubuntu install, some clever Ansible config and a bunch of Docker co
- [Guacamole](https://guacamole.apache.org/) - Web based remote desktop gateway, supports VNC, RDP and SSH - [Guacamole](https://guacamole.apache.org/) - Web based remote desktop gateway, supports VNC, RDP and SSH
- [Heimdall](https://heimdall.site/) - Home server dashboard - [Heimdall](https://heimdall.site/) - Home server dashboard
- [InfluxDB](https://github.com/influxdata/influxdb) - Time series database used for stats collection - [InfluxDB](https://github.com/influxdata/influxdb) - Time series database used for stats collection
- [Netdata](https://my-netdata.io/) - An extremely comprehensive system monitoring solution
- [Nextcloud](https://nextcloud.com/) - A self-hosted Dropbox alternative - [Nextcloud](https://nextcloud.com/) - A self-hosted Dropbox alternative
- [Plex](https://www.plex.tv/) - Plex Media Server - [Plex](https://www.plex.tv/) - Plex Media Server
- [Portainer](https://portainer.io/) - for managing Docker and running custom images - [Portainer](https://portainer.io/) - for managing Docker and running custom images

View file

@ -33,6 +33,7 @@ portainer_enabled: true
glances_enabled: true glances_enabled: true
stats_enabled: false stats_enabled: false
guacamole_enabled: false guacamole_enabled: false
netdata_enabled: false
# Backup & Restore # Backup & Restore
duplicati_enabled: true duplicati_enabled: true

View file

@ -47,6 +47,10 @@
- import_tasks: tasks/glances.yml - import_tasks: tasks/glances.yml
when: glances_enabled == true when: glances_enabled == true
tags: glances tags: glances
- import_tasks: tasks/netdata.yml
when: netdata_enabled == true
tags: netdata
- import_tasks: tasks/duplicati.yml - import_tasks: tasks/duplicati.yml
when: duplicati_enabled == true when: duplicati_enabled == true

28
tasks/netdata.yml Normal file
View file

@ -0,0 +1,28 @@
###### Create
- name: Get docker group id
group:
name: docker
register: docker_group
- name: Netdata Docker Container
docker_container:
name: netdata
hostname: "{{ ansible_nas_hostname }}.{{ ansible_nas_domain }}"
image: netdata/netdata
state: started
pull: true
ports:
- "19999:19999"
volumes:
- "/proc:/host/proc:ro"
- "/sys:/host/sys:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
env:
PGID: "{{ docker_group.gid }}"
capabilities:
- SYS_PTRACE
security_opts:
- apparmor:unconfined
restart_policy: unless-stopped
memory: 1g