feat: Shit, multiple things

This commit is contained in:
Lino Silva
2023-01-31 15:37:13 +00:00
parent 51400d260b
commit acd49ed5d8
19 changed files with 80 additions and 7483 deletions
-1
View File
@@ -1 +0,0 @@
---
File diff suppressed because it is too large Load Diff
@@ -1,8 +1,8 @@
---
- name: Add traefik helm repo
- name: Add authentik helm repo
kubernetes.core.helm_repository:
name: authelia
repo_url: "https://charts.authelia.com"
name: authentik
repo_url: "https://charts.goauthentik.io"
- name: Update the repository cache
kubernetes.core.helm:
@@ -12,9 +12,10 @@
state: absent
update_repo_cache: true
- name: Deploy latest version of Authelia chart inside
- name: Deploy latest version of Authentik chart inside
kubernetes.core.helm:
kubeconfig: /Users/lino.silva/.kube/config
name: authelia
chart_ref: authelia/authelia
name: authentik
namespace: traefik
chart_ref: authentik/authentik
values: "{{ lookup('template', 'values.yml') | from_yaml }}"
+22
View File
@@ -0,0 +1,22 @@
authentik:
secret_key: "fKkVEXDoUdGYwoNb$97xQuG9uw7zu$rFDe6y7!UZ&6$5*cyx6h"
# This sends anonymous usage-data, stack traces on errors and
# performance data to sentry.io, and is fully opt-in
error_reporting:
enabled: true
postgresql:
password: "uNP9W3zMpp4853QF9f@mpJDEXprca@tX@cEj3#BLFR&WFZVBU^"
ingress:
enabled: true
hosts:
- host: auth.lino.cooking
paths:
- path: "/"
pathType: Prefix
postgresql:
enabled: true
postgresqlPassword: "uNP9W3zMpp4853QF9f@mpJDEXprca@tX@cEj3#BLFR&WFZVBU^"
redis:
enabled: true
File diff suppressed because it is too large Load Diff
@@ -11,6 +11,7 @@ services:
volumes:
- /etc/localtime:/etc/localtime:ro
- /config/config.yml:/config/config.yml:ro
- /media/frigate:/media/frigate
- /db:/db
- type: tmpfs
target: /tmp/cache
-22
View File
@@ -1,22 +0,0 @@
---
- name: Add longhorn helm repo
kubernetes.core.helm_repository:
name: longhorn
repo_url: "https://charts.longhorn.io"
- name: Update the repository cache
kubernetes.core.helm:
kubeconfig: /Users/lino.silva/.kube/config
name: dummy
namespace: kube-system
state: absent
update_repo_cache: true
- name: Deploy latest version of Longhorn chart inside longhorn-system namespace (and create it)
kubernetes.core.helm:
kubeconfig: /Users/lino.silva/.kube/config
name: longhorn
chart_ref: longhorn/longhorn
release_namespace: longhorn-system
create_namespace: true
chart_version: 1.2.4
+16
View File
@@ -31,6 +31,12 @@
update_cache: yes
state: present
- name: Install network-manager
ansible.builtin.apt:
name: network-manager
update_cache: yes
state: present
- name: Set same timezone on every Server
community.general.system.timezone:
name: "{{ system_timezone }}"
@@ -113,5 +119,15 @@
group: root
mode: a+x
- name: Configure networking without cloud-init because it sucks
nmcli:
conn_name: "eth0"
ifname: eth0
type: ethernet
state: present
autoconnect: yes
ip4: "{{ ansible_host }}"
gw4: 10.0.0.1
- name: Reboot
ansible.builtin.reboot: