-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbeszel.yml
65 lines (59 loc) · 2.35 KB
/
beszel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
- hosts: homelab
vars:
application: beszel
docker_network: "{{ networks.pub }}"
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Create hub container
ansible.builtin.include_role:
name: docker_container
vars:
image: henrygd/beszel:0.9.1
env:
DISABLE_PASSWORD_AUTH: "true" # required for homepage widget
USER_CREATION: "true"
volumes:
- "{{ config_directory }}:/beszel_data"
traefik:
- port: 8090
homepage:
group: Monitoring
weight: 260
description: "Docker historical stats"
widget:
version: 2
username: !vault |
$ANSIBLE_VAULT;1.1;AES256
66623230356130363236316434346434343930386633613238623332356230656364366431336136
3332373065363663643664363135623333343434666632650a623263633138306234623835613939
65353634316362626461663638373836383437306539383434366361336437363639646632646363
6431306466363235300a616262353737663661643438663935366533646466623733353863363530
3636
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36373431323434303064383766383264306630353265356634613639373933643530383466653561
6135313763356564336437376465636231393633663938640a346266393435623839323564666139
30653734366132383636306138653161346439396134343964626366643435396233366138373637
3235366261356631310a623231636532333161633465636266366336646236663039663635363135
33633239343334323736646364393366346237376361396261653562623931326533
systemId: homelab
fields: '["cpu", "memory", "disk"]'
- name: Create agent container
ansible.builtin.include_role:
name: docker_container
vars:
name: "{{ application }}-agent"
image: henrygd/beszel-agent:0.9.1
env:
PORT: "45876"
KEY: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBbV3AtlViGClA6vs5U8p2luctcfdyGHJ6X+H2hhXMpw"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- "{{ common_directory_misc }}:/extra-filesystems/NAS:ro"