mirror of
https://gitlab.durp.info/durfy/runbooks/ansible.git
synced 2026-05-07 08:00:29 -05:00
update
This commit is contained in:
parent
88e32638ca
commit
337d3aec4e
1 changed files with 49 additions and 1 deletions
|
|
@ -13,6 +13,9 @@ spec:
|
||||||
description: "Select the Environment"
|
description: "Select the Environment"
|
||||||
options:
|
options:
|
||||||
- 'dev'
|
- 'dev'
|
||||||
|
- 'prd'
|
||||||
|
- 'infra'
|
||||||
|
- 'dmz'
|
||||||
default: 'dev'
|
default: 'dev'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|
@ -64,3 +67,48 @@ ansible-k3s-dev:
|
||||||
- $CI_PROJECT_DIR/ansible/kubeconfig
|
- $CI_PROJECT_DIR/ansible/kubeconfig
|
||||||
expire_in: 1 days
|
expire_in: 1 days
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
|
ansible-k3s-prd:
|
||||||
|
extends: .ansible-k3s
|
||||||
|
variables:
|
||||||
|
CLUSTER: "prd-cluster"
|
||||||
|
api_endpoint: "192.168.11.10"
|
||||||
|
k3s_version: "v1.35.0+k3s3"
|
||||||
|
k3s_token: $prd_k3s_token
|
||||||
|
rules:
|
||||||
|
- if: '$SCRIPT == "k3s" && $ENVIRONMENT_NAME == "prd"'
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- $CI_PROJECT_DIR/ansible/kubeconfig
|
||||||
|
expire_in: 1 days
|
||||||
|
when: always
|
||||||
|
|
||||||
|
ansible-k3s-infra:
|
||||||
|
extends: .ansible-k3s
|
||||||
|
variables:
|
||||||
|
CLUSTER: "infra-cluster"
|
||||||
|
api_endpoint: "192.168.12.10"
|
||||||
|
k3s_version: "v1.35.0+k3s3"
|
||||||
|
k3s_token: $infra_k3s_token
|
||||||
|
rules:
|
||||||
|
- if: '$SCRIPT == "k3s" && $ENVIRONMENT_NAME == "infra"'
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- $CI_PROJECT_DIR/ansible/kubeconfig
|
||||||
|
expire_in: 1 days
|
||||||
|
when: always
|
||||||
|
|
||||||
|
ansible-k3s-dmz:
|
||||||
|
extends: .ansible-k3s
|
||||||
|
variables:
|
||||||
|
CLUSTER: "dma-cluster"
|
||||||
|
api_endpoint: "192.168.98.10"
|
||||||
|
k3s_version: "v1.35.0+k3s3"
|
||||||
|
k3s_token: $dmz_k3s_token
|
||||||
|
rules:
|
||||||
|
- if: '$SCRIPT == "k3s" && $ENVIRONMENT_NAME == "dmz"'
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- $CI_PROJECT_DIR/ansible/kubeconfig
|
||||||
|
expire_in: 1 days
|
||||||
|
when: always
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue