Compare commits

...

112 Commits

Author SHA1 Message Date
tim
8aea0618a2 applications/n8n/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m48s
2024-12-12 20:20:05 +01:00
tim
7ea6819fc8 helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m46s
2024-12-12 19:41:21 +01:00
tim
67c071ede5 applications/homeassistant-ingress-external/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m48s
2024-12-12 19:34:08 +01:00
6a7a19ebd7 Added own ingress template
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m49s
2024-12-12 19:28:36 +01:00
tim
f5773cae13 applications/n8n/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m57s
2024-12-12 14:12:49 +01:00
tim
3ea5d007dd applications/n8n/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 2m34s
2024-12-12 13:57:02 +01:00
tim
3e6edcec9a applications/n8n/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m53s
2024-12-11 22:50:25 +01:00
tim
69e9f6ea8a applications/n8n/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m53s
2024-12-11 21:35:43 +01:00
392555e454 adksa
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 2m5s
2024-12-11 21:32:05 +01:00
tim
7497c3df94 applications/n8n/nvalues.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m25s
2024-12-10 22:26:12 +01:00
tim
9b7b28251e applications/n8n/values.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 2m16s
2024-12-10 22:21:57 +01:00
tim
ef9ab3a1e7 helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 3m7s
2024-12-10 22:10:44 +01:00
tim
8c08a913ed helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 2m21s
2024-12-10 22:07:01 +01:00
913866b6b4 added n8n
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 2m49s
2024-12-10 22:00:58 +01:00
tim
198eee08aa helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 4m38s
2024-12-10 21:48:47 +01:00
tim
ca801c30a7 applications/openbao/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m43s
2024-12-10 19:22:50 +01:00
tim
da9966c24a applications/openbao/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m43s
2024-12-10 19:15:51 +01:00
tim
c70b96f913 helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m47s
2024-12-10 17:26:38 +01:00
tim
0674f93c6e helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m40s
2024-12-10 17:15:42 +01:00
tim
4e513fd506 helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m22s
2024-12-10 09:13:55 +01:00
tim
d80e7ff482 applications/traefik/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m28s
2024-12-10 08:48:50 +01:00
tim
f14f1c1a68 applications/traefik/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m49s
2024-12-10 08:26:57 +01:00
tim
96d36238af applications/traefik/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m26s
2024-12-09 22:38:53 +01:00
tim
0146f7e68b applications/traefik/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m23s
2024-12-09 22:32:46 +01:00
tim
194857e7b9 helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m19s
2024-12-09 22:10:29 +01:00
tim
d3686ff102 helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m50s
2024-12-09 21:42:25 +01:00
tim
fe6da9cc06 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m18s
2024-12-09 21:40:04 +01:00
tim
d19f1e152b helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m17s
2024-12-09 21:38:33 +01:00
635b66725b added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m31s
2024-11-29 23:29:57 +01:00
4ecaf75fff added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m19s
2024-11-29 23:23:21 +01:00
7ac04a4b02 added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m18s
2024-11-29 23:09:12 +01:00
d3c807a92f added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 47s
2024-11-29 23:04:32 +01:00
e9e117550e added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 46s
2024-11-29 23:01:58 +01:00
040312dbfb added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 47s
2024-11-29 22:57:37 +01:00
3d9cf0157b added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 48s
2024-11-29 22:53:28 +01:00
da518f82a3 added cert-manager webook
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 49s
2024-11-29 22:50:03 +01:00
3ee38599ce added cert-manager webook 2024-11-29 22:48:21 +01:00
be8350255d Added pool to nginx and cert-manager
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m58s
2024-11-29 22:08:13 +01:00
29c842f4d1 Added pool to nginx and cert-manager
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m18s
2024-11-29 21:59:10 +01:00
7ac84ce8c7 Added pool to metallb
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 2m10s
2024-11-29 21:35:08 +01:00
tim
5a574fadfd applications/argocd/values.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 2m31s
2024-11-13 22:48:47 +01:00
6d30fbd684 Merge branch 'master' of ssh://git.unkrig.dev:2222/homelab/homelab
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m20s
2024-11-13 22:30:03 +01:00
47fc7cdd6f added traefik values 2024-11-13 22:29:58 +01:00
tim
0882ef9072 helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m16s
2024-11-13 22:27:31 +01:00
tim
418d1715bb helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m12s
2024-11-13 22:22:28 +01:00
tim
c0f94ff808 helmfile.yaml aktualisiert
All checks were successful
Helmfile Update Workflow / update-helm-deployment (push) Successful in 1m20s
2024-11-13 22:20:41 +01:00
tim
7138e19919 applications/traefik/values.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m15s
2024-11-13 22:18:12 +01:00
tim
d0b53890d0 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m16s
2024-11-13 22:07:25 +01:00
tim
e7f706bf5c .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m18s
2024-11-13 22:00:00 +01:00
tim
db83b56748 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m16s
2024-11-13 21:54:15 +01:00
tim
51ed806413 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m17s
2024-11-13 21:51:49 +01:00
tim
b8038c15c2 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m23s
2024-11-13 21:47:30 +01:00
tim
98bb19020a helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m18s
2024-11-13 21:40:35 +01:00
tim
4adb8805af .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m30s
2024-11-13 21:37:54 +01:00
tim
2e33d24154 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m10s
2024-11-13 21:35:04 +01:00
a848c23fe6 updated workflow and metallb and traefik chart
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m5s
2024-11-11 19:55:59 +01:00
6fa7716fe7 added new version of k3s in ansible
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1s
2024-11-11 19:36:48 +01:00
4c921648bb akdsoasdk 2024-11-11 19:36:09 +01:00
103eeffba0 changed back to master for merge request
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1s
2024-11-11 19:33:13 +01:00
tim
db342da703 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m4s
2024-10-22 23:37:49 +02:00
tim
eed7d2ba8b .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1s
2024-10-22 23:20:18 +02:00
tim
36703f7f86 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 55s
2024-10-22 23:17:38 +02:00
tim
097c69f2a8 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Has been cancelled
2024-10-22 23:16:51 +02:00
tim
1569eda254 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 56s
2024-10-22 23:02:38 +02:00
tim
1d2a562952 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 59s
2024-10-22 22:53:21 +02:00
tim
7cbbd90b03 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1m13s
2024-10-22 19:09:02 +02:00
8ac215f948 Merge branch 'master' of ssh://git.unkrig.dev:2222/tim/homelab
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 1s
2024-10-22 17:36:14 +02:00
0e23674dc9 Changed image in helmfile worlflow 2024-10-22 17:35:45 +02:00
tim
c1d0b31e30 .gitea/workflows/helmfile.yaml aktualisiert
Some checks failed
Helmfile Update Workflow / update-helm-deployment (push) Failing after 2m32s
2024-10-22 17:26:55 +02:00
f4644370cf Updated firefly to 0.8.0 2024-10-22 17:26:04 +02:00
c9be4c2575 Added gitea actions 2024-10-22 17:21:07 +02:00
8e594bb447 Added all shit 2024-10-22 17:17:40 +02:00
9e1724f8d9 Added extensions to gitignore 2024-10-22 17:14:43 +02:00
Tim Unkrig
af08d092d4 updated traefik ingress controller 2024-06-17 15:35:04 +02:00
Tim Unkrig
a275165529 fixed issues in traefik config 2024-06-17 14:46:23 +02:00
Tim Unkrig
8833542159 changed again 2024-06-17 11:41:57 +02:00
Tim Unkrig
b6d883612d changed version in chart 2024-06-17 11:38:41 +02:00
Tim Unkrig
14ba6a1d27 changed folder to secrets 2024-06-17 11:36:59 +02:00
Tim Unkrig
1dcb84ccd9 added sealed-secrets to applications 2024-06-17 11:33:25 +02:00
Tim Unkrig
58b616fd92 bla 2024-06-13 11:36:26 +02:00
Tim Unkrig
2061afd4dd changed image to openbao-k8s 2024-06-13 11:29:02 +02:00
Tim Unkrig
1335d66c3c Changed access mode 2024-06-11 16:34:04 +02:00
Tim Unkrig
bb9bb34b75 changed accessMode 2024-06-09 21:33:47 +02:00
Tim Unkrig
d0f0b066c8 added storage to openbao 2024-06-09 21:28:19 +02:00
Tim Unkrig
0dfd9bd337 added openbao to applications 2024-06-09 21:16:48 +02:00
Tim Unkrig
6e997f3e8c http3 disabled 2024-06-09 20:03:32 +02:00
Tim Unkrig
fa4729c0a3 Added some traefik configs 2024-06-09 13:52:22 +02:00
Tim Unkrig
9181e763e6 Delete submodules for collection 2024-06-03 16:14:13 +02:00
Tim Unkrig
d9b98d9521 added the traefik umbrella chart 2024-05-14 22:31:59 +02:00
Tim Unkrig
496bc718f7 added packer again 2024-05-13 14:18:36 +02:00
Tim Unkrig
b9222ea453 remove packer 2024-05-13 14:17:59 +02:00
Tim Unkrig
a150a0dbf0 added opentofu again 2024-05-13 14:16:44 +02:00
Tim Unkrig
616e9cce82 opentofu 2024-05-13 14:16:14 +02:00
Tim Unkrig
b12224f439 Added struture to monorepo for homelab 2024-05-13 09:26:11 +02:00
Tim Unkrig
0dd9a416a5 added jimsgarage 2024-05-10 12:40:54 +02:00
Tim Unkrig
08d0c653b0 added jimsgarage as submodule 2024-05-10 12:40:24 +02:00
3b8e75f7d6 diff 2023-11-29 13:43:28 +01:00
ee347f3279 diff 2023-11-29 13:41:31 +01:00
c3045e3179 diff 2023-11-29 13:41:27 +01:00
72f82747c7 diff 2023-11-29 13:37:09 +01:00
90651c525e pi_hole submodule fixed 2023-10-31 12:35:20 +01:00
0f0a4512f8 ok 2023-10-31 12:34:48 +01:00
c8321c5cc0 added unifi_controller as submodule 2023-10-31 12:34:30 +01:00
24d848c0ff again! 2023-10-27 17:18:29 +02:00
85ed58621e fixed syntax errors 2023-10-27 17:17:55 +02:00
318d569840 added pi_hole 2023-10-27 17:09:08 +02:00
7e623bc3a2 sdas 2023-10-27 17:08:14 +02:00
54ba5fcc87 added DS_Store files to gitignore 2023-10-27 17:08:10 +02:00
7eba1d90bb asdasd 2023-10-27 17:03:41 +02:00
99b0a209a5 blasldasdl 2023-10-27 17:03:40 +02:00
3cb38dfff5 bla 2023-10-27 17:01:44 +02:00
8a1f6c3936 fixed sublodule error 2023-10-27 17:01:32 +02:00
511 changed files with 24413 additions and 23147 deletions

View File

@@ -0,0 +1,37 @@
name: "Helmfile Update Workflow"
on:
push:
branches:
- master # Trigger on push to the main branch
pull_request:
types: [opened, synchronize, reopened] # Trigger on PR events
jobs:
update-helm-deployment:
runs-on: ubuntu-latest
# Use Docker image with Helm, Helmfile, node and kubectl pre-installed
container:
image: ${{ vars.REGISTRY }}/oci-images/alpine-helmfile:latest
steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v4
# Step 2: Set up Kubernetes configuration (optional - depends on where your cluster is)
- name: Set up kubeconfig
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} # Store your kubeconfig in Gitea Secrets
run: |
echo "$KUBE_CONFIG_DATA" | base64 -d > ~/.kube/config
kubectl config use-context homelab
chmod 600 ~/.kube/config
cat ~/.kube/config
- name: Helmfile Apply
uses: helmfile/helmfile-action@v2.0.0
with:
helmfile-args: apply
helmfile-auto-init: "false"

7
.gitignore vendored
View File

@@ -1,5 +1,6 @@
# ---> Ansible
*.retry
.vault
# ---> Python
# Byte-compiled / optimized / DLL files
@@ -86,6 +87,8 @@ target/
profile_default/
ipython_config.py
k3s-ansible/inventory.yaml
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
@@ -155,3 +158,7 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
*.DS_Store
# VSCODE
*.vscode

17
.gitmodules vendored
View File

@@ -1,18 +1,3 @@
[submodule "k3s-ansible"]
path = k3s-ansible
url = https://github.com/techno-tim/k3s-ansible.git
[submodule "haup/gitea"]
path = roles/haup.gitea
url = ssh://git@git.unkrig.dev:2222/tim/gitea.git
[submodule "roles/docker-semaphore"]
path = roles/docker-semaphore
url = ssh://git@git.unkrig.dev:2222/ansible-roles/docker-semaphore.git
[submodule "roles/docker-droneCI"]
path = roles/docker-droneCI
url = ssh://git@git.unkrig.dev:2222/ansible-roles/docker-droneCI.git
[submodule "roles/pi_hole"]
path = roles/pi_hole
url = ssh://git@git.unkrig.dev:2222/ansible-roles/pi_hole.git
[submodule "roles/docker"]
path = roles/docker
url = ssh://git@git.unkrig.dev:2222/tim/docker.git
url = https://github.com/k3s-io/k3s-ansible.git

10
.vscode/settings.json vendored
View File

@@ -1,11 +1,15 @@
{
"yaml.schemas": {
"https://json.schemastore.org/yamllint.json": "file:///Users/tim/Projects/homelab/prometheus.yaml",
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/meta.json": [
"file:///Users/tim/Projects/homelab/roles/haup.gitea/meta/main.yml",
"file:///Users/tim/Projects/homelab/roles/haup.docker/meta/main.yml"
"file:///Users/tim/Projects/homelab/roles/haup.docker/meta/main.yml",
"file:///Users/tim/Projects/homelab/roles/pi_hole/meta/main.yml"
],
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/tasks": "file:///Users/tim/Projects/homelab/roles/haup.docker/tasks/main.yml"
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/tasks": "file:///Users/tim/Projects/homelab/roles/haup.docker/tasks/main.yml",
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook": [
"file:///Users/tim/Projects/homelab/infra.yaml",
"file:///Users/tim/Projects/homelab/prometheus.yaml"
]
},
"ansible.python.interpreterPath": "/opt/homebrew/bin/python3"
}

