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
This commit is contained in:
Imran Iqbal
2018-06-08 23:40:12 +01:00
parent 800259dffe
commit 06e5944133
4 changed files with 27 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
postgres:
use_upstream_repo: True
version: '9.5'
default_port: 5432
pkg: postgresql
pkgs_extra: []
pkg_client: postgresql-client