Commit graph

40 commits

Author SHA1 Message Date
Imran Iqbal
4acf606776
chore(gemfile.lock): update to latest gem versions (2022-W28) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/454
2022-07-17 19:47:12 +01:00
Imran Iqbal
2301eddbef
chore(gemfile.lock): update to latest gem versions (2022-W20) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/444
2022-05-17 13:21:11 +01:00
Imran Iqbal
76de88bc7b
test(system.rb): add support for mac_os_x [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/442
2022-05-17 08:51:05 +01:00
Imran Iqbal
1c70c9c01c
test(repository): use system.platform[:codename] [skip ci]
Tested:

* https://gitlab.com/myii/postgres-formula/-/pipelines/470237956
2022-02-14 08:34:37 +00:00
Imran Iqbal
1270d0c962
test(system): add build_platform_codename [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/415
2022-02-14 08:08:08 +00:00
Javier Bértoli
43b4329a51 test(repository): redhat's family alternatives for repo url 2022-02-07 20:13:55 -03:00
Javier Bértoli
7bba14a61c fix(opensuse): fix repo key parameter
Also, fix tests for the different RedHat's family members
2022-02-04 20:57:30 -03:00
Javier Bértoli
b6a28fee0d feat(debian): use repository keyring instead of key_id 2022-02-04 18:02:08 -03:00
Imran Iqbal
0b0b980031
chore(gemfile.lock): update to latest gem versions (2021-W51) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/394
2021-12-22 11:57:48 +00:00
Imran Iqbal
1d6f3e67fe
chore(gemfile.lock): update to latest gem versions (2021-W29) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/349
2021-07-21 18:32:42 +01:00
Imran Iqbal
a1837c24f1
test(inspec): rename all files to avoid unnecessary _spec suffix 2021-07-20 19:22:36 +01:00
Imran Iqbal
2214096362
test(inspec): move common controls to the share profile 2021-07-20 19:21:29 +01:00
Imran Iqbal
27473b9865
test(pillar): use separate pillars to test default & repo suites 2021-07-20 18:31:04 +01:00
Imran Iqbal
a6c81972a2
ci: use default & repo InSpec suites
* Automated using https://github.com/myii/ssf-formula/pull/348
2021-07-20 18:02:47 +01:00
Imran Iqbal
d16e91ceb0
ci(3003.1): update inc. AlmaLinux, Rocky & rst-lint [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/335
2021-07-02 00:06:32 +01:00
noelmcloughlin
92e0ad383c chore(version): bump to modern version 2021-06-09 21:43:13 +01:00
Imran Iqbal
fc53d977b3
test: standardise use of share suite & _mapdata state [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/302
2021-03-23 21:31:59 +00:00
Imran Iqbal
6f04b3191c
ci(kitchen+gitlab-ci): use latest pre-salted images [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/293
2021-02-14 12:03:07 +00:00
Imran Iqbal
e976ee9c99
test(pillar): update conditional to include Tumbleweed 2021-02-14 11:57:44 +00:00
Imran Iqbal
73c39aff5e
test(command_spec): fix rubocop violation [skip ci]
* https://gitlab.com/myii/postgres-formula/-/pipelines/249943423
2021-02-01 23:06:00 +00:00
Imran Iqbal
b369aa9d40
fix(rubocop): fix remaining errors manually 2019-10-11 12:52:29 +01:00
Imran Iqbal
37b0c43839
fix(rubocop): add fixes using rubocop --safe-auto-correct 2019-10-11 12:50:13 +01:00
Imran Iqbal
89e4a34d3d ci(platform): add arch-base-latest (commented out for now) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/50
2019-10-01 16:22:29 +01:00
Niels Abspoel
3df38b1be2
Merge pull request #280 from noelmcloughlin/archlinux
feat(archlinux): add support, fixing rendering errors
2019-09-03 20:29:24 +02:00
N
e9709254c6
feat(archlinux): add support, fixing rendering errors 2019-09-03 14:36:16 +01:00
Imran Iqbal
677adbae16 test(inspec): fix reference to suse after gem train update
* https://github.com/inspec/train/pull/505
2019-08-28 07:39:55 +01:00
Imran Iqbal
1f0fd92674
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0)
* Fix (or ignore) errors shown below:

```bash
postgres-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:")
./postgres/repo.yaml
  4:2       error    syntax error: found character '%' that cannot start any token
  6:89      error    line too long (110 > 88 characters)  (line-length)
  9:89      error    line too long (95 > 88 characters)  (line-length)
  13:89     error    line too long (104 > 88 characters)  (line-length)
  14:89     error    line too long (106 > 88 characters)  (line-length)

./postgres/defaults.yaml
  3:1       warning  missing document start "---"  (document-start)
  4:22      warning  truthy value should be one of [false, true]  (truthy)
  5:16      warning  truthy value should be one of [false, true]  (truthy)
  5:22      warning  too few spaces before comment  (comments)
  20:10     warning  truthy value should be one of [false, true]  (truthy)
  40:8      warning  missing starting space in comment  (comments)
  41:89     error    line too long (97 > 88 characters)  (line-length)
  71:11     error    too many spaces after colon  (colons)
  72:12     warning  truthy value should be one of [false, true]  (truthy)
  74:15     warning  truthy value should be one of [false, true]  (truthy)
  85:6      warning  missing starting space in comment  (comments)
  89:11     warning  truthy value should be one of [false, true]  (truthy)
  90:24     warning  truthy value should be one of [false, true]  (truthy)
  91:56     error    too few spaces after comma  (commas)

./postgres/codenamemap.yaml
  3:2       error    syntax error: found character '%' that cannot start any token
  8:89      error    line too long (98 > 88 characters)  (line-length)
  49:89     error    line too long (110 > 88 characters)  (line-length)
  53:89     error    line too long (99 > 88 characters)  (line-length)

./postgres/osmap.yaml
  1:2       error    syntax error: found character '%' that cannot start any token
  5:89      error    line too long (115 > 88 characters)  (line-length)

./postgres/osfamilymap.yaml
  1:2       error    syntax error: found character '%' that cannot start any token
  57:89     error    line too long (90 > 88 characters)  (line-length)
  58:89     error    line too long (113 > 88 characters)  (line-length)
  134:89    error    line too long (103 > 88 characters)  (line-length)
  135:89    error    line too long (127 > 88 characters)  (line-length)
  205:89    error    line too long (91 > 88 characters)  (line-length)
  206:89    error    line too long (91 > 88 characters)  (line-length)

pillar.example
  3:1       warning  missing document start "---"  (document-start)
  8:22      warning  truthy value should be one of [false, true]  (truthy)
  13:16     warning  truthy value should be one of [false, true]  (truthy)
  20:4      warning  missing starting space in comment  (comments)
  21:4      warning  missing starting space in comment  (comments)
  42:4      warning  missing starting space in comment  (comments)
  65:4      warning  missing starting space in comment  (comments)
  87:4      error    syntax error: found character '%' that cannot start any token

test/salt/pillar/postgres.sls
  4:2       error    syntax error: found character '%' that cannot start any token
```
2019-08-16 17:00:02 +01:00
Imran Iqbal
72ff82ce75 chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.1)
2019-07-19 12:34:38 +01:00
Imran Iqbal
81165fc405
test(services_spec): remove temporary suse conditional
* `train` gem has been fixed upstream
  - https://github.com/inspec/train/pull/451
  - https://rubygems.org/gems/train/versions/2.1.7
2019-05-31 02:15:57 +01:00
Javier Bértoli
a054cea962
test(command_spec): use cleaner match string using %r 2019-05-31 02:08:10 +01:00
Imran Iqbal
77960641dd
test(locale): improve test using locale en_US.UTF-8 2019-05-31 02:08:08 +01:00
Imran Iqbal
bf6a653e0b
test(inspec): add tests for multiple ports and postgres versions
* Fix `opensuse-leap-15` (enable `suse` and workaround `service` bug)
* Use port `5433` for `debian` and `opensuse-leap-15`
* Use upstream repo version `10` for `debian`
2019-05-06 04:19:24 +01:00
Imran Iqbal
49fdd3333b
test(inspec): enable use_upstream_repo for debian & centos-6
* Add new `centos-6` image
* Install `9.6` from upstream repo
2019-05-06 04:19:24 +01:00
Imran Iqbal
3c53684109
test(inspec): use relaxed command output match for the time being
* Fix the formula and then revert this eventually
2019-05-02 19:08:47 +01:00
Imran Iqbal
58ac122d50
test(inspec): replace serverspec with inspec tests 2019-05-02 19:08:47 +01:00
Imran Iqbal
c64d9e4ab9
ci(pillar_from_files): use custom pillar based on pillar.example
* `pillar.example` will be difficult to get working at this stage
* Ideally, work back towards `pillar.example` in the long run
2019-05-02 19:08:47 +01:00
Denys Havrysh
8c4dc07467 Map Pillar dicts for PostgreSQL entities to the Salt state arguments 2016-09-09 18:02:47 +03:00
Nicole Scherfenberg
2e26b6f606 fixes formula to comply to its spec
The reworks in merge #110 broke this formulas kitchen based specs.
This MR changes a few minor things, mostly  pillar.example and other inconsistent documentations.
Also, the use of db_user for `postgres_tablespace.present` and `postgres_database.present` now fits the states options, as db_password etc can be specified as well.
2016-08-05 20:44:45 +02:00
Javier Bértoli
9719e2354e Allow to specify a tablespace for a database
* Tablespaces have to be created before the databases
* Add pillar examples
* Add tests
2016-06-08 07:36:28 -03:00
Alfredo Palhares
007ed90859 Add ServerSpec test 2015-02-20 17:34:20 +00:00