File tree Expand file tree Collapse file tree 6 files changed +49
-0
lines changed
hetzner-setup/ProcessCube.Cloud Expand file tree Collapse file tree 6 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,5 @@ tailscale_tags=${tailscale_tags}
2828%{ if onepassword_credentials_json != " " ~}
2929onepassword_credentials_json=${ onepassword_credentials_json}
3030%{ endif ~}
31+ processcube_api_key=${ processcube_api_key}
3132ansible_python_interpreter=/usr/bin/python3
Original file line number Diff line number Diff line change 1+ ---
2+ - name : Create processcube namespace
3+ shell : kubectl create namespace processcube --dry-run=client -o yaml | kubectl apply -f -
4+ changed_when : true
5+
6+ - name : Create ProcessCube Marketplace ImagePull Secret
7+ shell : |
8+ kubectl create secret docker-registry regcred \
9+ --docker-server=https://marketplace.processcube.io \
10+ --docker-username=processcube \
11+ --docker-password="{{ processcube_api_key }}" \
12+ -n processcube \
13+ --dry-run=client -o yaml | kubectl apply -f -
14+ changed_when : true
15+
16+ - name : Create ProcessCube API Key Secret
17+ shell : |
18+ kubectl create secret generic processcube-api-key \
19+ --from-literal=api-key="{{ processcube_api_key }}" \
20+ -n processcube \
21+ --dry-run=client -o yaml | kubectl apply -f -
22+ changed_when : true
23+
24+ - name : Display ProcessCube setup info
25+ debug :
26+ msg :
27+ - " ProcessCube secrets created in namespace 'processcube'"
28+ - " "
29+ - " Available secrets:"
30+ - " - regcred (ImagePull Secret)"
31+ - " - processcube-api-key (API Key Secret)"
Original file line number Diff line number Diff line change 8989 roles :
9090 - argocd
9191
92+ - name : Install Cuby
93+ hosts : k3s_master
94+ gather_facts : no
95+ become : yes
96+ roles :
97+ - install_cuby
98+
9299- name : Verify Cluster
93100 hosts : k3s_master
94101 gather_facts : no
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ resource "local_file" "ansible_inventory" {
200200 tailscale_auth_key = var.tailscale_auth_key
201201 tailscale_tags = var.tailscale_tags
202202 onepassword_credentials_json = var.onepassword_credentials_json
203+ processcube_api_key = var.processcube_api_key
203204 })
204205 filename = " ${ path . module } /ansible/inventory/hosts"
205206
Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ tailscale_auth_key = "YOUR_TAILSCALE_AUTH_KEY_HERE"
2828# onepassword_credentials_json = "/path/to/1password-credentials.json"
2929# Note: External Secrets Operator will only be installed if this is set
3030# Note: onepassword-connect-token must be created per application namespace
31+
32+ # ProcessCube Marketplace Configuration
33+ processcube_api_key = "YOUR_PROCESSCUBE_API_KEY_HERE"
Original file line number Diff line number Diff line change @@ -91,3 +91,9 @@ variable "onepassword_credentials_json" {
9191 sensitive = true
9292 default = " "
9393}
94+
95+ variable "processcube_api_key" {
96+ description = " ProcessCube API key for marketplace.processcube.io image registry"
97+ type = string
98+ sensitive = true
99+ }
You can’t perform that action at this time.
0 commit comments