This commit is contained in:
@@ -30,7 +30,7 @@ The server operates within its own VLAN (`homesrv`) but requires controlled comm
|
|||||||
|
|
||||||
### myInfra stack
|
### myInfra stack
|
||||||
|
|
||||||
docker, promtail and telegraf configuration [maintained on myInfra repo](/:root/marcio.fernandes/myInfrastructure).
|
docker, promtail and telegraf configuration [maintained by ansible playbook](./site.yml).
|
||||||
|
|
||||||
### docker
|
### docker
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
- name: Setup rclone docker plugin
|
- name: Setup rclone docker plugin
|
||||||
become: true
|
become: true
|
||||||
vars:
|
## vars:
|
||||||
# rclone_docker_plugin_config: |
|
# rclone_docker_plugin_config: |
|
||||||
# [s3-limbo-storage]
|
# [s3-limbo-storage]
|
||||||
# type = s3
|
# type = s3
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
# endpoint = !!! SET ON INVENTORY !!!
|
# endpoint = !!! SET ON INVENTORY !!!
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
- homesrv01
|
- casa
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Enforce folders
|
- name: Enforce folders
|
||||||
23
site.yml
Normal file
23
site.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
- name: Setup system
|
||||||
|
hosts:
|
||||||
|
- casa
|
||||||
|
roles:
|
||||||
|
- role: mylimbo.globals.docker
|
||||||
|
vars:
|
||||||
|
mylimbo_docker_log_driver: "journald" # Set the default log driver to journald
|
||||||
|
|
||||||
|
- role: mylimbo.globals.docker_promtail
|
||||||
|
vars:
|
||||||
|
loki:
|
||||||
|
url: "{{promtail_loki_url}}"
|
||||||
|
labels:
|
||||||
|
host: "{{promtail_label_host}}"
|
||||||
|
|
||||||
|
- role: mylimbo.globals.docker_telegraf
|
||||||
|
vars:
|
||||||
|
hostname: "{{ telegraf_hostname }}"
|
||||||
|
influxdb2:
|
||||||
|
org: "{{ telegraf_influxdb_org }}"
|
||||||
|
url: "{{ telegraf_influxdb_url }}"
|
||||||
|
token: "{{ telegraf_influxdb_token }}"
|
||||||
|
bucket: "{{ telegraf_influxdb_bucket }}"
|
||||||
Reference in New Issue
Block a user