View File

@@ -1,5 +0,0 @@
[defaults]
nocows = True
inventory = ./inventory
roles_path = ./roles/
pipelining = True

7
ansible/ansible.cfg Normal file
View File

@@ -0,0 +1,7 @@
[defaults]
nocows = True
inventory = inventory/hosts.yaml
roles_path = roles
pipelining = True
vault_password_file = .vault
interpreter_python = auto_silent

6
ansible/cloud.yaml Normal file
View File

@@ -0,0 +1,6 @@
---
- name: Manage nextcloud-aio VM
hosts: cloud
roles:
- { role: prometheus.prometheus.node_exporter, become: true }

9
ansible/devops.yaml Normal file
View File

@@ -0,0 +1,9 @@
---
- name: Manage devops VM
hosts: devops
vars: []
roles:
- { role: docker, become: true }
- { role: haup.gitea, become: true }
- { role: prometheus.prometheus.node_exporter, become: true }

54
ansible/gitlab.yaml Normal file
View File

@@ -0,0 +1,54 @@
---
- name: Manage devops VM
hosts: gitlab
vars:
mail_server: "smtp.variomedia.de"
mail_username: "relay@unkrig.dev"
mail_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
33663362623763346365343030376663333238333437326538616138316564316538343666656335
3532613366393466346262613264643437313138396363310a623962366634323064613161646461
63323936353762613863373961333264616136376366333232363137373261323133363136383765
6639663162633638650a653662333738396165356564363137613434376334643831313161346461
63663366303663643064626137356465636530653933663237393363356238616562373937626462
3164336265373436353331613262643563653066346237373031
roles:
- { role: postfix, become: true }
- { role: docker, become: true }
- { role: prometheus.prometheus.node_exporter, become: true }
tasks:
- name: Install gitlab dependencies
ansible.builtin.apt:
name: "{{ item }}"
loop:
- curl
- openssh-server
- ca-certificates
- perl
become: true
- name: Download foo.conf
ansible.builtin.get_url:
url: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh
dest: /tmp/script.deb.sh
mode: '0770'
become: true
- name: Install repo script from gitlab
ansible.builtin.command: /tmp/script.deb.sh
changed_when: true
become: true
- name: Install gitlab-ee
ansible.builtin.apt:
name: gitlab-ee
become: true
environment:
EXTERNAL_URL: "https://gitlab.unkrig.dev"
- name: Mark gitlab-ee package
ansible.builtin.dpkg_selections:
name: gitlab-ee
selection: hold
become: true

