Skip to content

Commit

Permalink
added rke collection
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva committed Jan 19, 2025
1 parent f532132 commit fc4059d
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ tasks:
desc: Build ansible collection
cmds:
- |
echo "Enter to be build collection:"
COLLECTION=$(gum choose "baseos" "container")
echo "Choose to be build collection:"
COLLECTION=$(gum choose {{ .ALL_COLLECTIONS }})
rm -rf {{ .WIP_DIR }}/*
dagger call -m {{ .DAGGER_ANSIBLE_MODULE }}@{{ .DAGGER_ANSIBLE_MODULE_VERSION }} init-collection --src {{ .SOURCE_COLLECTION_PATH }}/${COLLECTION} --progress plain export --path={{ .WIP_DIR }}
Expand All @@ -54,6 +54,8 @@ tasks:
WIP_DIR: "{{ .COLLECTION_TMP_DIR }}/wip"
BUILD_DIR: "{{ .COLLECTION_TMP_DIR }}/build/"
OUTPUT_DIR: "{{ .COLLECTION_TMP_DIR }}/artifacts/"
ALL_COLLECTIONS:
sh: ls {{ .SOURCE_COLLECTION_PATH }} | xargs -n1 printf '"%s" '

branch:
desc: Create branch from main
Expand Down
2 changes: 1 addition & 1 deletion collections/baseos/binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ vars:
packer_version: 1.11.2 # datasource=custom.hashicorp
yq_version: 4.45.1 # datasource=github-tags depName=mikefarah/yq
jq_version: 1.7.1 # datasource=github-tags depName=jqlang/jq
machineshop_version: 2.7.1 # datasource=github-tags depName=stuttgart-things/machineshop
machineshop_version: 2.7.0 # datasource=github-tags depName=stuttgart-things/machineshop
bin:
gh:
Expand Down
23 changes: 23 additions & 0 deletions collections/rke/collection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: rke
namespace: sthings
requirements: |
roles:
- src: https://github.com/stuttgart-things/deploy-configure-rke.git
scm: git
version: 1.30.4.6
- src: https://github.com/stuttgart-things/configure-rke-node.git
scm: git
version: main
- src: https://github.com/stuttgart-things/install-requirements.git
scm: git
version: 2024.05.11
- src: https://github.com/stuttgart-things/download-install-binary.git
scm: git
version: 2024.09.06
- src: https://github.com/stuttgart-things/create-os-user.git
scm: git
version: 2024.04.25
- src: https://github.com/stuttgart-things/install-configure-docker.git
scm: git
version: 2024.04.30
81 changes: 81 additions & 0 deletions collections/rke/k3s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
playbooks:
- name: k3s
play: |
- hosts: all
gather_facts: true
become: true
vars:
install_k3s: true
k3s_state: present #absent
k3s_k8s_version: 1.31.1
k3s_release_kind: k3s1
cluster_setup: singlenode
install_cillium: true
deploy_helm_charts: true
helm_repositories:
ingress-nginx:
url: https://kubernetes.github.io/ingress-nginx
cert-manager:
url: https://charts.jetstack.io
helm_releases:
ingress-nginx:
ref: ingress-nginx/ingress-nginx
version: 4.11.3
namespace: ingress-nginx
ignore: false
wait: true
helm_values: |
controller:
hostNetwork: true
service:
type: ClusterIP
cert-manager:
ref: cert-manager/cert-manager
version: v1.16.1
namespace: cert-manager
ignore: false
wait: true
helm_values: |
crds:
enabled: true
manifests:
cluster_issuer:
manifest: |
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: ca-issuer
spec:
ca:
secretName: root-ca
# lb_pool:
# manifest: |
# apiVersion: cilium.io/v2alpha1
# kind: CiliumLoadBalancerIPPool
# metadata:
# name: first-pool
# spec:
# blocks:
# - start: 10.31.103.11
# stop: 10.31.103.12
# announcement_policy:
# manifest: |
# ---
# apiVersion: cilium.io/v2alpha1
# kind: CiliumL2AnnouncementPolicy
# metadata:
# name: default-l2-announcement-policy
# namespace: kube-system
# spec:
# externalIPs: true
# loadBalancerIPs: true
roles:
- role: sthings.rke.deploy_configure_rke

0 comments on commit fc4059d

Please sign in to comment.