Packer.Images/ansible/vars/metacluster.yml

150 lines
4.1 KiB
YAML
Raw Normal View History

platform:
2022-06-27 07:03:43 +00:00
k3s:
version: v1.24.1+k3s1
2022-06-24 21:44:10 +00:00
gitops:
# repo_ref: v0.1
repo_ref: HEAD
packaged_components:
- name: traefik
namespace: kube-system
2022-07-14 09:04:35 +00:00
config: |2
globalArguments: []
ports:
ssh:
port: 8022
protocol: TCP
web:
redirectTo: websecure
ingressRoute:
dashboard:
enabled: false
helm_repositories:
- name: longhorn
url: https://charts.longhorn.io
- name: harbor
url: https://helm.goharbor.io
- name: gitea-charts
url: https://dl.gitea.io/charts/
- name: argo
url: https://argoproj.github.io/argo-helm
2022-07-15 10:14:12 +00:00
- name: sealed-secrets
url: https://bitnami-labs.github.io/sealed-secrets
components:
longhorn:
helm:
version: 1.3.0
chart: longhorn/longhorn
2022-06-27 10:27:11 +00:00
parse_logic: cat values.yaml | yq eval '.. | select(has("repository")) | .repository + ":" + .tag'
2022-07-11 07:56:02 +00:00
chart_values: !unsafe |
2022-07-09 10:35:29 +00:00
defaultSettings:
defaultDataPath: /mnt/blockstorage
defaultReplicaCount: 1
ingress:
enabled: true
2022-07-11 07:24:04 +00:00
host: storage.{{ vapp['metacluster.fqdn'] }}
2022-07-09 10:35:29 +00:00
persistence:
defaultClassReplicaCount: 1
2022-06-24 21:44:10 +00:00
harbor:
helm:
version: 1.9.1 # (= Harbor v2.5.1)
chart: harbor/harbor
2022-06-27 10:27:11 +00:00
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
2022-07-11 07:56:02 +00:00
chart_values: !unsafe |
2022-07-09 10:35:29 +00:00
expose:
ingress:
hosts:
2022-07-11 07:24:04 +00:00
core: registry.{{ vapp['metacluster.fqdn'] }}
externalURL: https://registry.{{ vapp['metacluster.fqdn'] }}
harborAdminPassword: "{{ vapp['guestinfo.rootpw'] }}"
2022-07-09 10:35:29 +00:00
notary:
enabled: false
2022-06-24 21:44:10 +00:00
gitea:
helm:
version: v5.0.9 # (= Gitea v1.16.8)
chart: gitea-charts/gitea
2022-06-27 20:50:12 +00:00
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | sed '/:/!s/$/:latest/'
2022-07-11 07:56:02 +00:00
chart_values: !unsafe |
config:
offlineMode: true
2022-07-09 10:35:29 +00:00
gitea:
admin:
username: administrator
2022-07-11 07:24:04 +00:00
password: "{{ vapp['guestinfo.rootpw'] }}"
email: admin@{{ vapp['metacluster.fqdn'] }}
2022-07-09 10:35:29 +00:00
image:
pullPolicy: IfNotPresent
ingress:
enabled: true
hosts:
2022-07-11 07:24:04 +00:00
- host: git.{{ vapp['metacluster.fqdn'] }}
2022-07-09 10:35:29 +00:00
paths:
- path: /
pathType: Prefix
service:
ssh:
type: ClusterIP
port: 22
clusterIP:
2022-07-10 08:10:36 +00:00
argo-cd:
helm:
version: 4.9.7 # (= ArgoCD v2.4.2)
chart: argo/argo-cd
2022-06-27 10:27:11 +00:00
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
2022-07-11 07:56:02 +00:00
chart_values: !unsafe |
server:
extraArgs:
- --insecure
ingress:
enabled: true
hosts:
2022-07-11 07:24:04 +00:00
- gitops.{{ vapp['metacluster.fqdn'] }}
configs:
secret:
2022-07-11 07:24:04 +00:00
argocdServerAdminPassword: "{{ vapp['guestinfo.rootpw'] | password_hash('bcrypt') }}"
2022-06-24 21:44:10 +00:00
sealed-secrets:
helm:
version: 2.4.0 # (= SealedSecrets v0.18.1)
2022-07-18 10:38:55 +00:00
chart: sealed-secrets/sealed-secrets
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
2022-06-24 21:44:10 +00:00
dependencies:
ansible_galaxy_collections:
- ansible.posix
- ansible.utils
- community.crypto
2022-06-24 21:44:10 +00:00
- community.general
- kubernetes.core
container_images:
- quay.io/skopeo/stable:v1.8.0
2022-06-24 21:44:10 +00:00
static_binaries:
2022-07-03 13:08:57 +00:00
- filename: tea
url: https://dl.gitea.io/tea/0.8.0/tea-0.8.0-linux-amd64
- filename: govc
url: https://github.com/vmware/govmomi/releases/download/v0.29.0/govc_Linux_x86_64.tar.gz
archive: compressed
2022-06-25 18:23:27 +00:00
- filename: helm
url: https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
archive: compressed
extra_opts: --strip-components=1
2022-06-25 18:23:27 +00:00
- filename: yq
url: http://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64
packages:
- lvm2
- python3-jmespath
- python3-passlib
- skopeo