10
ansible/infra.yaml Normal file
View File

@@ -0,0 +1,10 @@
---
- name: Manage infra VM
hosts: infra
roles:
- { role: docker, become: true }
- { role: pi_hole, become: true }
# - { role: nginxproxymanager, become: true }
- { role: unifi_controller, become: true }
- { role: prometheus.prometheus.node_exporter, become: true }

View File

@@ -0,0 +1,30 @@
---
os: "linux"
arch: "amd64"
kube_vip_version: "v0.8.0"
vip_interface: eth0
vip: 10.20.1.129
metallb_version: v0.13.12
lb_range: 10.20.1.130-10.20.1.160
lb_pool_name: elfriede-pool
# Deploy the control plane in HA mode
rke2_ha_mode: false
ansible_user: tim
ansible_become: true
ansible_become_method: sudo
rke2_servers_group_name: rke2_servers
rke2_cluster_group_name: rke2_cluster
rke2_interface: eth0
rke2_version: v1.29.4+rke2r1
rke2_token: defaultSecret12345
rke2_architecture: amd64
rke2_channel: stable
rke2_cni:
- multus
- calico
rke2_api_ip: "{{ hostvars[groups[rke2_servers_group_name].0]['ansible_default_ipv4']['address'] }}"
rke2_download_kubeconf: true

View File

@@ -0,0 +1,52 @@
all:
hosts:
openmediavault:
ansible_host: "10.20.1.5"
ansible_user: "tim"
host_var:
docker: True
proxmox:
ansible_host: "10.20.1.251"
ansible_user: "root"
devops:
ansible_host: "10.20.1.6"
docker_compose_paths:
- "/srv/gitea"
infra:
ansible_host: "10.20.1.1"
ansible_user: "tim"
docker_compose_paths:
- "/srv/traefik"
- "/srv/pi-hole"
- "/srv/freshrss"
- "/srv/vaultwarden"
k3s:
ansible_host: "10.20.1.128"
ansible_user: "tim"
host_var:
k3s_type: server
cloud:
ansible_host: "10.20.1.8"
ansible_user: "tim"
vars:
children:
debian:
hosts:
devops:
openmediavault:
cloud:
infra:
pve:
hosts:
proxmox:
k3s_cluster:
children:
k3s_servers:
hosts:
k3s:
docker:
children:
docker_compose:
hosts:
devops:
infra:

129
ansible/k3s.yaml Normal file
View File

