Commit Graph

280 Commits

Author SHA1 Message Date
Imran Iqbal
5160365a71 chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.6.0)
2019-08-17 16:06:31 +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
84eef0cf07 chore: use semantic-release cross-formula standard structure
* Automated using `ssf-formula` (v0.1.0-rc.2)
2019-07-25 09:36:51 +01:00
John Keates
904ba271ca feat(debian): add buster support 2019-07-24 22:12:26 +02:00
John Keates
e5700f48c5 Update codenamemap.yaml 2019-07-24 20:14:35 +02: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
julien levieil
8745365d71 fix(freebsd-user): fix FreeBSD daemon's user for PostgreSQL >= 9.6
For postgresql 9.6 and newer, the default unix user used by postgresql
daemon has changed to 'postgres', and the default data directory is:
/var/db/postgres/data96

Closes #263
2019-05-16 09:35:35 +11:00
Imran Iqbal
65519cb06f Merge pull request #264 from sticky-note/master
fix(sysrc-svc): workaround *BSD minion indefinitely hanging on start
2019-05-12 23:24:58 +01:00
sam
0aa8b4a048 fix(sysrc-svc): workaround *BSD minion indefinitely hanging on start
Check https://github.com/saltstack/salt/issues/44848 for further details
2019-05-13 08:44:52 +11:00
Imran Iqbal
7d3aa19b45 feat: implement semantic-release 2019-05-06 04:19:24 +01:00
N
f3d8830177 Implement review comment (conditional) 2019-04-15 12:58:00 +01:00
N
080bff7b3d Always retry alternatives.install state 2019-04-15 00:26:32 +01:00
Rob McBroom
8d9649452c fix the formatting of package lists
Continuing what was done in #254
2019-03-14 12:08:33 -04:00
Imran Iqbal
95bf214486 fix(server/init): use |json to resolve 2019.2 breaking change
* Close #253:
  - Already tested there
2019-03-08 09:23:39 +00:00
N
c673bdcfdd Only download archive if necessary 2019-01-27 20:51:01 +00:00
Imran Iqbal
02cde57804 Maintain consistent use of tpldir (continues from #211) 2019-01-24 13:20:36 +00:00
Imran Iqbal
36f449dc7a Fix mapping list unpacking in .format() in pg_ident j2 template 2019-01-17 16:29:44 +00:00
Imran Iqbal
0023ac30e3 Move module service.restart to EOF and convert to service.reload
* Simplify server restart/reload logic with respect to `MacOS`
* Discussion in GitHub PR #250
2019-01-17 10:41:28 +00:00
Rob Ruana
cce4cbf992 Fix #236: Reload postgres service after ACL changes in pg_hba.conf
* https://github.com/saltstack-formulas/postgres-formula/pull/216/commits/ef87358
2019-01-16 04:39:30 +00:00
Alexander Weidinger
809629539f Fix: require cluster in service restart 2019-01-14 14:59:29 +01:00
Alexander Weidinger
5931800719 Fix: use correct directories in FreeBSD 2019-01-14 14:59:21 +01:00
Alexander Weidinger
8a5353d693 Fix: use correct user and group to run initdb in FreeBSD 2019-01-14 14:58:58 +01:00
Niels Abspoel
7cb86d1183 Merge pull request #248 from noelmcloughlin/fixes
selinux fcontext for postgres_database.present
2018-10-18 21:42:49 +02:00
N
dddb669f3b handle selinux enforcing for tablespaces/db 2018-10-18 15:57:29 +01:00
Javier Bértoli
656dc4b76d Merge pull request #244 from bebosudo/bebosudo_whitespaces_hba
Edit pg_hba template to work with jinja 'trim whitespaces' option on salt master
2018-10-17 11:13:26 -03:00
Niels Abspoel
5108b88a8b Merge pull request #245 from gilou/optional_prepare
Make the preparation/initdb optional
2018-10-15 19:38:11 +02:00
N
a521af36ad Fix 'requisites were not found' issue 2018-10-15 15:51:23 +01:00
Gilou
5c094a05ca Rename setting to add_profile, add an example to explain it 2018-10-11 02:37:51 +02:00
Gilou
728dbb64e5 add warning in sh file 2018-10-10 18:04:35 +02:00
Gilou
f2c13abe9c add a profile.d script to add bin_dir to path 2018-10-10 18:04:35 +02:00
Gilou
187c86fe97 set dependencies accordingly: if asked to prepare, depend on the cmd being run, otherwise, only depend on the file 2018-10-09 20:02:22 +02:00
Gilou
6de97ce0f1 only run initdb/prepare cmd if asked for it, and let it run by default. 2018-10-09 19:48:47 +02:00
Alberto Chiusole
a302d61059 Edit pg_hba template to work with jinja 'trim whitespaces' option on the master. 2018-10-03 23:33:06 +02:00
Alexander Weidinger
2a330ade40 FreeBSD: use correct client package 2018-10-03 21:51:00 +02:00
N
e67e2ad8b7 fix macos states 2018-08-30 22:42:44 +01:00
N
110bfb15ca fix dirpath on macos 2018-08-30 22:27:05 +01:00
N
3df515a036 fix rendering error 2018-08-23 10:31:09 +01:00
Niels Abspoel
8dfba2abdc Merge pull request #223 from jdsieci/fix_per_database_extensions_schemas
Fixed problems with per database extensions and schemas #140
2018-07-29 16:56:36 +02:00
N
fdf1bdc99d move dev.sls to dev/init.sls 2018-07-25 22:31:35 +01:00
N
9d2f69a865 Enhance remove S/W support 2018-07-25 00:18:42 +01:00
Niels Abspoel
332fe7b2b5 Merge pull request #232 from myii/PR_cluster
Allow configuration of cluster `name`, `locale` & `encoding`
2018-06-28 09:15:33 +02:00
Benjamin Neff
62675f2777 Don't set modes with every run
* `postgresql-cluster-prepared`: `dir_mode` is set in `postgresql-config-dir`
* `postgresql-config-dir`: `file_mode` for some files is set to 600, and I think all other files are good with default mode. So don't touch any files, only change dirs.
2018-06-25 01:22:15 +02:00
Imran Iqbal
f24b962ebc Move concatenation of cluster preparation command to map.jinja 2018-06-24 16:18:21 +01:00
Imran Iqbal
944a077e56 Fix pillar.get for MacOS user/group early lookup 2018-06-21 09:41:05 +01:00
Imran Iqbal
9ce98916be Remove trailing slash so pkgrepo.absent works for Apt 2018-06-21 09:41:05 +01:00
Imran Iqbal
34aae257e5 Allow configuration of cluster name, locale & encoding 2018-06-21 08:30:08 +01:00
Imran Iqbal
67d6b8a545 Ensure service starts after cluster created 2018-06-21 08:06:08 +01:00
Imran Iqbal
c3a32eb0aa Fix conf_dir => data_dir required for preparing cluster 2018-06-21 06:19:21 +01:00
Niels Abspoel
9865664963 Merge pull request #228 from noelmcloughlin/confdata1
Allow conf/data directory separation
2018-06-20 10:46:26 +02:00
Jerzy Drozdz
6d895423c1 Added support for explicit state names in format_state macro 2018-06-19 20:52:25 +02:00