-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudctl-deployapp.yml
32 lines (29 loc) · 1.16 KB
/
cloudctl-deployapp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- name: Cloudctl deploy app
hosts: all
gather_facts: no
vars:
var_mcm_endpoint: ""
var_mcm_user: ""
var_mcm_password: ""
var_mcm_namespace: ""
var_helm_package: ""
var_helm_app_name: ""
var_helm_app_version: ""
var_helm_app_namespace: ""
var_helm_deployment_name: ""
var_helm_app_socle: ""
var_helm_app_tech_param: ""
var_helm_app_app_param: ""
var_helm_seculevel: ""
tasks:
- name: Execute clouctl
shell: "cloudctl login -a {{ var_mcm_endpoint }} --skip-ssl-validation -u {{ var_mcm_user }} -p {{ var_mcm_password }} -n {{ var_mcm_namespace }}; \
helm init --client-only; \
helm version --tls; \
helm delete {{ var_helm_app_name }} --tls --purge; \
helm install {{ var_helm_package }} --name {{ var_helm_app_name }} --namespace {{ var_mcm_namespace }} --set container.deployment.Namespace={{ var_helm_app_namespace }} --set container.deployment.version={{ var_helm_app_version }} --tls; \
sleep 20;"
#cloudctl mc get deployment {{ var_helm_deployment_name }} --all-clusters -n {{ var_helm_app_namespace }};"
args:
chdir: "/root/"
ignore_errors: yes