Alexander Weidinger
809629539f
Fix: require cluster in service restart
2019-01-14 14:59:29 +01:00
N
dddb669f3b
handle selinux enforcing for tablespaces/db
2018-10-18 15:57:29 +01: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
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
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
N
764863fc8e
Split conf/data directories, support
2018-06-18 23:46:29 +01:00
Imran Iqbal
79ab1a2930
Avoid duplicate Jinja conditional block by moving service restart
2018-06-16 13:12:40 +01:00
Imran Iqbal
65683252c4
Use separate state for restarting service re: postgresql.conf
2018-06-12 19:54:42 +01:00
Imran Iqbal
e1a19ed78f
Use top-level postgres.port
and existing states to set port
2018-06-12 10:21:27 +01:00
Imran Iqbal
0d9a5ba239
Append Managed by SaltStack
comment to port
setting
...
* Regex modified:
- Ensure whitespace before comment is maintained
- Consistent with surrounding lines in the file
* Used YAML pipe `>-` due to the colon-space (`: `) in the comment
2018-06-11 02:42:24 +01:00
Imran Iqbal
06e5944133
Allow port
to be configurable
...
Regex:
- `^` Line start
- `#*\s*` Find line even if commented out
- `(port)` 'port' -- capture as backreference `\1`
- `\s*=\s*` Equals sign, whether or not surrounded by whitespace
- `\d{4,5}` Existing port value, expected at 4/5 digits
- `(.*)` Remainder (i.e. comment) -- capture as backreference `\2`
- `$` Line end
2018-06-09 00:21:40 +01:00
Marius Kotsbak
dd526f1de2
Make formula relative to actual directory by using 'tpldir'
2018-05-11 22:35:50 +02:00
Niels Abspoel
3d8d8486ed
Merge pull request #205 from noelmcloughlin/alts
...
Unique state ID and alternative for dev package
2018-05-10 11:31:48 +02:00
noelmcloughlin
3f5c6b5010
Merge branch 'master' into fromrepo
2018-04-23 15:33:49 -06:00
noelmcloughlin
82c2e6ccb6
Merge branch 'master' of https://github.com/saltstack-formulas/postgres-formula into alts
2018-04-22 01:42:12 -06:00
Denys Havrysh
15f3d5f5b4
Fix compatibility with Salt 2018.3.0
2018-04-12 12:35:24 +03:00
noelmcloughlin
a4e184b79c
fromrepo support
2018-04-09 14:59:49 +01:00
noelmcloughlin
cc30fbb903
Updated alternatives solution
2018-03-31 22:51:52 +01:00
Brian Glogower
feb2b386ce
Allow setting dir mode for conf_dir in pillar
...
The current mode of 0775 causes start problems:
`FATAL: data directory "/var/lib/postgresql/9.6/main" has group or world access`
2018-03-31 13:03:16 -07:00
Gilles Dartiguelongue
60cc787b16
Add support for configure pg_ident.conf
2018-03-12 16:40:27 +01:00
noelmcloughlin
a34a4c270c
Homebrew Postgres on MacOS
2018-03-08 21:27:47 +00:00
N
9e6adde7b5
Merge branch 'master' into alternatives
2018-03-06 16:26:08 +00:00
Noel McLoughin
db90890184
Tidyup alternatives system priority hardcoding
2018-02-22 22:07:43 +00:00
Noel McLoughin
1065e1c67c
'env' should be [] not {} in defaults.yml
2018-01-22 14:06:03 +00:00
Denys Havrysh
22446cc53e
Resolve #148 : workaround prereq
causing infinite recursion
2017-02-15 12:05:56 +02:00
Denys Havrysh
79b83fe414
Make local backup of pg_hba.conf
file before modification
2017-01-13 12:09:45 +02:00
Denys Havrysh
69a59b6f63
Skip configuring ACLs in `pg_hba.conf
` if not provided
2017-01-12 11:34:41 +02:00
Denys Havrysh
b7771fec8c
Fix requisite for tablespace directories
2017-01-09 16:01:50 +02:00
Denys Havrysh
783041b8cc
Separate states for baking VM or container image
2017-01-08 17:41:12 +02:00