updates: prepare for upgrade to debian 12

This commit is contained in:
2024-06-27 15:19:52 -07:00
parent ef40b1ba7d
commit f3c6c61130
14 changed files with 32 additions and 85 deletions

View File

@@ -1,12 +1,3 @@
- name: Configure cadvisor
become: yes
template:
src: default/cadvisor.j2
dest: /etc/default/cadvisor
owner: root
group: root
mode: 0644
- name: Install Debian packages
become: yes
ansible.builtin.apt:
@@ -14,8 +5,6 @@
- docker-ce
- docker-compose-plugin
- firewalld
- prometheus-node-exporter
- cadvisor
state: latest
- name: Upgrade Debian packages
@@ -28,6 +17,13 @@
state: latest
register: apt_upgrades
- name: Ensure firewalld is running
become: yes
service:
name: firewalld
state: started
enabled: yes
- name: Allow SSH
become: yes
firewalld:
@@ -68,12 +64,6 @@
state: enabled
immediate: yes
- name: Enable Firewall
become: yes
firewalld:
state: enabled
immediate: yes
- name: Reboot if needed
become: yes
ansible.builtin.reboot:

View File

@@ -1,47 +0,0 @@
# config options for cadvisor(1)
#
# Docker endpoint to connect to
# Default: unix:///var/run/docker.sock
CADVISOR_DOCKER_ENDPOINT="unix:///var/run/docker.sock"
# Port to listen on
# Default: 8080
CADVISOR_PORT="9110"
# Storage driver
# Default: none/blank
#
# Available Options:
# - <empty>
# - bigquery
# - elasticsearch
# - kafka
# - redis
# - statsd
# - stdout
CADVISOR_STORAGE_DRIVER=""
# Storage driver host
# Default: localhost:8086"
CADVISOR_STORAGE_DRIVER_HOST="localhost:8086"
# Storage driver password
# Default: root
CADVISOR_STORAGE_DRIVER_PASSWORD="root"
# Storage driver secure connection
# Default: false
CADVISOR_STORAGE_DRIVER_SECURE="false"
# Storage driver user
# Default: root
CADVISOR_STORAGE_DRIVER_USER="root"
# Log to stderr ("true" logs to journal on systemd
# and "false" to "/var/log/cadvisor.log" on SysV)
# Default: true
CADVISOR_LOG_TO_STDERR="true"
# Other options:
#DAEMON_ARGS=""