Spinnaker deployment
[infra/stack/kubernetes.git] / apps / spinnaker-halyard / roles / install / tasks / deploy-spin.yml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2022 The Nordix Foundation. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - name: Enable spinnaker k8s provider
21   command: hal config provider kubernetes enable
22   changed_when: false
23
24 - name: Create spinnaker k8s provider account
25   shell: >
26     hal config provider kubernetes
27     account add {{ spinnaker_account }}
28     --context $(kubectl config current-context)
29   changed_when: false
30
31 - name: Set spinnaker install version
32   shell: >
33     hal config version edit
34     --version "{{ spinnaker_version }}"
35   changed_when: false
36
37 - name: Set spinnaker deployment account
38   shell: >
39     hal config deploy edit
40     --type distributed
41     --account-name {{ spinnaker_account }}
42   changed_when: false
43
44 - name: Set minio storage config
45   shell: >
46     hal config storage s3 edit
47     --endpoint http://minio.minio:9000
48     --access-key-id spinnaker
49     --secret-access-key spinnaker
50   changed_when: false
51
52 - name: Set external storage to minio
53   command: hal config storage edit --type s3
54   changed_when: false
55
56 - name: Set minio storage path style
57   command: hal config storage s3 edit --path-style-access true
58   changed_when: false
59
60 - name: Deploy spinnaker
61   command: hal deploy apply
62   changed_when: false