Skip to content

Commit dd682a3

Browse files
committed
Apply yaml fixes from ansible-lint.
1 parent e9972a5 commit dd682a3

File tree

168 files changed

+934
-1025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+934
-1025
lines changed

.github/release-drafter.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
name-template: 'v$RESOLVED_VERSION'
2-
tag-template: 'v$RESOLVED_VERSION'
1+
---
2+
name-template: "v$RESOLVED_VERSION"
3+
tag-template: "v$RESOLVED_VERSION"
34

45
template: |
56
## General Changes
67
78
$CHANGES
89
910
categories:
10-
- title: '🚀 Features'
11-
labels:
12-
- 'feature'
13-
- 'enhancement'
14-
- title: '🐛 Bug Fixes'
15-
labels:
16-
- 'fix'
17-
- 'bugfix'
18-
- 'bug'
11+
- title: "🚀 Features"
12+
labels:
13+
- "feature"
14+
- "enhancement"
15+
- title: "🐛 Bug Fixes"
16+
labels:
17+
- "fix"
18+
- "bugfix"
19+
- "bug"
1920

2021
version-resolver:
2122
major:
2223
labels:
23-
- 'major'
24+
- "major"
2425
minor:
2526
labels:
26-
- 'minor'
27+
- "minor"
2728
patch:
2829
labels:
29-
- 'patch'
30+
- "patch"
3031
default: patch

.github/workflows/latest.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Latest
23

34
on:
@@ -9,6 +10,6 @@ jobs:
910
build:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: release-drafter/release-drafter@v6
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
- uses: release-drafter/release-drafter@v6
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Publish OCI Artifact
23

34
on:
@@ -21,41 +22,41 @@ jobs:
2122
runs-on: ubuntu-latest
2223

2324
steps:
24-
- name: Log in to the container registry
25-
uses: docker/login-action@v3
26-
with:
27-
registry: ${{ env.REGISTRY }}
28-
username: ${{ secrets.DOCKER_REGISTRY_USER }}
29-
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
30-
31-
- name: Make tag
32-
run: |
33-
[ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
34-
[ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
35-
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
36-
37-
- name: Checkout
38-
uses: actions/checkout@v6
39-
40-
- name: Install Oras
41-
uses: oras-project/setup-oras@v1
42-
43-
- name: Install Cosign
44-
uses: sigstore/cosign-installer@v3
45-
46-
- name: Publish and sign
47-
run: |
48-
rm -rf .git
49-
cd ..
50-
tar -cpvzf ansible-role.tar.gz metal-roles
51-
52-
digest=$(oras push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }} \
53-
--artifact-type application/vnd.metal-stack.release-vector.v1 \
54-
ansible-role.tar.gz:application/vnd.metal-stack.ansible-role.v1.tar+gzip \
55-
--format go-template \
56-
--template "{{ .digest }}")
57-
58-
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${digest}
59-
env:
60-
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
61-
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
25+
- name: Log in to the container registry
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ${{ env.REGISTRY }}
29+
username: ${{ secrets.DOCKER_REGISTRY_USER }}
30+
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
31+
32+
- name: Make tag
33+
run: |
34+
[ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
35+
[ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
36+
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
37+
38+
- name: Checkout
39+
uses: actions/checkout@v6
40+
41+
- name: Install Oras
42+
uses: oras-project/setup-oras@v1
43+
44+
- name: Install Cosign
45+
uses: sigstore/cosign-installer@v3
46+
47+
- name: Publish and sign
48+
run: |
49+
rm -rf .git
50+
cd ..
51+
tar -cpvzf ansible-role.tar.gz metal-roles
52+
53+
digest=$(oras push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }} \
54+
--artifact-type application/vnd.metal-stack.release-vector.v1 \
55+
ansible-role.tar.gz:application/vnd.metal-stack.ansible-role.v1.tar+gzip \
56+
--format go-template \
57+
--template "{{ .digest }}")
58+
59+
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${digest}
60+
env:
61+
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
62+
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}

common/roles/defaults/defaults/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
metal_registry_auth_enabled: no
2+
metal_registry_auth_enabled: false
33
metal_registry_auth_user: ""
44
metal_registry_auth_password: ""
55
metal_registry_url: "https://index.docker.io/v1/"

common/roles/metal-deployment-token/meta/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ galaxy_info:
66
license: MIT
77
min_ansible_version: "2.18"
88
galaxy_tags: []
9-
109
platforms:
1110
- name: GenericLinux
1211
versions:

common/roles/metal-deployment-token/tasks/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
- name: Create admin api token for the deployment
33
block:
4-
54
- name: Wait until the metal-apiserver is running
65
kubernetes.core.k8s_info:
76
kind: Deployment
87
name: metal-apiserver
98
namespace: "{{ metal_control_plane_namespace }}"
10-
wait: yes
9+
wait: true
1110
wait_sleep: 1
1211
wait_timeout: 60
1312

1413
- name: Get metal-apiserver pods
1514
set_fact:
16-
_metal_apiserver_pod: "{{ (lookup('k8s', api_version='v1', kind='Pod', namespace=metal_control_plane_namespace, label_selector='app=metal-apiserver') | list_wrap)[0].get('metadata', {}).get('name') }}"
15+
_metal_apiserver_pod: "{{ (lookup('k8s', api_version='v1', kind='Pod', namespace=metal_control_plane_namespace, label_selector='app=metal-apiserver') | list_wrap)[0].get('metadata',
16+
{}).get('name') }}"
1717

1818
- name: Generate deployment token
1919
no_log: true

common/roles/metal-v2-client/meta/main.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ galaxy_info:
66
license: MIT
77
min_ansible_version: "2.18"
88
galaxy_tags: []
9-
109
platforms:
1110
- name: GenericLinux
1211
versions:

control-plane/roles/auditing-timescaledb/defaults/main.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ auditing_timescaledb_backup_restore_sidecar_backup_cron_schedule: "0 * * * *"
2121
auditing_timescaledb_backup_restore_sidecar_log_level: debug
2222
auditing_timescaledb_backup_restore_sidecar_object_prefix: "{{ auditing_timescaledb_name }}-{{ metal_control_plane_stage_name }}"
2323
auditing_timescaledb_backup_restore_sidecar_object_max_keep:
24-
2524
auditing_timescaledb_backup_restore_sidecar_gcp_bucket_name:
2625
auditing_timescaledb_backup_restore_sidecar_gcp_backup_location:
2726
auditing_timescaledb_backup_restore_sidecar_gcp_project_id:
2827
auditing_timescaledb_backup_restore_sidecar_gcp_serviceaccount_json:
2928
auditing_timescaledb_backup_restore_sidecar_encryption_key:
30-
3129
auditing_timescaledb_resources:
3230
requests:
3331
memory: "256Mi"

control-plane/roles/auditing-timescaledb/meta/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ galaxy_info:
66
license: MIT
77
min_ansible_version: "2.10"
88
galaxy_tags: []
9-
109
platforms:
1110
- name: GenericLinux
1211
versions:

control-plane/roles/auditing-timescaledb/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- name: Check mandatory variables for this role are set
66
assert:
77
fail_msg: "not all mandatory variables given, check role documentation"
8-
quiet: yes
8+
quiet: true
99
that:
1010
- auditing_timescaledb_image_name is defined
1111
- auditing_timescaledb_image_tag is defined

0 commit comments

Comments
 (0)