adjusting git

This commit is contained in:
ari committed 2025-08-04 13:55:04 -04:00
1 parent 5685545aca
commit 18a1f7e600
10 files changed
+108 -17

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: torrents
description: An apps service for homelab
type: application
version: 0.1.0
dependencies: []
+26
View File
@@ -0,0 +1,26 @@
# ---
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: "{{ $name }}"
# namespace: {{ $.Values.ns.argocd }}
# spec:
# project: main
# source:
# path: 'charts/compose-app'
# repoURL: {{ $.Values.repo }}
# targetRevision: {{ $.Values.revision }}
# helm:
# values: |-
# global:
# {{ $.Values.global | toYaml | nindent 20 }}
# {{ $data | toYaml | nindent 16 }}
# destination:
# namespace: {{ .Release.Namespace }}
# server: https://kubernetes.default.svc
# syncPolicy:
# syncOptions:
# - CreateNamespace=true
# automation:
# prune: true
# selfHeal: true
@@ -0,0 +1,29 @@
---
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: vpn-creds
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: secrets
target:
name: vpn-credentials
data:
- secretKey: SERVER_COUNTRIES
remoteRef:
key: vpn-credentials
property: country
- secretKey: OPENVPN_USER
remoteRef:
key: vpn-credentials
property: user
- secretKey: OPENVPN_PASSWORD
remoteRef:
key: vpn-credentials
property: password
- secretKey: VPN_SERVICE_PROVIDER
remoteRef:
key: vpn-credentials
property: provider
View File
Whitespace-only changes.
+1 -1
View File
@@ -2,4 +2,4 @@ apiVersion: v2
name: cluster
description: An infrastructure collection of manifests for homelab
type: application
version: 0.1.12
version: 0.1.15
@@ -0,0 +1,17 @@
{{ define "git-repo" }}
---
apiVersion: v1
kind: Secret
metadata:
labels:
argocd.argoproj.io/secret-type: repository
name: {{ .name }}
namespace: "{{ .namespace }}"
type: Opaque
stringData:
name: {{ .name }}
type: {{ .type | default "git" }}
url: {{ .url }}
data:
sshPrivateKey: "{{ .sshkey | b64enc }}"
{{ end }}
@@ -1,16 +1,15 @@
---
apiVersion: v1
kind: Secret
metadata:
labels:
argocd.argoproj.io/secret-type: repository
name: homelab
namespace: "{{ .Values.ns.argocd }}"
type: Opaque
stringData:
name: homelab
type: git
username: git
url: {{ .Values.gitops.repo }}
data:
sshPrivateKey: "{{ .Values.gitops.sshkey | b64enc }}"
{{ include "git-repo" (dict
"name" "homelab"
"namespace" $.Values.ns.argocd
"sshkey" $.Values.gitops.sshkey
"url" $.Values.gitops.repo
)}}
{{- range $name, $val := .Values.additionalRepos }}
{{ include "git-repo" (merge $val (dict
"name" $name
"namespace" $.Values.ns.argocd
))}}
{{ end -}}
+7
View File
@@ -13,6 +13,13 @@ gitops:
repo: "ssh://gitea@minipc1.lab.internal/ari/homelab.git"
sshkey: ""
additionalRepos:
github-helm-charts:
type: git
username: git
url: git@github.com:asosnovsky/helm-charts.git
sshkey: ""
metallb:
addresses:
- 10.0.100.1-10.0.100.255
+4
View File
@@ -15,6 +15,10 @@ resource "helm_release" "local-chart-infrastructure" {
{
name = "gitops.sshkey"
value = var.ssh_key
},
{
name = "additionalRepos.github-helm-charts.sshkey"
value = var.github_ssh_key
}
]
values = [
+3
View File
@@ -24,6 +24,9 @@ variable "domain_mappings" {
variable "ssh_key" {
sensitive = true
}
variable "github_ssh_key" {
sensitive = true
}
variable "tailscale" {
type = object({
client_id = string,