chore: add pre-commit config

This commit is contained in:
cătălin 2024-02-12 17:31:17 +01:00
commit 83345289be
Signed by untrusted user: catalin
GPG key ID: 0178DF42F43E5FD2
28 changed files with 40 additions and 28 deletions

View file

@ -1,3 +1,3 @@
[defaults]
inventory = inventory
host_key_checking = False
host_key_checking = False

View file

@ -3,4 +3,4 @@
roles:
- role: ../roles/base
become: yes
become: yes

View file

@ -9,4 +9,4 @@
vars:
first_master_hostname: "{{ groups['k3s_masters'][0] }}"
is_first_master: "{{ inventory_hostname in groups['k3s_masters'][0] }}"
short_hostname: "{{ inventory_hostname.split('.')[0] }}"
short_hostname: "{{ inventory_hostname.split('.')[0] }}"

View file

@ -3,7 +3,7 @@
community.general.timezone:
name: "{{ system_timezone }}"
when: (system_timezone is defined) and (system_timezone != "Your/Timezone")
- name: Enable IPv4 forwarding
ansible.posix.sysctl:
name: net.ipv4.ip_forward
@ -33,4 +33,4 @@
- import_tasks: mounts.yml
name: Mount NFS shares
tags:
- nfs
- nfs

View file

@ -14,4 +14,4 @@
- name: Update all packages
apt:
upgrade: dist
update_cache: yes
update_cache: yes

View file

@ -14,4 +14,4 @@
mode: 600
- name: Install k3s agent
shell: "bash /tmp/k3s.install.sh agent"
shell: "bash /tmp/k3s.install.sh agent"

View file

@ -4,4 +4,3 @@
get_url:
url: https://get.k3s.io
dest: /tmp/k3s.install.sh

View file

@ -16,4 +16,4 @@
etcd_snapshot_dir: "/nfs/nas1/backups/{{ short_hostname }}"
- name: Install k3s master
command: bash /tmp/k3s.install.sh
command: bash /tmp/k3s.install.sh

View file

@ -1,2 +1,2 @@
token: {{ cluster_token }}
server: https://{{ tls_san }}:6443
server: https://{{ tls_san }}:6443

View file

@ -1,4 +1,4 @@
---
k3s_version: "v1.27.4+k3s1"
tls_san: "{{ lookup('env', 'ANSIBLE_TLS_SAN') | mandatory }}"
cluster_token: "{{ lookup('env', 'ANSIBLE_CLUSTER_TOKEN') | mandatory }}"
cluster_token: "{{ lookup('env', 'ANSIBLE_CLUSTER_TOKEN') | mandatory }}"

View file

@ -1,2 +1,2 @@
ANSIBLE_K3S_CLUSTER_TOKEN=
ANSIBLE_K3S_TLS_SAN=
ANSIBLE_K3S_TLS_SAN=

View file

@ -23,4 +23,4 @@
__path__: /mnt/share/data/cloud/data/{nextcloud,audit}.log
promtail_config_limits_config:
readline_rate_enabled: true
readline_rate_drop: true
readline_rate_drop: true

View file

@ -1 +1 @@
NEXTCLOUD_PROMTAIL_PASSWORD=superdupersecure
NEXTCLOUD_PROMTAIL_PASSWORD=superdupersecure

View file

@ -1,2 +1,2 @@
- name: patrickjahns.promtail
version: 1.26.0
version: 1.26.0