diff options
-rw-r--r-- | chaos-at-home/ch-greenbone.yml | 2 | ||||
-rw-r--r-- | inventory/host_vars/ch-greenbone.yml | 13 | ||||
-rw-r--r-- | inventory/hosts.ini | 1 | ||||
-rw-r--r-- | roles/greenbone/server/tasks/main.yml | 3 |
4 files changed, 19 insertions, 0 deletions
diff --git a/chaos-at-home/ch-greenbone.yml b/chaos-at-home/ch-greenbone.yml index f04effbc..e2d6ef00 100644 --- a/chaos-at-home/ch-greenbone.yml +++ b/chaos-at-home/ch-greenbone.yml @@ -12,6 +12,8 @@ hosts: ch-greenbone roles: - role: storage/lvm/base + - role: apt-repo/spreadspace + - role: monitoring/prometheus/exporter - role: nginx/base - role: x509/static-ca/base - role: docker/engine diff --git a/inventory/host_vars/ch-greenbone.yml b/inventory/host_vars/ch-greenbone.yml index d6ad35ce..6ca3c773 100644 --- a/inventory/host_vars/ch-greenbone.yml +++ b/inventory/host_vars/ch-greenbone.yml @@ -36,6 +36,19 @@ network: ntp_variant: systemd-timesyncd +spreadspace_apt_repo_components: + - prometheus + + +prometheus_job_multitarget_blackbox__probe: + ch-mon: + - instance: "ssh-{{ inventory_hostname }}" + target: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:{{ ansible_port | default(22) }}" + module: ssh_banner + - instance: "https-greenbone.chaos-at-home.org" + target: "https://{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}" + module: http_tls_2xx + docker_pkg_provider: docker-com docker_plugins: diff --git a/inventory/hosts.ini b/inventory/hosts.ini index 0bc9c91d..ecc08c3b 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -484,6 +484,7 @@ ch-pan ch-mimas ch-iot ch-http-proxy +ch-greenbone [promzone-chaos-at-home:children] chaos-at-home-ap chaos-at-home-ups diff --git a/roles/greenbone/server/tasks/main.yml b/roles/greenbone/server/tasks/main.yml index 090f2746..f95d9df6 100644 --- a/roles/greenbone/server/tasks/main.yml +++ b/roles/greenbone/server/tasks/main.yml @@ -68,6 +68,9 @@ echo "update queued successfully." echo "Please also read: https://greenbone.github.io/docs/latest/22.4/container/workflows.html#performing-a-feed-synchronization" + echo "" + echo "cleaning up unused/old containers and images ..." + docker system prune -f exit 0 dest: "/usr/local/bin/update-greenbone.{{ greenbone_server_hostname }}" mode: 0755 |