aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.yamllint27
-rw-r--r--kolla/common/sources.yaml1
-rw-r--r--zuul.d/scenarios/aio.yaml4
-rw-r--r--zuul.d/scenarios/mariadb.yaml4
-rw-r--r--zuul.d/scenarios/prometheus-opensearch.yaml4
5 files changed, 36 insertions, 4 deletions
diff --git a/.yamllint b/.yamllint
new file mode 100644
index 000000000..016ae71e8
--- /dev/null
+++ b/.yamllint
@@ -0,0 +1,27 @@
+extends: default
+
+rules:
+ comments:
+ # https://github.com/prettier/prettier/issues/6780
+ min-spaces-from-content: 1
+ # https://github.com/adrienverge/yamllint/issues/384
+ comments-indentation: false
+ document-start: disable
+ # 160 chars was the default used by old E204 rule, but
+ # you can easily change it or disable in your .yamllint file.
+ line-length:
+ ignore: |
+ kolla/common/sources.yaml
+ max: 160
+ # We are adding an extra space inside braces as that's how prettier does it
+ # and we are trying not to fight other linters.
+ braces:
+ min-spaces-inside: 0 # yamllint defaults to 0
+ max-spaces-inside: 1 # yamllint defaults to 0
+ # key-duplicates:
+ # forbid-duplicated-merge-keys: true # not enabled by default
+ octal-values:
+ forbid-implicit-octal: true # yamllint defaults to false
+ forbid-explicit-octal: true # yamllint defaults to false
+ # quoted-strings:
+ # quote-type: double
diff --git a/kolla/common/sources.yaml b/kolla/common/sources.yaml
index 54291bcd4..054482fa2 100644
--- a/kolla/common/sources.yaml
+++ b/kolla/common/sources.yaml
@@ -1,4 +1,3 @@
-# yamllint disable rule:line-length
---
openstack-base:
type: "url"
diff --git a/zuul.d/scenarios/aio.yaml b/zuul.d/scenarios/aio.yaml
index 4a8a324ea..f5acd08c2 100644
--- a/zuul.d/scenarios/aio.yaml
+++ b/zuul.d/scenarios/aio.yaml
@@ -6,7 +6,9 @@
check:
jobs:
- kolla-ansible-centos-10s: &files
- files: ^kolla/docker/
+ files:
+ - ^kolla/common/sources.yaml
+ - ^kolla/docker/
- kolla-ansible-debian-trixie: *files
- kolla-ansible-debian-trixie-upgrade: *files
- kolla-ansible-rocky-10: *files
diff --git a/zuul.d/scenarios/mariadb.yaml b/zuul.d/scenarios/mariadb.yaml
index 882e1338e..c53a27fca 100644
--- a/zuul.d/scenarios/mariadb.yaml
+++ b/zuul.d/scenarios/mariadb.yaml
@@ -6,6 +6,8 @@
check:
jobs:
- kolla-ansible-debian-trixie-mariadb: &files
- files: ^kolla/docker/(base|mariadb-server)/
+ files:
+ - ^kolla/common/sources.yaml
+ - ^kolla/docker/(base|mariadb-server)/
- kolla-ansible-rocky-10-mariadb: *files
- kolla-ansible-ubuntu-noble-mariadb: *files
diff --git a/zuul.d/scenarios/prometheus-opensearch.yaml b/zuul.d/scenarios/prometheus-opensearch.yaml
index 84649c360..c1a5778de 100644
--- a/zuul.d/scenarios/prometheus-opensearch.yaml
+++ b/zuul.d/scenarios/prometheus-opensearch.yaml
@@ -4,7 +4,9 @@
check:
jobs:
- kolla-ansible-debian-trixie-prometheus-opensearch: &files
- files: ^kolla/docker/(base|fluentd|grafana|opensearch|prometheus)/
+ files:
+ - ^kolla/common/sources.yaml
+ - ^kolla/docker/(base|fluentd|grafana|opensearch|prometheus)/
- kolla-ansible-debian-trixie-prometheus-opensearch-upgrade: *files
- kolla-ansible-rocky-10-prometheus-opensearch: *files
- kolla-ansible-rocky-10-prometheus-opensearch-upgrade: *files