Compare commits
41 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9b4f3e874 | ||
|
|
fbd8f65561 | ||
|
|
d606b28692 | ||
|
|
7ff798a27e | ||
|
|
eefb89ee75 | ||
|
|
81b2c2e86b | ||
|
|
62baac2764 | ||
|
|
5a291ab2d2 | ||
|
|
e568f28797 | ||
|
|
3d5564843d | ||
|
|
ddd1693e50 | ||
|
|
2c82872dd9 | ||
|
|
b369aa9d40 | ||
|
|
37b0c43839 | ||
|
|
911317c9ec | ||
|
|
a4c84df77e | ||
|
|
cd6eb0be16 | ||
|
|
a0fdd48ebb | ||
|
|
1f3cfccc0d | ||
|
|
bf5b4d6fd7 | ||
|
|
7822200a58 | ||
|
|
e546fc3476 | ||
|
|
4975410ca9 | ||
|
|
76e3e3983d | ||
|
|
3a27978204 | ||
|
|
89e4a34d3d | ||
|
|
934e8ff250 | ||
|
|
7ca61f3fbb | ||
|
|
4c1f76f2ff | ||
|
|
f99f2a0735 | ||
|
|
980ae5b42e | ||
|
|
eca6d97e59 | ||
|
|
5c21924335 | ||
|
|
81b1ed15c0 | ||
|
|
a799214c34 | ||
|
|
9796319a3f | ||
|
|
6e0245a9e7 | ||
|
|
fc6cbe0ab9 | ||
|
|
4c80c3641a | ||
|
|
3df38b1be2 | ||
|
|
e9709254c6 |
10
.rubocop.yml
Normal file
10
.rubocop.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
|
# General overrides used across formulas in the org
|
||||||
|
Metrics/LineLength:
|
||||||
|
# Increase from default of `80`
|
||||||
|
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
|
||||||
|
Max: 88
|
||||||
|
|
||||||
|
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`
|
||||||
14
.salt-lint
Normal file
14
.salt-lint
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
|
exclude_paths: []
|
||||||
|
rules: {}
|
||||||
|
skip_list:
|
||||||
|
# Using `salt-lint` for linting other files as well, such as Jinja macros/templates
|
||||||
|
- 205 # Use ".sls" as a Salt State file extension
|
||||||
|
# Skipping `207` and `208` because `210` is sufficient, at least for the time-being
|
||||||
|
# I.e. Allows 3-digit unquoted codes to still be used, such as `644` and `755`
|
||||||
|
- 207 # File modes should always be encapsulated in quotation marks
|
||||||
|
- 208 # File modes should always contain a leading zero
|
||||||
|
tags: []
|
||||||
|
verbosity: 1
|
||||||
110
.travis.yml
110
.travis.yml
@@ -1,72 +1,90 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
---
|
---
|
||||||
stages:
|
## Machine config
|
||||||
- test
|
dist: bionic
|
||||||
- lint
|
|
||||||
- name: release
|
|
||||||
if: branch = master AND type != pull_request
|
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
cache: bundler
|
|
||||||
language: ruby
|
|
||||||
dist: xenial
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
# Make sure the instances listed below match up with
|
## Language and cache config
|
||||||
# the `platforms` defined in `kitchen.yml`
|
language: ruby
|
||||||
env:
|
cache: bundler
|
||||||
matrix:
|
|
||||||
- INSTANCE: default-debian-10-develop-py3
|
|
||||||
# - INSTANCE: default-ubuntu-1804-develop-py3
|
|
||||||
# - INSTANCE: default-centos-7-develop-py3
|
|
||||||
# - INSTANCE: default-fedora-30-develop-py3
|
|
||||||
# - INSTANCE: default-opensuse-leap-15-develop-py3
|
|
||||||
# - INSTANCE: default-amazonlinux-2-develop-py2
|
|
||||||
# - INSTANCE: default-debian-9-2019-2-py3
|
|
||||||
# - INSTANCE: default-ubuntu-1804-2019-2-py3
|
|
||||||
- INSTANCE: default-centos-7-2019-2-py3
|
|
||||||
- INSTANCE: default-fedora-30-2019-2-py3
|
|
||||||
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
|
|
||||||
# - INSTANCE: default-amazonlinux-2-2019-2-py2
|
|
||||||
# - INSTANCE: default-debian-9-2018-3-py2
|
|
||||||
- INSTANCE: default-ubuntu-1604-2018-3-py2
|
|
||||||
# - INSTANCE: default-centos-7-2018-3-py2
|
|
||||||
# - INSTANCE: default-fedora-29-2018-3-py2
|
|
||||||
- INSTANCE: default-opensuse-leap-15-2018-3-py2
|
|
||||||
# - INSTANCE: default-amazonlinux-2-2018-3-py2
|
|
||||||
# - INSTANCE: default-debian-8-2017-7-py2
|
|
||||||
# - INSTANCE: default-ubuntu-1604-2017-7-py2
|
|
||||||
- INSTANCE: default-centos-6-2017-7-py2
|
|
||||||
# - INSTANCE: default-fedora-29-2017-7-py2
|
|
||||||
# - INSTANCE: default-opensuse-leap-15-2017-7-py2
|
|
||||||
# - INSTANCE: default-amazonlinux-2-2017-7-py2
|
|
||||||
|
|
||||||
|
## Script to run for the test stage
|
||||||
script:
|
script:
|
||||||
- bin/kitchen verify ${INSTANCE}
|
- bin/kitchen verify "${INSTANCE}"
|
||||||
|
|
||||||
|
## Stages and jobs matrix
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- name: release
|
||||||
|
if: branch = master AND type != pull_request
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
# Define the `lint` stage (runs `yamllint` and `commitlint`)
|
## Define the test stage that runs the linters (and testing matrix, if applicable)
|
||||||
- stage: lint
|
|
||||||
language: node_js
|
# Run all of the linters in a single job
|
||||||
|
- language: node_js
|
||||||
node_js: lts/*
|
node_js: lts/*
|
||||||
|
env: Lint
|
||||||
|
name: 'Lint: salt-lint, yamllint, rubocop & commitlint'
|
||||||
before_install: skip
|
before_install: skip
|
||||||
script:
|
script:
|
||||||
|
# Install and run `salt-lint`
|
||||||
|
- pip install --user salt-lint
|
||||||
|
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$'
|
||||||
|
| xargs -I {} salt-lint {}
|
||||||
# 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/postgres.sls
|
- yamllint -s .
|
||||||
|
# Install and run `rubocop`
|
||||||
|
- gem install rubocop
|
||||||
|
- rubocop -d
|
||||||
# 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
|
||||||
- commitlint-travis
|
- commitlint-travis
|
||||||
# Define the release stage that runs `semantic-release`
|
|
||||||
|
## Define the rest of the matrix based on Kitchen testing
|
||||||
|
# Make sure the instances listed below match up with
|
||||||
|
# the `platforms` defined in `kitchen.yml`
|
||||||
|
- env: INSTANCE=default-debian-10-master-py3
|
||||||
|
# - env: INSTANCE=default-ubuntu-1804-develop-py3
|
||||||
|
# - env: INSTANCE=default-centos-7-develop-py3
|
||||||
|
# - env: INSTANCE=default-fedora-30-develop-py3
|
||||||
|
# - env: INSTANCE=default-opensuse-leap-15-develop-py3
|
||||||
|
# - env: INSTANCE=default-amazonlinux-2-develop-py2
|
||||||
|
# - env: INSTANCE=default-arch-base-latest-develop-py2
|
||||||
|
# - env: INSTANCE=default-debian-9-2019-2-py3
|
||||||
|
# - env: INSTANCE=default-ubuntu-1804-2019-2-py3
|
||||||
|
- env: INSTANCE=default-centos-7-2019-2-py3
|
||||||
|
- env: INSTANCE=default-fedora-30-2019-2-py3
|
||||||
|
# - env: INSTANCE=default-opensuse-leap-15-2019-2-py3
|
||||||
|
# - env: INSTANCE=default-amazonlinux-2-2019-2-py2
|
||||||
|
# - env: INSTANCE=default-arch-base-latest-2019-2-py2
|
||||||
|
# - env: INSTANCE=default-debian-9-2018-3-py2
|
||||||
|
- env: INSTANCE=default-ubuntu-1604-2018-3-py2
|
||||||
|
# - env: INSTANCE=default-centos-7-2018-3-py2
|
||||||
|
# - env: INSTANCE=default-fedora-29-2018-3-py2
|
||||||
|
- env: INSTANCE=default-opensuse-leap-15-2018-3-py2
|
||||||
|
# - env: INSTANCE=default-amazonlinux-2-2018-3-py2
|
||||||
|
# - env: INSTANCE=default-arch-base-latest-2018-3-py2
|
||||||
|
# - env: INSTANCE=default-debian-8-2017-7-py2
|
||||||
|
# - env: INSTANCE=default-ubuntu-1604-2017-7-py2
|
||||||
|
- env: INSTANCE=default-centos-6-2017-7-py2
|
||||||
|
# - env: INSTANCE=default-fedora-29-2017-7-py2
|
||||||
|
# - env: INSTANCE=default-opensuse-leap-15-2017-7-py2
|
||||||
|
# - env: INSTANCE=default-amazonlinux-2-2017-7-py2
|
||||||
|
# - env: INSTANCE=default-arch-base-latest-2017-7-py2
|
||||||
|
|
||||||
|
## Define the release stage that runs `semantic-release`
|
||||||
- stage: release
|
- stage: release
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js: lts/*
|
node_js: lts/*
|
||||||
|
env: Release
|
||||||
|
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
|
||||||
before_install: skip
|
before_install: skip
|
||||||
script:
|
script:
|
||||||
# Update `AUTHORS.md`
|
# Update `AUTHORS.md`
|
||||||
|
|||||||
22
.yamllint
22
.yamllint
@@ -6,9 +6,13 @@ 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. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
|
# 2. Any SLS files under directory `test/`, which are actually state files
|
||||||
|
# 3. Any YAML files under directory `.kitchen/`, introduced during local testing
|
||||||
|
# 4. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
|
||||||
ignore: |
|
ignore: |
|
||||||
node_modules/
|
node_modules/
|
||||||
|
test/**/states/**/*.sls
|
||||||
|
.kitchen/
|
||||||
pillar.example
|
pillar.example
|
||||||
postgres/codenamemap.yaml
|
postgres/codenamemap.yaml
|
||||||
postgres/osfamilymap.yaml
|
postgres/osfamilymap.yaml
|
||||||
@@ -16,8 +20,24 @@ ignore: |
|
|||||||
postgres/repo.yaml
|
postgres/repo.yaml
|
||||||
test/salt/pillar/postgres.sls
|
test/salt/pillar/postgres.sls
|
||||||
|
|
||||||
|
yaml-files:
|
||||||
|
# Default settings
|
||||||
|
- '*.yaml'
|
||||||
|
- '*.yml'
|
||||||
|
- .salt-lint
|
||||||
|
- .yamllint
|
||||||
|
# SaltStack Formulas additional settings
|
||||||
|
- '*.example'
|
||||||
|
- test/**/*.sls
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
empty-values:
|
||||||
|
forbid-in-block-mappings: true
|
||||||
|
forbid-in-flow-mappings: true
|
||||||
line-length:
|
line-length:
|
||||||
# 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
|
||||||
|
octal-values:
|
||||||
|
forbid-implicit-octal: true
|
||||||
|
forbid-explicit-octal: true
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ This list is sorted by the number of commits per contributor in _descending_ ord
|
|||||||
|
|
||||||
Avatar|Contributor|Contributions
|
Avatar|Contributor|Contributions
|
||||||
:-:|---|:-:
|
:-:|---|:-:
|
||||||
<img class='float-left rounded-1' src='https://avatars1.githubusercontent.com/u/13322818?v=4' width='36' height='36' alt='@noelmcloughlin'>|[@noelmcloughlin](https://github.com/noelmcloughlin)|58
|
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/10231489?v=4' width='36' height='36' alt='@myii'>|[@myii](https://github.com/myii)|83
|
||||||
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/10231489?v=4' width='36' height='36' alt='@myii'>|[@myii](https://github.com/myii)|57
|
<img class='float-left rounded-1' src='https://avatars1.githubusercontent.com/u/13322818?v=4' width='36' height='36' alt='@noelmcloughlin'>|[@noelmcloughlin](https://github.com/noelmcloughlin)|62
|
||||||
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/1800660?v=4' width='36' height='36' alt='@aboe76'>|[@aboe76](https://github.com/aboe76)|50
|
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/1800660?v=4' width='36' height='36' alt='@aboe76'>|[@aboe76](https://github.com/aboe76)|54
|
||||||
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/1396878?v=4' width='36' height='36' alt='@gravyboat'>|[@gravyboat](https://github.com/gravyboat)|41
|
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/1396878?v=4' width='36' height='36' alt='@gravyboat'>|[@gravyboat](https://github.com/gravyboat)|41
|
||||||
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/16338056?v=4' width='36' height='36' alt='@vutny'>|[@vutny](https://github.com/vutny)|31
|
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/16338056?v=4' width='36' height='36' alt='@vutny'>|[@vutny](https://github.com/vutny)|31
|
||||||
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/242396?v=4' width='36' height='36' alt='@javierbertoli'>|[@javierbertoli](https://github.com/javierbertoli)|19
|
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/242396?v=4' width='36' height='36' alt='@javierbertoli'>|[@javierbertoli](https://github.com/javierbertoli)|19
|
||||||
@@ -50,6 +50,7 @@ Avatar|Contributor|Contributions
|
|||||||
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/296523?v=4' width='36' height='36' alt='@mkotsbak'>|[@mkotsbak](https://github.com/mkotsbak)|1
|
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/296523?v=4' width='36' height='36' alt='@mkotsbak'>|[@mkotsbak](https://github.com/mkotsbak)|1
|
||||||
<img class='float-left rounded-1' src='https://avatars1.githubusercontent.com/u/1331128?v=4' width='36' height='36' alt='@mattysads'>|[@mattysads](https://github.com/mattysads)|1
|
<img class='float-left rounded-1' src='https://avatars1.githubusercontent.com/u/1331128?v=4' width='36' height='36' alt='@mattysads'>|[@mattysads](https://github.com/mattysads)|1
|
||||||
<img class='float-left rounded-1' src='https://avatars3.githubusercontent.com/u/3705387?v=4' width='36' height='36' alt='@mbrannigan'>|[@mbrannigan](https://github.com/mbrannigan)|1
|
<img class='float-left rounded-1' src='https://avatars3.githubusercontent.com/u/3705387?v=4' width='36' height='36' alt='@mbrannigan'>|[@mbrannigan](https://github.com/mbrannigan)|1
|
||||||
|
<img class='float-left rounded-1' src='https://avatars3.githubusercontent.com/u/3433835?v=4' width='36' height='36' alt='@n-rodriguez'>|[@n-rodriguez](https://github.com/n-rodriguez)|1
|
||||||
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/8399114?v=4' width='36' height='36' alt='@fortunejuggle'>|[@fortunejuggle](https://github.com/fortunejuggle)|1
|
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/8399114?v=4' width='36' height='36' alt='@fortunejuggle'>|[@fortunejuggle](https://github.com/fortunejuggle)|1
|
||||||
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/219695?v=4' width='36' height='36' alt='@rmoorman'>|[@rmoorman](https://github.com/rmoorman)|1
|
<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/219695?v=4' width='36' height='36' alt='@rmoorman'>|[@rmoorman](https://github.com/rmoorman)|1
|
||||||
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/154676?v=4' width='36' height='36' alt='@skurfer'>|[@skurfer](https://github.com/skurfer)|1
|
<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/154676?v=4' width='36' height='36' alt='@skurfer'>|[@skurfer](https://github.com/skurfer)|1
|
||||||
@@ -69,4 +70,4 @@ Avatar|Contributor|Contributions
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2019-09-01.
|
Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2019-10-28.
|
||||||
|
|||||||
83
CHANGELOG.md
83
CHANGELOG.md
@@ -1,5 +1,88 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.40.5](https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.4...v0.40.5) (2019-10-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **macros.jinja:** apply suggestion from PR ([](https://github.com/saltstack-formulas/postgres-formula/commit/d606b28))
|
||||||
|
* **macros.jinja:** use `user` kwarg for schemas (required on FreeBSD) ([](https://github.com/saltstack-formulas/postgres-formula/commit/7ff798a))
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* **kitchen:** add pre-salted `FreeBSD-12.0` box for local testing ([](https://github.com/saltstack-formulas/postgres-formula/commit/eefb89e))
|
||||||
|
* **kitchen:** use `debian-10-master-py3` instead of `develop` [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/81b2c2e))
|
||||||
|
* **travis:** update `salt-lint` config for `v0.0.10` [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/62baac2))
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* **contributing:** remove to use org-level file instead [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/5a291ab))
|
||||||
|
* **readme:** update link to `CONTRIBUTING` [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/e568f28))
|
||||||
|
|
||||||
|
## [0.40.4](https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.3...v0.40.4) (2019-10-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **rubocop:** add fixes using `rubocop --safe-auto-correct` ([](https://github.com/saltstack-formulas/postgres-formula/commit/37b0c43))
|
||||||
|
* **rubocop:** fix remaining errors manually ([](https://github.com/saltstack-formulas/postgres-formula/commit/b369aa9))
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([](https://github.com/saltstack-formulas/postgres-formula/commit/7822200))
|
||||||
|
* **travis:** merge `rubocop` linter into main `lint` job ([](https://github.com/saltstack-formulas/postgres-formula/commit/2c82872))
|
||||||
|
|
||||||
|
## [0.40.3](https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.2...v0.40.3) (2019-10-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **manage.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/postgres-formula/commit/bf5b4d6))
|
||||||
|
* **python.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/postgres-formula/commit/1f3cfcc))
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* **kitchen:** change `log_level` to `debug` instead of `info` ([](https://github.com/saltstack-formulas/postgres-formula/commit/7ca61f3))
|
||||||
|
* **kitchen:** install required packages to bootstrapped `opensuse` [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/76e3e39))
|
||||||
|
* **kitchen:** use bootstrapped `opensuse` images until `2019.2.2` [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/3a27978))
|
||||||
|
* **platform:** add `arch-base-latest` (commented out for now) [skip ci] ([](https://github.com/saltstack-formulas/postgres-formula/commit/89e4a34))
|
||||||
|
* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([](https://github.com/saltstack-formulas/postgres-formula/commit/a0fdd48))
|
||||||
|
|
||||||
|
## [0.40.2](https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.1...v0.40.2) (2019-09-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **freebsd:** no libpqdev freebsd package ([eca6d97](https://github.com/saltstack-formulas/postgres-formula/commit/eca6d97))
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* **yamllint:** add rule `empty-values` & use new `yaml-files` setting ([9796319](https://github.com/saltstack-formulas/postgres-formula/commit/9796319))
|
||||||
|
|
||||||
|
## [0.40.1](https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.0...v0.40.1) (2019-09-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Continuous Integration
|
||||||
|
|
||||||
|
* use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround ([fc6cbe0](https://github.com/saltstack-formulas/postgres-formula/commit/fc6cbe0))
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* **pillar.example:** update examples for freebsd ([a799214](https://github.com/saltstack-formulas/postgres-formula/commit/a799214))
|
||||||
|
|
||||||
|
# [0.40.0](https://github.com/saltstack-formulas/postgres-formula/compare/v0.39.1...v0.40.0) (2019-09-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **archlinux:** add support, fixing rendering errors ([e970925](https://github.com/saltstack-formulas/postgres-formula/commit/e970925))
|
||||||
|
|
||||||
## [0.39.1](https://github.com/saltstack-formulas/postgres-formula/compare/v0.39.0...v0.39.1) (2019-09-01)
|
## [0.39.1](https://github.com/saltstack-formulas/postgres-formula/compare/v0.39.0...v0.39.1) (2019-09-01)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
FORMULA
2
FORMULA
@@ -1,7 +1,7 @@
|
|||||||
name: postgres
|
name: postgres
|
||||||
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS
|
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS
|
||||||
os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS
|
os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS
|
||||||
version: 0.39.1
|
version: 0.40.5
|
||||||
release: 1
|
release: 1
|
||||||
minimum_version: 2016.11
|
minimum_version: 2016.11
|
||||||
summary: Postgres formula
|
summary: Postgres formula
|
||||||
|
|||||||
7
Gemfile
7
Gemfile
@@ -1,6 +1,7 @@
|
|||||||
source "https://rubygems.org"
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'kitchen-docker', '>= 2.9'
|
gem 'kitchen-docker', '>= 2.9'
|
||||||
gem 'kitchen-salt', '>= 0.6.0'
|
|
||||||
gem 'kitchen-inspec', '>= 1.1'
|
gem 'kitchen-inspec', '>= 1.1'
|
||||||
|
gem 'kitchen-salt', '>= 0.6.0'
|
||||||
|
|||||||
21
bin/kitchen
21
bin/kitchen
@@ -8,22 +8,25 @@
|
|||||||
# this file is here to facilitate running it.
|
# this file is here to facilitate running it.
|
||||||
#
|
#
|
||||||
|
|
||||||
require "pathname"
|
require 'pathname'
|
||||||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
||||||
Pathname.new(__FILE__).realpath)
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
bundle_binstub = File.expand_path('bundle', __dir__)
|
||||||
|
|
||||||
if File.file?(bundle_binstub)
|
if File.file?(bundle_binstub)
|
||||||
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
||||||
load(bundle_binstub)
|
load(bundle_binstub)
|
||||||
else
|
else
|
||||||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
abort(
|
||||||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
'Your `bin/bundle` was not generated by Bundler, '\
|
||||||
|
'so this binstub cannot run. Replace `bin/bundle` by running '\
|
||||||
|
'`bundle binstubs bundler --force`, then run this command again.'
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require "rubygems"
|
require 'rubygems'
|
||||||
require "bundler/setup"
|
require 'bundler/setup'
|
||||||
|
|
||||||
load Gem.bin_path("test-kitchen", "kitchen")
|
load Gem.bin_path('test-kitchen', 'kitchen')
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ This list is sorted by the number of commits per contributor in *descending* ord
|
|||||||
* - Avatar
|
* - Avatar
|
||||||
- Contributor
|
- Contributor
|
||||||
- Contributions
|
- Contributions
|
||||||
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars1.githubusercontent.com/u/13322818?v=4' width='36' height='36' alt='@noelmcloughlin'>`
|
|
||||||
- `@noelmcloughlin <https://github.com/noelmcloughlin>`_
|
|
||||||
- 58
|
|
||||||
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/10231489?v=4' width='36' height='36' alt='@myii'>`
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/10231489?v=4' width='36' height='36' alt='@myii'>`
|
||||||
- `@myii <https://github.com/myii>`_
|
- `@myii <https://github.com/myii>`_
|
||||||
- 57
|
- 83
|
||||||
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars1.githubusercontent.com/u/13322818?v=4' width='36' height='36' alt='@noelmcloughlin'>`
|
||||||
|
- `@noelmcloughlin <https://github.com/noelmcloughlin>`_
|
||||||
|
- 62
|
||||||
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/1800660?v=4' width='36' height='36' alt='@aboe76'>`
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/1800660?v=4' width='36' height='36' alt='@aboe76'>`
|
||||||
- `@aboe76 <https://github.com/aboe76>`_
|
- `@aboe76 <https://github.com/aboe76>`_
|
||||||
- 50
|
- 54
|
||||||
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/1396878?v=4' width='36' height='36' alt='@gravyboat'>`
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars2.githubusercontent.com/u/1396878?v=4' width='36' height='36' alt='@gravyboat'>`
|
||||||
- `@gravyboat <https://github.com/gravyboat>`_
|
- `@gravyboat <https://github.com/gravyboat>`_
|
||||||
- 41
|
- 41
|
||||||
@@ -151,6 +151,9 @@ This list is sorted by the number of commits per contributor in *descending* ord
|
|||||||
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars3.githubusercontent.com/u/3705387?v=4' width='36' height='36' alt='@mbrannigan'>`
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars3.githubusercontent.com/u/3705387?v=4' width='36' height='36' alt='@mbrannigan'>`
|
||||||
- `@mbrannigan <https://github.com/mbrannigan>`_
|
- `@mbrannigan <https://github.com/mbrannigan>`_
|
||||||
- 1
|
- 1
|
||||||
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars3.githubusercontent.com/u/3433835?v=4' width='36' height='36' alt='@n-rodriguez'>`
|
||||||
|
- `@n-rodriguez <https://github.com/n-rodriguez>`_
|
||||||
|
- 1
|
||||||
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/8399114?v=4' width='36' height='36' alt='@fortunejuggle'>`
|
* - :raw-html-m2r:`<img class='float-left rounded-1' src='https://avatars0.githubusercontent.com/u/8399114?v=4' width='36' height='36' alt='@fortunejuggle'>`
|
||||||
- `@fortunejuggle <https://github.com/fortunejuggle>`_
|
- `@fortunejuggle <https://github.com/fortunejuggle>`_
|
||||||
- 1
|
- 1
|
||||||
@@ -203,4 +206,4 @@ This list is sorted by the number of commits per contributor in *descending* ord
|
|||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Auto-generated by a `forked version <https://github.com/myii/maintainer>`_ of `gaocegege/maintainer <https://github.com/gaocegege/maintainer>`_ on 2019-09-01.
|
Auto-generated by a `forked version <https://github.com/myii/maintainer>`_ of `gaocegege/maintainer <https://github.com/gaocegege/maintainer>`_ on 2019-10-28.
|
||||||
|
|||||||
@@ -2,6 +2,107 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
`0.40.5 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.4...v0.40.5>`_ (2019-10-28)
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **macros.jinja:** apply suggestion from PR (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/d606b28>`_\ )
|
||||||
|
* **macros.jinja:** use ``user`` kwarg for schemas (required on FreeBSD) (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/7ff798a>`_\ )
|
||||||
|
|
||||||
|
Continuous Integration
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **kitchen:** add pre-salted ``FreeBSD-12.0`` box for local testing (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/eefb89e>`_\ )
|
||||||
|
* **kitchen:** use ``debian-10-master-py3`` instead of ``develop`` [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/81b2c2e>`_\ )
|
||||||
|
* **travis:** update ``salt-lint`` config for ``v0.0.10`` [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/62baac2>`_\ )
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **contributing:** remove to use org-level file instead [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/5a291ab>`_\ )
|
||||||
|
* **readme:** update link to ``CONTRIBUTING`` [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/e568f28>`_\ )
|
||||||
|
|
||||||
|
`0.40.4 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.3...v0.40.4>`_ (2019-10-11)
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **rubocop:** add fixes using ``rubocop --safe-auto-correct`` (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/37b0c43>`_\ )
|
||||||
|
* **rubocop:** fix remaining errors manually (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/b369aa9>`_\ )
|
||||||
|
|
||||||
|
Continuous Integration
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* merge travis matrix, add ``salt-lint`` & ``rubocop`` to ``lint`` job (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/7822200>`_\ )
|
||||||
|
* **travis:** merge ``rubocop`` linter into main ``lint`` job (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/2c82872>`_\ )
|
||||||
|
|
||||||
|
`0.40.3 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.2...v0.40.3>`_ (2019-10-10)
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **manage.sls:** fix ``salt-lint`` errors (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/bf5b4d6>`_\ )
|
||||||
|
* **python.sls:** fix ``salt-lint`` errors (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/1f3cfcc>`_\ )
|
||||||
|
|
||||||
|
Continuous Integration
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **kitchen:** change ``log_level`` to ``debug`` instead of ``info`` (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/7ca61f3>`_\ )
|
||||||
|
* **kitchen:** install required packages to bootstrapped ``opensuse`` [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/76e3e39>`_\ )
|
||||||
|
* **kitchen:** use bootstrapped ``opensuse`` images until ``2019.2.2`` [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/3a27978>`_\ )
|
||||||
|
* **platform:** add ``arch-base-latest`` (commented out for now) [skip ci] (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/89e4a34>`_\ )
|
||||||
|
* merge travis matrix, add ``salt-lint`` & ``rubocop`` to ``lint`` job (\ ` <https://github.com/saltstack-formulas/postgres-formula/commit/a0fdd48>`_\ )
|
||||||
|
|
||||||
|
`0.40.2 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.1...v0.40.2>`_ (2019-09-13)
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **freebsd:** no libpqdev freebsd package (\ `eca6d97 <https://github.com/saltstack-formulas/postgres-formula/commit/eca6d97>`_\ )
|
||||||
|
|
||||||
|
Continuous Integration
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **yamllint:** add rule ``empty-values`` & use new ``yaml-files`` setting (\ `9796319 <https://github.com/saltstack-formulas/postgres-formula/commit/9796319>`_\ )
|
||||||
|
|
||||||
|
`0.40.1 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.40.0...v0.40.1>`_ (2019-09-11)
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Continuous Integration
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* use ``dist: bionic`` & apply ``opensuse-leap-15`` SCP error workaround (\ `fc6cbe0 <https://github.com/saltstack-formulas/postgres-formula/commit/fc6cbe0>`_\ )
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **pillar.example:** update examples for freebsd (\ `a799214 <https://github.com/saltstack-formulas/postgres-formula/commit/a799214>`_\ )
|
||||||
|
|
||||||
|
`0.40.0 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.39.1...v0.40.0>`_ (2019-09-03)
|
||||||
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Features
|
||||||
|
^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
|
* **archlinux:** add support, fixing rendering errors (\ `e970925 <https://github.com/saltstack-formulas/postgres-formula/commit/e970925>`_\ )
|
||||||
|
|
||||||
`0.39.1 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.39.0...v0.39.1>`_ (2019-09-01)
|
`0.39.1 <https://github.com/saltstack-formulas/postgres-formula/compare/v0.39.0...v0.39.1>`_ (2019-09-01)
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -1,159 +0,0 @@
|
|||||||
.. _contributing:
|
|
||||||
|
|
||||||
How to contribute
|
|
||||||
=================
|
|
||||||
|
|
||||||
This document will eventually outline all aspects of guidance to make your contributing experience a fruitful and enjoyable one.
|
|
||||||
What it already contains is information about *commit message formatting* and how that directly affects the numerous automated processes that are used for this repo.
|
|
||||||
It also covers how to contribute to this *formula's documentation*.
|
|
||||||
|
|
||||||
.. contents:: **Table of Contents**
|
|
||||||
|
|
||||||
Overview
|
|
||||||
--------
|
|
||||||
|
|
||||||
Submitting a pull request is more than just code!
|
|
||||||
To achieve a quality product, the *tests* and *documentation* need to be updated as well.
|
|
||||||
An excellent pull request will include these in the changes, wherever relevant.
|
|
||||||
|
|
||||||
Commit message formatting
|
|
||||||
-------------------------
|
|
||||||
|
|
||||||
Since every type of change requires making Git commits,
|
|
||||||
we will start by covering the importance of ensuring that all of your commit
|
|
||||||
messages are in the correct format.
|
|
||||||
|
|
||||||
Automation of multiple processes
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
This formula uses `semantic-release <https://github.com/semantic-release/semantic-release>`_ for automating numerous processes such as bumping the version number appropriately, creating new tags/releases and updating the changelog.
|
|
||||||
The entire process relies on the structure of commit messages to determine the version bump, which is then used for the rest of the automation.
|
|
||||||
|
|
||||||
Full details are available in the upstream docs regarding the `Angular Commit Message Conventions <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines>`_.
|
|
||||||
The key factor is that the first line of the commit message must follow this format:
|
|
||||||
|
|
||||||
.. code-block::
|
|
||||||
|
|
||||||
type(scope): subject
|
|
||||||
|
|
||||||
|
|
||||||
* E.g. ``docs(contributing): add commit message formatting instructions``.
|
|
||||||
|
|
||||||
Besides the version bump, the changelog and release notes are formatted accordingly.
|
|
||||||
So based on the example above:
|
|
||||||
|
|
||||||
..
|
|
||||||
|
|
||||||
.. raw:: html
|
|
||||||
|
|
||||||
<h3>Documentation</h3>
|
|
||||||
|
|
||||||
* **contributing:** add commit message formatting instructions
|
|
||||||
|
|
||||||
|
|
||||||
* The ``type`` translates into a ``Documentation`` sub-heading.
|
|
||||||
* The ``(scope):`` will be shown in bold text without the brackets.
|
|
||||||
* The ``subject`` follows the ``scope`` as standard text.
|
|
||||||
|
|
||||||
Linting commit messages in Travis CI
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
This formula uses `commitlint <https://github.com/conventional-changelog/commitlint>`_ for checking commit messages during CI testing.
|
|
||||||
This ensures that they are in accordance with the ``semantic-release`` settings.
|
|
||||||
|
|
||||||
For more details about the default settings, refer back to the ``commitlint`` `reference rules <https://conventional-changelog.github.io/commitlint/#/reference-rules>`_.
|
|
||||||
|
|
||||||
Relationship between commit type and version bump
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
This formula applies some customisations to the defaults, as outlined in the table below,
|
|
||||||
based upon the `type <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type>`_ of the commit:
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:name: commit-type-vs-version-bump
|
|
||||||
:header-rows: 1
|
|
||||||
:stub-columns: 0
|
|
||||||
:widths: 1,2,3,1,1
|
|
||||||
|
|
||||||
* - Type
|
|
||||||
- Heading
|
|
||||||
- Description
|
|
||||||
- Bump (default)
|
|
||||||
- Bump (custom)
|
|
||||||
* - ``build``
|
|
||||||
- Build System
|
|
||||||
- Changes related to the build system
|
|
||||||
- –
|
|
||||||
-
|
|
||||||
* - ``chore``
|
|
||||||
- –
|
|
||||||
- Changes to the build process or auxiliary tools and libraries such as
|
|
||||||
documentation generation
|
|
||||||
- –
|
|
||||||
-
|
|
||||||
* - ``ci``
|
|
||||||
- Continuous Integration
|
|
||||||
- Changes to the continuous integration configuration
|
|
||||||
- –
|
|
||||||
-
|
|
||||||
* - ``docs``
|
|
||||||
- Documentation
|
|
||||||
- Documentation only changes
|
|
||||||
- –
|
|
||||||
- 0.0.1
|
|
||||||
* - ``feat``
|
|
||||||
- Features
|
|
||||||
- A new feature
|
|
||||||
- 0.1.0
|
|
||||||
-
|
|
||||||
* - ``fix``
|
|
||||||
- Bug Fixes
|
|
||||||
- A bug fix
|
|
||||||
- 0.0.1
|
|
||||||
-
|
|
||||||
* - ``perf``
|
|
||||||
- Performance Improvements
|
|
||||||
- A code change that improves performance
|
|
||||||
- 0.0.1
|
|
||||||
-
|
|
||||||
* - ``refactor``
|
|
||||||
- Code Refactoring
|
|
||||||
- A code change that neither fixes a bug nor adds a feature
|
|
||||||
- –
|
|
||||||
- 0.0.1
|
|
||||||
* - ``revert``
|
|
||||||
- Reverts
|
|
||||||
- A commit used to revert a previous commit
|
|
||||||
- –
|
|
||||||
- 0.0.1
|
|
||||||
* - ``style``
|
|
||||||
- Styles
|
|
||||||
- Changes that do not affect the meaning of the code (white-space,
|
|
||||||
formatting, missing semi-colons, etc.)
|
|
||||||
- –
|
|
||||||
- 0.0.1
|
|
||||||
* - ``test``
|
|
||||||
- Tests
|
|
||||||
- Adding missing or correcting existing tests
|
|
||||||
- –
|
|
||||||
- 0.0.1
|
|
||||||
|
|
||||||
Use ``BREAKING CHANGE`` to trigger a ``major`` version change
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Adding ``BREAKING CHANGE`` to the footer of the extended description of the commit message will **always** trigger a ``major`` version change, no matter which type has been used.
|
|
||||||
This will be appended to the changelog and release notes as well.
|
|
||||||
To preserve good formatting of these notes, the following format is prescribed:
|
|
||||||
|
|
||||||
* ``BREAKING CHANGE: <explanation in paragraph format>.``
|
|
||||||
|
|
||||||
An example of that:
|
|
||||||
|
|
||||||
.. code-block:: git
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
BREAKING CHANGE: With the removal of all of the `.sls` files under
|
|
||||||
`template package`, this formula no longer supports the installation of
|
|
||||||
packages.
|
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ Contributing to this repo
|
|||||||
|
|
||||||
**Commit message formatting is significant!!**
|
**Commit message formatting is significant!!**
|
||||||
|
|
||||||
Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
|
Please see `How to contribute <https://github.com/saltstack-formulas/.github/blob/master/CONTRIBUTING.rst>`_ for more details.
|
||||||
|
|
||||||
Available states
|
Available states
|
||||||
----------------
|
----------------
|
||||||
|
|||||||
17
kitchen.vagrant.yml
Normal file
17
kitchen.vagrant.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: vagrant
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: freebsd-120-2019-2-py3
|
||||||
|
driver:
|
||||||
|
box_url: https://freebsd.z.vstack.com/FreeBSD-12.0.box
|
||||||
|
cache_directory: false
|
||||||
|
customize:
|
||||||
|
usbxhci: 'off'
|
||||||
|
gui: false
|
||||||
|
linked_clone: true
|
||||||
|
ssh:
|
||||||
|
shell: '/bin/sh'
|
||||||
82
kitchen.yml
82
kitchen.yml
@@ -11,13 +11,13 @@ driver:
|
|||||||
# Make sure the platforms listed below match up with
|
# Make sure the platforms listed below match up with
|
||||||
# the `env.matrix` instances defined in `.travis.yml`
|
# the `env.matrix` instances defined in `.travis.yml`
|
||||||
platforms:
|
platforms:
|
||||||
## SALT `develop`
|
## SALT `develop` => `master`
|
||||||
- name: debian-10-develop-py3
|
- name: debian-10-master-py3
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-develop-py3:debian-10
|
image: netmanagers/salt-master-py3:debian-10
|
||||||
provision_command:
|
provision_command:
|
||||||
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
||||||
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
|
- sh bootstrap-salt.sh -XdPbfrq -x python3 git master
|
||||||
- name: ubuntu-1804-develop-py3
|
- name: ubuntu-1804-develop-py3
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-develop-py3:ubuntu-18.04
|
image: netmanagers/salt-develop-py3:ubuntu-18.04
|
||||||
@@ -38,17 +38,32 @@ platforms:
|
|||||||
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
|
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
|
||||||
- name: opensuse-leap-15-develop-py3
|
- name: opensuse-leap-15-develop-py3
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-develop-py3:opensuse-leap-15
|
image: opensuse/leap:15
|
||||||
provision_command:
|
provision_command:
|
||||||
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
# yamllint disable-line rule:line-length
|
||||||
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
|
- zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python3-pip
|
||||||
|
- systemctl enable sshd.service
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
provisioner:
|
||||||
|
salt_bootstrap_options: -XdPfrq -x python3 git develop
|
||||||
|
salt_install: bootstrap
|
||||||
|
# Workaround to avoid intermittent failures on `opensuse-leap-15`:
|
||||||
|
# => SCP did not finish successfully (255): (Net::SCP::Error)
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 1
|
||||||
- name: amazonlinux-2-develop-py2
|
- name: amazonlinux-2-develop-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-develop-py2:amazonlinux-2
|
image: netmanagers/salt-develop-py2:amazonlinux-2
|
||||||
provision_command:
|
provision_command:
|
||||||
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
||||||
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
|
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
|
||||||
|
- name: arch-base-latest-develop-py2
|
||||||
|
driver:
|
||||||
|
image: netmanagers/salt-develop-py2:arch-base-latest
|
||||||
|
provision_command:
|
||||||
|
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
||||||
|
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
|
||||||
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
## SALT `2019.2`
|
## SALT `2019.2`
|
||||||
- name: debian-9-2019-2-py3
|
- name: debian-9-2019-2-py3
|
||||||
@@ -65,11 +80,26 @@ platforms:
|
|||||||
image: netmanagers/salt-2019.2-py3:fedora-30
|
image: netmanagers/salt-2019.2-py3:fedora-30
|
||||||
- name: opensuse-leap-15-2019-2-py3
|
- name: opensuse-leap-15-2019-2-py3
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2019.2-py3:opensuse-leap-15
|
image: opensuse/leap:15
|
||||||
|
provision_command:
|
||||||
|
# yamllint disable-line rule:line-length
|
||||||
|
- zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python3-pip
|
||||||
|
- systemctl enable sshd.service
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
provisioner:
|
||||||
|
salt_bootstrap_options: -XdPfrq -x python3 git 2019.2
|
||||||
|
salt_install: bootstrap
|
||||||
|
# Workaround to avoid intermittent failures on `opensuse-leap-15`:
|
||||||
|
# => SCP did not finish successfully (255): (Net::SCP::Error)
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 1
|
||||||
- name: amazonlinux-2-2019-2-py2
|
- name: amazonlinux-2-2019-2-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2019.2-py2:amazonlinux-2
|
image: netmanagers/salt-2019.2-py2:amazonlinux-2
|
||||||
|
- name: arch-base-latest-2019-2-py2
|
||||||
|
driver:
|
||||||
|
image: netmanagers/salt-2019.2-py2:arch-base-latest
|
||||||
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
## SALT `2018.3`
|
## SALT `2018.3`
|
||||||
- name: debian-9-2018-3-py2
|
- name: debian-9-2018-3-py2
|
||||||
@@ -86,11 +116,26 @@ platforms:
|
|||||||
image: netmanagers/salt-2018.3-py2:fedora-29
|
image: netmanagers/salt-2018.3-py2:fedora-29
|
||||||
- name: opensuse-leap-15-2018-3-py2
|
- name: opensuse-leap-15-2018-3-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2018.3-py2:opensuse-leap-15
|
image: opensuse/leap:15
|
||||||
|
provision_command:
|
||||||
|
# yamllint disable-line rule:line-length
|
||||||
|
- zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python2-pip
|
||||||
|
- systemctl enable sshd.service
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
provisioner:
|
||||||
|
salt_bootstrap_options: -XdPfrq -x python2 git 2018.3
|
||||||
|
salt_install: bootstrap
|
||||||
|
# Workaround to avoid intermittent failures on `opensuse-leap-15`:
|
||||||
|
# => SCP did not finish successfully (255): (Net::SCP::Error)
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 1
|
||||||
- name: amazonlinux-2-2018-3-py2
|
- name: amazonlinux-2-2018-3-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2018.3-py2:amazonlinux-2
|
image: netmanagers/salt-2018.3-py2:amazonlinux-2
|
||||||
|
- name: arch-base-latest-2018-3-py2
|
||||||
|
driver:
|
||||||
|
image: netmanagers/salt-2018.3-py2:arch-base-latest
|
||||||
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
## SALT `2017.7`
|
## SALT `2017.7`
|
||||||
- name: debian-8-2017-7-py2
|
- name: debian-8-2017-7-py2
|
||||||
@@ -108,15 +153,30 @@ platforms:
|
|||||||
image: netmanagers/salt-2017.7-py2:fedora-29
|
image: netmanagers/salt-2017.7-py2:fedora-29
|
||||||
- name: opensuse-leap-15-2017-7-py2
|
- name: opensuse-leap-15-2017-7-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2017.7-py2:opensuse-leap-15
|
image: opensuse/leap:15
|
||||||
|
provision_command:
|
||||||
|
# yamllint disable-line rule:line-length
|
||||||
|
- zypper install -y glibc-locale net-tools net-tools-deprecated python-xml python2-pip
|
||||||
|
- systemctl enable sshd.service
|
||||||
run_command: /usr/lib/systemd/systemd
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
provisioner:
|
||||||
|
salt_bootstrap_options: -XdPfrq -x python2 git 2017.7
|
||||||
|
salt_install: bootstrap
|
||||||
|
# Workaround to avoid intermittent failures on `opensuse-leap-15`:
|
||||||
|
# => SCP did not finish successfully (255): (Net::SCP::Error)
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 1
|
||||||
- name: amazonlinux-2-2017-7-py2
|
- name: amazonlinux-2-2017-7-py2
|
||||||
driver:
|
driver:
|
||||||
image: netmanagers/salt-2017.7-py2:amazonlinux-2
|
image: netmanagers/salt-2017.7-py2:amazonlinux-2
|
||||||
|
- name: arch-base-latest-2017-7-py2
|
||||||
|
driver:
|
||||||
|
image: netmanagers/salt-2017.7-py2:arch-base-latest
|
||||||
|
run_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: salt_solo
|
name: salt_solo
|
||||||
log_level: info
|
log_level: debug
|
||||||
salt_install: none
|
salt_install: none
|
||||||
require_chef: false
|
require_chef: false
|
||||||
formula: postgres
|
formula: postgres
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ postgres:
|
|||||||
# flags: -w -s -m fast
|
# flags: -w -s -m fast
|
||||||
# sysrc: true
|
# sysrc: true
|
||||||
pkgs_extra:
|
pkgs_extra:
|
||||||
|
{%- if grains.os_family not in ('FreeBSD',) %}
|
||||||
- postgresql-contrib
|
- postgresql-contrib
|
||||||
|
{%- endif %}
|
||||||
- postgresql-plpython
|
- postgresql-plpython
|
||||||
|
|
||||||
# CLUSTER
|
# CLUSTER
|
||||||
@@ -91,7 +93,7 @@ postgres:
|
|||||||
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
|
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if grains['init'] == 'unknown' %}
|
{%- if 'init' in grains and grains['init'] == 'unknown' %}
|
||||||
|
|
||||||
# If Salt is unable to detect init system running in the scope of state run,
|
# If Salt is unable to detect init system running in the scope of state run,
|
||||||
# probably we are trying to bake a container/VM image with PostgreSQL.
|
# probably we are trying to bake a container/VM image with PostgreSQL.
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
{%- if 'ensure' in kwarg %}
|
{%- if 'ensure' in kwarg %}
|
||||||
{%- set ensure = kwarg.pop('ensure') %}
|
{%- set ensure = kwarg.pop('ensure') %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'user' not in kwarg and state != 'postgres_schema' %}
|
{%- set user_available = not (state == 'postgres_schema' and grains.saltversioninfo < [2018, 3]) %}
|
||||||
|
{%- if 'user' not in kwarg and user_available %}
|
||||||
{%- do kwarg.update({'user': postgres.user}) %}
|
{%- do kwarg.update({'user': postgres.user}) %}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ FreeBSD:
|
|||||||
conf_dir: /usr/local/pgsql/data
|
conf_dir: /usr/local/pgsql/data
|
||||||
data_dir: /usr/local/pgsql/data
|
data_dir: /usr/local/pgsql/data
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
pkg_libpq_dev: null #not in freebsd
|
||||||
pkg_client: postgresql{{ release }}-client
|
pkg_client: postgresql{{ release }}-client
|
||||||
pkg: postgresql{{ release }}-server
|
pkg: postgresql{{ release }}-server
|
||||||
prepare_cluster:
|
prepare_cluster:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ include:
|
|||||||
|
|
||||||
postgresql-python:
|
postgresql-python:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ postgres.pkg_python}}
|
- name: {{ postgres.pkg_python }}
|
||||||
{% if postgres.fromrepo %}
|
{% if postgres.fromrepo %}
|
||||||
- fromrepo: {{ postgres.fromrepo }}
|
- fromrepo: {{ postgres.fromrepo }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -39,6 +39,6 @@ postgresql-repo:
|
|||||||
postgresql-repo:
|
postgresql-repo:
|
||||||
test.show_notification:
|
test.show_notification:
|
||||||
- text: |
|
- text: |
|
||||||
PostgreSQL does not provide package repository for {{ grains['osfinger'] }}
|
PostgreSQL does not provide package repository for {{ salt['grains.get']('osfinger', grains.os) }}
|
||||||
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Overide by Platform
|
# Overide by Platform
|
||||||
pg_port = '5432'
|
pg_port = '5432'
|
||||||
if platform[:family] == 'debian' or platform[:family] == 'suse'
|
pg_port = '5433' if (platform[:family] == 'debian') || (platform[:family] == 'suse')
|
||||||
pg_port = '5433'
|
|
||||||
end
|
|
||||||
|
|
||||||
control 'Postgres command' do
|
control 'Postgres command' do
|
||||||
title 'should match desired lines'
|
title 'should match desired lines'
|
||||||
|
|
||||||
# Can't use `%Q` here due to the `\`
|
# Can't use `%Q` here due to the `\`
|
||||||
describe command(%q{su - postgres -c 'psql -p} + pg_port + %q{ -qtc "\l+ db2"'}) do
|
describe command("su - postgres -c 'psql -p" + pg_port + %q( -qtc "\l+ db2"')) do
|
||||||
its(:stdout) { should match(%r{db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space}) }
|
its(:stdout) do
|
||||||
|
should match(
|
||||||
|
/db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space/
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
control 'Postgres configuration' do
|
control 'Postgres configuration' do
|
||||||
title 'should include the directory'
|
title 'should include the directory'
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Overide by Platform
|
# Overide by Platform
|
||||||
service_name = 'postgresql'
|
service_name = 'postgresql'
|
||||||
pg_port = 5432
|
pg_port = 5432
|
||||||
if platform[:name] == 'centos' and platform[:release].start_with?('6')
|
if (platform[:name] == 'centos') && platform[:release].start_with?('6')
|
||||||
service_name = 'postgresql-9.6'
|
service_name = 'postgresql-9.6'
|
||||||
elsif platform[:family] == 'debian' or platform[:family] == 'suse'
|
elsif (platform[:family] == 'debian') || (platform[:family] == 'suse')
|
||||||
pg_port = 5433
|
pg_port = 5433
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,4 @@ supports:
|
|||||||
- platform-name: suse
|
- platform-name: suse
|
||||||
- platform-name: freebsd
|
- platform-name: freebsd
|
||||||
- platform-name: amazon
|
- platform-name: amazon
|
||||||
|
- platform-name: arch
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Port to use for the cluster -- can be used to provide a non-standard port
|
# Port to use for the cluster -- can be used to provide a non-standard port
|
||||||
# NOTE: If already set in the minion config, that value takes priority
|
# NOTE: If already set in the minion config, that value takes priority
|
||||||
|
|
||||||
{%- if not (grains.os_family == 'Debian' or grains.osfinger == 'Leap-15') %}
|
{%- if grains.os_family != 'Debian' and salt['grains.get']('osfinger') != 'Leap-15' %}
|
||||||
postgres.port: '5432'
|
postgres.port: '5432'
|
||||||
{%- else %}
|
{%- else %}
|
||||||
postgres.port: '5433'
|
postgres.port: '5433'
|
||||||
@@ -10,7 +10,7 @@ postgres.port: '5433'
|
|||||||
postgres:
|
postgres:
|
||||||
# UPSTREAM REPO
|
# UPSTREAM REPO
|
||||||
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
|
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
|
||||||
{%- if not (grains.os_family == 'Debian' or grains.osfinger == 'CentOS-6') %}
|
{%- if grains.os_family != 'Debian' and salt['grains.get']('osfinger') != 'CentOS-6' %}
|
||||||
use_upstream_repo: False
|
use_upstream_repo: False
|
||||||
{%- else %}
|
{%- else %}
|
||||||
use_upstream_repo: True
|
use_upstream_repo: True
|
||||||
@@ -181,7 +181,7 @@ postgres:
|
|||||||
public:
|
public:
|
||||||
owner: localUser
|
owner: localUser
|
||||||
# enable per-db extension
|
# enable per-db extension
|
||||||
{%- if grains.os_family == 'Debian' and grains.osfinger != 'Debian-8' %}
|
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-8' %}
|
||||||
extensions:
|
extensions:
|
||||||
uuid-ossp:
|
uuid-ossp:
|
||||||
schema: 'public'
|
schema: 'public'
|
||||||
@@ -194,7 +194,7 @@ postgres:
|
|||||||
owner: localUser
|
owner: localUser
|
||||||
|
|
||||||
# optional extensions to install in schema
|
# optional extensions to install in schema
|
||||||
{%- if grains.os_family == 'Debian' and grains.osfinger != 'Debian-8' %}
|
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-8' %}
|
||||||
extensions:
|
extensions:
|
||||||
uuid-ossp:
|
uuid-ossp:
|
||||||
schema: uuid-ossp
|
schema: uuid-ossp
|
||||||
|
|||||||
Reference in New Issue
Block a user