@@ -0,0 +1,129 @@
---
- name: Manage k3s Installation
hosts: k3s
become: true
vars_files: []
vars:
locale: "de_DE.UTF-8"
timezone: "Europe/Berlin"
kbdlayout: "de"
pre_tasks:
- name: Update cache if necassary
ansible.builtin.apt:
update_cache: true
cache_valid_time: 86400
tasks:
- name: Dist-upgrade
ansible.builtin.apt:
upgrade: full
- name: Change locale
ansible.builtin.command: "raspi-config nonint do_change_locale {{ locale }}"
register: my_output # <- Registers the command output.
changed_when: my_output.rc != 0 # <- Uses the return code to define when the task has changed.
- name: Change timezone
ansible.builtin.command: "raspi-config nonint do_change_timezone {{ timezone }}"
register: my_output # <- Registers the command output.
changed_when: my_output.rc != 0 # <- Uses the return code to define when the task has changed.
- name: Change keyboard layout
ansible.builtin.command: "raspi-config nonint do_configure_keyboard {{ kbdlayout }}"
register: my_output # <- Registers the command output.
changed_when: my_output.rc != 0 # <- Uses the return code to define when the task has changed.
- name: Enable IPv4 forwarding
ansible.posix.sysctl:
name: net.ipv4.ip_forward
value: "1"
state: present
reload: true
- name: Enable IPv6 forwarding
ansible.posix.sysctl:
name: net.ipv6.conf.all.forwarding
value: "1"
state: present
reload: true
- name: Activating cgroup support
ansible.builtin.lineinfile:
path: /boot/cmdline.txt
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
backrefs: true
notify: Reboot
- name: Flush iptables before changing to iptables-legacy
ansible.builtin.iptables:
flush: true
changed_when: false # iptables flush always returns changed
- name: Changing to iptables-legacy
community.general.alternatives:
path: /usr/sbin/iptables-legacy
name: iptables
register: ip4_legacy
- name: Changing to ip6tables-legacy
community.general.alternatives:
path: /usr/sbin/ip6tables-legacy
name: ip6tables
register: ip6_legacy
handlers:
- name: Reboot
ansible.builtin.reboot:
- name: Install k3s master
hosts: k3s_master
become: true
tasks:
- name: Download k3s Install Script
ansible.builtin.get_url:
url: https://get.k3s.io
dest: /tmp/k3s_install.sh
mode: '0750'
delegate_to: "{{ item }}"
loop: "{{ groups.k3s }}"
- name: Install k3s with oneliner
ansible.builtin.command: "./k3s_install.sh --disable traefik --disable servicelb"
args:
chdir: /tmp/
register: my_output
changed_when: my_output.rc != 0
- name: Print debug log
ansible.builtin.debug:
msg: "{{ my_output }}"
- name: Get Token for joining cluster
ansible.builtin.slurp:
src: /var/lib/rancher/k3s/server/node-token
register: token
- name: Set token as fact
ansible.builtin.set_fact:
token: "{{ token }}"
- debug:
msg: "{{ hostvars['k3s-cp']['ansible_facts']['default_ipv4']['address'] }}\n {{ token }}"
- name: Install nodes with k3s
ansible.builtin.command: "./k3s_install.sh"
args:
chdir: /tmp/
environment:
K3S_URL: "https://{{ hostvars['k3s-cp']['ansible_facts']['default_ipv4']['address'] }}:6443"
K3S_TOKEN: "{{ token.content }}"
delegate_to: "{{ item }}"
loop: "{{ groups.k3s_nodes }}"
register: my_output # <- Registers the command output.
changed_when: my_output.rc != 0
- name: Print debug log
ansible.builtin.debug:
msg: "{{ my_output }}"

View File

@@ -10,16 +10,19 @@
- prometheus.prometheus.blackbox_exporter
- prometheus.prometheus.snmp_exporter
- prometheus.prometheus.alertmanager
- cloudalchemy.grafana
- grafana.grafana.grafana
vars:
prometheus_targets:
node:
- targets:
- localhost:9100
- proxmox:9100
- 10.10.20.3:9100
- 10.10.20.5:9100
- skyconnect:9100
- infra:9100
- docker:9100
- cloud:9100
- 10.20.1.5:9100
- devops:9100
labels:
env: elfriede
prometheus_scrape_configs:
@@ -28,11 +31,6 @@
static_configs:
- targets:
- localhost:9787
- job_name: "sbc"
scrape_interval: 60s
static_configs:
- targets:
- 10.10.20.11:9099
- job_name: "node"
file_sd_configs:
- files:

View File

@@ -2,6 +2,5 @@
collections:
- name: community.general
- name: prometheus.prometheus
roles:
- name: cloudalchemy.grafana
- name: grafana.grafana
- name: community.docker

22
ansible/rke.yaml Normal file
View File

