mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +00:00
Merge pull request #29 from C-J1/add-support-for-netdata
Add support for netdata
This commit is contained in:
commit
0bd3e6f36e
4 changed files with 34 additions and 0 deletions
|
@ -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
|
||||
- [Heimdall](https://heimdall.site/) - Home server dashboard
|
||||
- [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
|
||||
- [Plex](https://www.plex.tv/) - Plex Media Server
|
||||
- [Portainer](https://portainer.io/) - for managing Docker and running custom images
|
||||
|
|
|
@ -33,6 +33,7 @@ portainer_enabled: true
|
|||
glances_enabled: true
|
||||
stats_enabled: false
|
||||
guacamole_enabled: false
|
||||
netdata_enabled: false
|
||||
|
||||
# Backup & Restore
|
||||
duplicati_enabled: true
|
||||
|
|
4
nas.yml
4
nas.yml
|
@ -47,6 +47,10 @@
|
|||
- import_tasks: tasks/glances.yml
|
||||
when: glances_enabled == true
|
||||
tags: glances
|
||||
|
||||
- import_tasks: tasks/netdata.yml
|
||||
when: netdata_enabled == true
|
||||
tags: netdata
|
||||
|
||||
- import_tasks: tasks/duplicati.yml
|
||||
when: duplicati_enabled == true
|
||||
|
|
28
tasks/netdata.yml
Normal file
28
tasks/netdata.yml
Normal 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
|
||||
|
Loading…
Reference in a new issue