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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
20 - name: Enable spinnaker k8s provider
21 command: hal config provider kubernetes enable
24 - name: Create spinnaker k8s provider account
26 hal config provider kubernetes
27 account add {{ spinnaker_account }}
28 --context $(kubectl config current-context)
31 - name: Set spinnaker install version
33 hal config version edit
34 --version "{{ spinnaker_version }}"
37 - name: Set spinnaker deployment account
39 hal config deploy edit
41 --account-name {{ spinnaker_account }}
44 - name: Set minio storage config
46 hal config storage s3 edit
47 --endpoint http://minio.minio:9000
48 --access-key-id spinnaker
49 --secret-access-key spinnaker
52 - name: Set external storage to minio
53 command: hal config storage edit --type s3
56 - name: Set minio storage path style
57 command: hal config storage s3 edit --path-style-access true
60 - name: Deploy spinnaker
61 command: hal deploy apply