@@ -0,0 +1,22 @@
---
- name: Manage rke Installation
hosts: rke2_cluster
become: true
gather_facts: true
vars_files: []
vars:
locale: "de_DE.UTF-8"
timezone: "Europe/Berlin"
kbdlayout: "de"
pre_tasks:
- name: Update cache if necassary
ansible.builtin.apt:
update_cache: true
cache_valid_time: 86400
tasks:
- name: Dist-upgrade
ansible.builtin.apt:
upgrade: full
roles:
- role: lablabs.rke2

1
ansible/roles/add-agent Symbolic link
View File

@@ -0,0 +1 @@
../JimsGarage/Ansible/Playbooks/RKE2/roles/add-agent

1
ansible/roles/add-server Symbolic link
View File

@@ -0,0 +1 @@
../JimsGarage/Ansible/Playbooks/RKE2/roles/add-server

View File

@@ -0,0 +1 @@
../JimsGarage/Ansible/Playbooks/RKE2/roles/apply-manifests

View File

@@ -0,0 +1,2 @@
install_date: Tue Oct 31 11:35:43 2023
version: 0.18.0

View File

@@ -0,0 +1,3 @@
# ---> Ansible
*.retry

View File

@@ -0,0 +1,38 @@
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View File

@@ -0,0 +1,2 @@
---
# defaults file for docker-droneCI

View File

@@ -0,0 +1,37 @@
version: '2'
services:
drone-server:
image: drone/drone:latest
ports:
- 8967:80
- 8968:443
volumes:
- /srv/drone/data:/data/
restart: always
environment:
- DRONE_SERVER_HOST={{ drone_server_url }}
- DRONE_SERVER_PROTO=https
- DRONE_GITEA_SERVER={{ drone_gitea_url }}
- DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }}
- DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }}
- DRONE_RPC_SECRET={{ drone_rpc_secret }}
- DRONE_GIT_ALWAYS_AUTH=true
drone-runner:
image: drone/drone-runner-docker:latest
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_SECRET={{ drone_rpc_secret }}
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server
- DRONE_RUNNER_NAME="docker-runner"
- DRONE_RUNNER_CAPACITY=2
- DRONE_DEBUG=true
- DRONE_TRACE=true
- DRONE_RUNNER_NETWORKS=drone_default,gitea_gitea

View File

@@ -1,6 +1,6 @@
galaxy_info:
author: Tim Unkrig
description: homelab
description: docker install homelab
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
@@ -13,7 +13,7 @@ galaxy_info:
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: "MIT"
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: "2.8"

View File

@@ -1,7 +1,7 @@
---
# tasks file for pi-hole
# tasks file for docker-droneCI
- name: Create pi-hole directory
- name: Create drone directory
ansible.builtin.file:
path: "{{ app_dir }}"
state: directory
@@ -21,9 +21,9 @@
group: root
mode: '0660'
validate: docker-compose config --quiet --file %s
backup: true
backup: yes
- name: Start docker-compose
community.docker.docker_compose:
docker_compose:
project_src: "{{ app_dir }}"
state: present

View File

@@ -1,3 +1,4 @@
---
# vars file for haup.gitea
app_dir: "/srv/pi-hole"
app_dir: "/srv/drone/"

View File

@@ -0,0 +1,3 @@
# ---> Ansible
*.retry

View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) 2023 ansible-roles
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,2 @@
# docker-semaphore

View File

@@ -0,0 +1,38 @@
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View File

@@ -0,0 +1,2 @@
---
# handlers file for haup.gitea

View File

@@ -0,0 +1,2 @@
install_date: Mon Oct 23 14:05:36 2023
version: ''

View File

@@ -0,0 +1,47 @@
galaxy_info:
author: Tim Unkrig
description: docker install homelab
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: "2.8"
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
platforms:
- name: Debian
versions:
- "bookworm"
- name: Ubuntu
versions:
- "jammy"
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@@ -0,0 +1,14 @@
---
# tasks file for haup.docker
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
- name: Install docker.io
ansible.builtin.apt:
name: "{{ item }}"
loop:
- docker.io
- docker-compose
- containerd

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- haup.gitea

View File

@@ -0,0 +1,2 @@
---
# vars file for haup.gitea

Some files were not shown because too many files have changed in this diff Show More