· 6 years ago · Apr 05, 2019, 01:34 PM
1- name: harbor | Install harbor chart
2 shell: |
3 echo "{{ harbor__r_variables | to_nice_yaml(indent=2) }}" |
4 env \
5 HELM_HOME=$HOME/.helm-{{ harbor__inventory_name }} \
6 KUBECONFIG=$HOME/.kube/config/{{ harbor__inventory_name }} \
7 $HOME/.helm-{{ harbor__inventory_name }}/bin/helm install \
8 --dry-run \
9 --debug \
10 -f /dev/stdin \
11 {{ ansible_root_dir }}/../ox2-svc_stack/system/harbor/helm/harbor \
12 args:
13 executable: /bin/bash
14 vars:
15 harbor__r_variables:
16 harborAdminPassword: "{{ harbor__pass }}"
17 secretKey: "{{ harbor__secret_key }}"
18 expose:
19 tls:
20 enabled: true
21 secretName: harbor-tls-key-cert
22 persistence:
23 enabled: true
24 persistentVolumeClaim:
25 registry:
26 size: 5Gi
27 storageClass: local-harbor-registry
28 chartmuseum:
29 size: 5Gi
30 storageClass: local-harbor-chartmuseum
31 jobservice:
32 size: 1Gi
33 storageClass: local-harbor-jobservice
34 database:
35 size: 1Gi
36 storageClass: local-harbor-database
37 redis:
38 size: 1Gi
39 storageClass: local-harbor-redis
40 imageChartStorage:
41 type: filesystem
42
43 core:
44 image:
45 tag: "v1.7.0"
46 adminserver:
47 image:
48 tag: "v1.7.0"
49 jobservice:
50 image:
51 tag: "v1.7.0"
52 register: harbor__r_chart_harbor_install