Merge pull request #95 from myii/chore/standardise-structure
feat(yamllint): include for this repo and apply rules throughout
This commit is contained in:
commit
d3da392f0e
13
.travis.yml
13
.travis.yml
@ -3,7 +3,7 @@
|
|||||||
---
|
---
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- commitlint
|
- lint
|
||||||
- name: release
|
- name: release
|
||||||
if: branch = master AND type != pull_request
|
if: branch = master AND type != pull_request
|
||||||
|
|
||||||
@ -45,16 +45,21 @@ script:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
# Define the commitlint stage
|
# Define the `lint` stage (runs `yamllint` and `commitlint`)
|
||||||
- stage: commitlint
|
- stage: lint
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: lts/*
|
node_js: lts/*
|
||||||
before_install: skip
|
before_install: skip
|
||||||
script:
|
script:
|
||||||
|
# Install and run `yamllint`
|
||||||
|
- pip install --user yamllint
|
||||||
|
# yamllint disable-line rule:line-length
|
||||||
|
- yamllint -s . .yamllint pillar.example test/salt/pillar/default.sls
|
||||||
|
# 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
|
||||||
- commitlint-travis
|
- commitlint-travis
|
||||||
# Define the release stage that runs semantic-release
|
# Define the release stage that runs `semantic-release`
|
||||||
- stage: release
|
- stage: release
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: lts/*
|
node_js: lts/*
|
||||||
|
19
.yamllint
Normal file
19
.yamllint
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
|
# Extend the `default` configuration provided by `yamllint`
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
# Files to ignore completely
|
||||||
|
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
|
||||||
|
ignore: |
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
rules:
|
||||||
|
key-duplicates:
|
||||||
|
ignore: |
|
||||||
|
pillar.example
|
||||||
|
line-length:
|
||||||
|
# Increase from default of `80`
|
||||||
|
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
|
||||||
|
max: 88
|
@ -1,5 +1,8 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
postfix:
|
postfix:
|
||||||
manage_master_config: True
|
manage_master_config: true
|
||||||
master_config:
|
master_config:
|
||||||
# Preferred way of managing services/processes. This allows for finegrained
|
# Preferred way of managing services/processes. This allows for finegrained
|
||||||
# control over each service. See postfix/services.yaml for defaults that can
|
# control over each service. See postfix/services.yaml for defaults that can
|
||||||
@ -10,29 +13,29 @@ postfix:
|
|||||||
maxproc: 10
|
maxproc: 10
|
||||||
# Enable oldstyle TLS wrapped SMTP
|
# Enable oldstyle TLS wrapped SMTP
|
||||||
smtps:
|
smtps:
|
||||||
enable: True
|
enable: true
|
||||||
# Enable submission service on port 587/tcp with custom options
|
# Enable submission service on port 587/tcp with custom options
|
||||||
submission:
|
submission:
|
||||||
enable: True
|
enable: true
|
||||||
args:
|
args:
|
||||||
- "-o smtpd_tls_security_level=encrypt"
|
- "-o smtpd_tls_security_level=encrypt"
|
||||||
- "-o smtpd_sasl_auth_enable=yes"
|
- "-o smtpd_sasl_auth_enable=yes"
|
||||||
- "-o smtpd_client_restrictions: permit_sasl_authenticated,reject"
|
- "-o smtpd_client_restrictions: permit_sasl_authenticated,reject"
|
||||||
tlsproxy:
|
tlsproxy:
|
||||||
enable: True
|
enable: true
|
||||||
chroot: True
|
chroot: true
|
||||||
uucp:
|
uucp:
|
||||||
enable: True
|
enable: true
|
||||||
# Dovecot delivery via deliver binary. For better performance, investigate
|
# Dovecot delivery via deliver binary. For better performance, investigate
|
||||||
# using LMTP instead: <https://wiki.dovecot.org/LMTP>
|
# using LMTP instead: <https://wiki.dovecot.org/LMTP>
|
||||||
dovecot:
|
dovecot:
|
||||||
chroot: False
|
chroot: false
|
||||||
command: pipe
|
command: pipe
|
||||||
enable: True
|
enable: true
|
||||||
extras: '-d ${recipient}'
|
extras: '-d ${recipient}'
|
||||||
flags: DRhu
|
flags: DRhu
|
||||||
type: unix
|
type: unix
|
||||||
unpriv: False
|
unpriv: false
|
||||||
user: vmail:vmail
|
user: vmail:vmail
|
||||||
argv: /usr/lib/dovecot/deliver
|
argv: /usr/lib/dovecot/deliver
|
||||||
# Completely customized mail-delivery-agent entry. Will be appended to the
|
# Completely customized mail-delivery-agent entry. Will be appended to the
|
||||||
@ -44,13 +47,13 @@ postfix:
|
|||||||
flags: DRhu
|
flags: DRhu
|
||||||
user: mail
|
user: mail
|
||||||
# Wrap the output in master.cf at 78 chars for better readability
|
# Wrap the output in master.cf at 78 chars for better readability
|
||||||
wrap: True
|
wrap: true
|
||||||
# Avoid user and arvg settings to allow define internal processes
|
# Avoid user and arvg settings to allow define internal processes
|
||||||
# needed for randomizing relay IP (randmap functionality)
|
# needed for randomizing relay IP (randmap functionality)
|
||||||
no_args: True
|
no_args: true
|
||||||
|
|
||||||
# Backwards compatible definition of dovecot delivery in master.cf
|
# Backwards compatible definition of dovecot delivery in master.cf
|
||||||
enable_dovecot: False
|
enable_dovecot: false
|
||||||
# The following are the default values:
|
# The following are the default values:
|
||||||
dovecot:
|
dovecot:
|
||||||
user: vmail
|
user: vmail
|
||||||
@ -59,23 +62,23 @@ postfix:
|
|||||||
argv: "/usr/lib/dovecot/deliver"
|
argv: "/usr/lib/dovecot/deliver"
|
||||||
|
|
||||||
# Backwards compatible definition of submission listener in master.cf
|
# Backwards compatible definition of submission listener in master.cf
|
||||||
enable_submission: False
|
enable_submission: false
|
||||||
# To replace the defaults use this:
|
# To replace the defaults use this:
|
||||||
submission:
|
submission:
|
||||||
smtpd_tls_security_level: encrypt
|
smtpd_tls_security_level: encrypt
|
||||||
smtpd_sasl_auth_enable: yes
|
smtpd_sasl_auth_enable: 'yes'
|
||||||
smtpd_client_restrictions: permit_sasl_authenticated,reject
|
smtpd_client_restrictions: permit_sasl_authenticated,reject
|
||||||
|
|
||||||
enable_service: True
|
enable_service: true
|
||||||
reload_service: True
|
reload_service: true
|
||||||
|
|
||||||
postgrey:
|
postgrey:
|
||||||
enabled: True
|
enabled: true
|
||||||
enable_service: True
|
enable_service: true
|
||||||
location: inet:172.16.0.5:6379
|
location: inet:172.16.0.5:6379
|
||||||
|
|
||||||
policyd-spf:
|
policyd-spf:
|
||||||
enabled: True
|
enabled: true
|
||||||
time_limit: 7200s
|
time_limit: 7200s
|
||||||
|
|
||||||
config:
|
config:
|
||||||
@ -93,7 +96,7 @@ postfix:
|
|||||||
inet_interfaces: all
|
inet_interfaces: all
|
||||||
inet_protocols: all
|
inet_protocols: all
|
||||||
|
|
||||||
#postsrsd:
|
# postsrsd:
|
||||||
sender_canonical_maps: tcp:127.0.0.1:10001
|
sender_canonical_maps: tcp:127.0.0.1:10001
|
||||||
sender_canonical_classes: envelope_sender
|
sender_canonical_classes: envelope_sender
|
||||||
recipient_canonical_maps: tcp:127.0.0.1:10002
|
recipient_canonical_maps: tcp:127.0.0.1:10002
|
||||||
@ -127,8 +130,14 @@ postfix:
|
|||||||
smtpd_sasl_auth_enable: 'yes'
|
smtpd_sasl_auth_enable: 'yes'
|
||||||
smtpd_sasl_type: dovecot
|
smtpd_sasl_type: dovecot
|
||||||
smtpd_sasl_path: /var/run/dovecot/auth-client
|
smtpd_sasl_path: /var/run/dovecot/auth-client
|
||||||
smtpd_recipient_restrictions: permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|
smtpd_recipient_restrictions: >-
|
||||||
smtpd_relay_restrictions: permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|
permit_mynetworks,
|
||||||
|
permit_sasl_authenticated,
|
||||||
|
reject_unauth_destination
|
||||||
|
smtpd_relay_restrictions: >-
|
||||||
|
permit_mynetworks,
|
||||||
|
permit_sasl_authenticated,
|
||||||
|
reject_unauth_destination
|
||||||
smtpd_sasl_security_options: noanonymous
|
smtpd_sasl_security_options: noanonymous
|
||||||
smtpd_sasl_tls_security_options: $smtpd_sasl_security_options
|
smtpd_sasl_tls_security_options: $smtpd_sasl_security_options
|
||||||
smtpd_tls_auth_only: 'yes'
|
smtpd_tls_auth_only: 'yes'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
postfix:
|
postfix:
|
||||||
aliases_file: /etc/aliases
|
aliases_file: /etc/aliases
|
||||||
config_path: /etc/postfix
|
config_path: /etc/postfix
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
Arch:
|
Arch:
|
||||||
policyd_spf_pkg: python-postfix-policyd-spf
|
policyd_spf_pkg: python-postfix-policyd-spf
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
# Default Postfix master processes as defined by postfix
|
# Default Postfix master processes as defined by postfix
|
||||||
#
|
#
|
||||||
# The dictionary is keyed off the service name ("smtp", "smtpd", etc.) except
|
# The dictionary is keyed off the service name ("smtp", "smtpd", etc.) except
|
||||||
@ -9,7 +12,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
# Postfix internal services/processes defaults
|
# Postfix internal services/processes defaults
|
||||||
smtp:
|
smtp:
|
||||||
chroot: false
|
chroot: false
|
||||||
command: smtpd
|
command: smtpd
|
||||||
@ -218,7 +221,7 @@ defaults:
|
|||||||
maxproc: 1
|
maxproc: 1
|
||||||
type: unix
|
type: unix
|
||||||
|
|
||||||
# Postfix MDA definitions, these are optional and commented out by default
|
# Postfix MDA definitions, these are optional and commented out by default
|
||||||
maildrop:
|
maildrop:
|
||||||
argv: /usr/local/bin/maildrop
|
argv: /usr/local/bin/maildrop
|
||||||
chroot: false
|
chroot: false
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
name: default
|
name: default
|
||||||
title: postfix formula
|
title: postfix formula
|
||||||
maintainer: SaltStack Formulas
|
maintainer: SaltStack Formulas
|
||||||
|
Loading…
Reference in New Issue
Block a user