chore: add yamllint and ansible-lint configs for local validation

Stage 2 of REFACTOR_PLAN.md. Repo had no CI or local validation tooling at
all. Tuned rules to match this repo's existing conventions (no trailing
newline on hand-written manifests, aligned comment blocks) rather than
rewriting hundreds of pre-existing files to satisfy defaults.

Baseline is clean: yamllint reports 0 issues repo-wide, kubeconform validates
117 manifests + 20 Argo CD Applications, and all Ansible playbooks pass
--syntax-check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Nik Afiq 2026-07-23 18:14:50 +09:00
parent e6550d0e39
commit 08d2b97410
2 changed files with 37 additions and 0 deletions

12
.ansible-lint Normal file
View File

@ -0,0 +1,12 @@
# Config for: ansible-lint
# Applied by: ansible-lint (run from repo root)
exclude_paths:
- .cache/
- manifests/
- argocd/
- values/
use_default_rules: true
skip_list:
- yaml[line-length]

25
.yamllint.yml Normal file
View File

@ -0,0 +1,25 @@
# Config for: yamllint
# Applied by: yamllint -c .yamllint.yml .
extends: default
rules:
line-length: disable
document-start: disable
new-line-at-end-of-file: disable
comments-indentation: disable
commas:
max-spaces-after: -1
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
truthy:
allowed-values: ["true", "false", "on"]
comments:
min-spaces-from-content: 1
braces:
max-spaces-inside: 1
brackets:
max-spaces-inside: 1
ignore: |
router/