mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 17:50:23 +00:00
Merge pull request #139 from myii/chore/standardise-structure
ci(yamllint): add rule `empty-values` & use new `yaml-files` setting
This commit is contained in:
commit
c7d5555a21
3 changed files with 35 additions and 16 deletions
|
@ -56,9 +56,9 @@ jobs:
|
||||||
before_install: skip
|
before_install: skip
|
||||||
script:
|
script:
|
||||||
# Install and run `yamllint`
|
# Install and run `yamllint`
|
||||||
- pip install --user yamllint
|
# Need at least `v1.17.0` for the `yaml-files` setting
|
||||||
# yamllint disable-line rule:line-length
|
- pip install --user yamllint>=1.17.0
|
||||||
- yamllint -s . .yamllint pillar.example test/salt/pillar/default.sls
|
- yamllint -s .
|
||||||
# Install and run `commitlint`
|
# Install and run `commitlint`
|
||||||
- npm install @commitlint/config-conventional -D
|
- npm install @commitlint/config-conventional -D
|
||||||
- npm install @commitlint/travis-cli -D
|
- npm install @commitlint/travis-cli -D
|
||||||
|
|
16
.yamllint
16
.yamllint
|
@ -6,19 +6,35 @@ extends: default
|
||||||
|
|
||||||
# Files to ignore completely
|
# Files to ignore completely
|
||||||
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
|
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
|
||||||
|
# 2. Any SLS files under directory `test/`, which are actually state files
|
||||||
ignore: |
|
ignore: |
|
||||||
node_modules/
|
node_modules/
|
||||||
|
test/**/states/**/*.sls
|
||||||
|
|
||||||
|
yaml-files:
|
||||||
|
# Default settings
|
||||||
|
- '*.yaml'
|
||||||
|
- '*.yml'
|
||||||
|
- .yamllint
|
||||||
|
# SaltStack Formulas additional settings
|
||||||
|
- '*.example'
|
||||||
|
- test/**/*.sls
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
comments-indentation:
|
comments-indentation:
|
||||||
ignore: |
|
ignore: |
|
||||||
pillar.example
|
pillar.example
|
||||||
|
pillar-with-views.example
|
||||||
|
empty-values:
|
||||||
|
forbid-in-block-mappings: true
|
||||||
|
forbid-in-flow-mappings: true
|
||||||
key-duplicates:
|
key-duplicates:
|
||||||
ignore: |
|
ignore: |
|
||||||
pillar.example
|
pillar.example
|
||||||
line-length:
|
line-length:
|
||||||
ignore: |
|
ignore: |
|
||||||
pillar.example
|
pillar.example
|
||||||
|
pillar-with-views.example
|
||||||
# Increase from default of `80`
|
# Increase from default of `80`
|
||||||
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
|
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
|
||||||
max: 88
|
max: 88
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
bind:
|
bind:
|
||||||
configured_acls: # We have an internal ACL restricted to our
|
configured_acls: # We have an internal ACL restricted to our
|
||||||
internal: # private IP range.
|
internal: # private IP range.
|
||||||
|
@ -20,11 +23,11 @@ bind:
|
||||||
mydomain.com: # Notice that this value matches on both views.
|
mydomain.com: # Notice that this value matches on both views.
|
||||||
type: master
|
type: master
|
||||||
file: external.mydomain.com.txt # Specify the file to be used, which must match the file
|
file: external.mydomain.com.txt # Specify the file to be used, which must match the file
|
||||||
recursion: yes # name of the zone below under available_zones.
|
recursion: 'yes' # name of the zone below under available_zones.
|
||||||
# This filename also must match the corresponding zone name
|
# This filename also must match the corresponding zone name
|
||||||
# without the .txt extension (and be sure to use .txt as the extension).
|
# without the .txt extension (and be sure to use .txt as the extension).
|
||||||
notify: False
|
notify: false
|
||||||
dnssec: False
|
dnssec: false
|
||||||
|
|
||||||
internal: # The 'internal' view that is restricted to the 'internal' ACL.
|
internal: # The 'internal' view that is restricted to the 'internal' ACL.
|
||||||
match_clients:
|
match_clients:
|
||||||
|
@ -35,9 +38,9 @@ bind:
|
||||||
file: internal.mydomain.com.txt # Different file - matches the internal zone below.
|
file: internal.mydomain.com.txt # Different file - matches the internal zone below.
|
||||||
# Again, this filename must match the corresponding zone name
|
# Again, this filename must match the corresponding zone name
|
||||||
# without the .txt extension (and be sure to use .txt as the extension).
|
# without the .txt extension (and be sure to use .txt as the extension).
|
||||||
recursion: yes
|
recursion: 'yes'
|
||||||
notify: False
|
notify: false
|
||||||
dnssec: False
|
dnssec: false
|
||||||
|
|
||||||
available_zones:
|
available_zones:
|
||||||
external.mydomain.com: # Beginning of the 'external' zone definition.
|
external.mydomain.com: # Beginning of the 'external' zone definition.
|
||||||
|
|
Loading…
Add table
Reference in a new issue