mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 01:30:25 +00:00
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
This commit is contained in:
parent
06e5944133
commit
0d9a5ba239
1 changed files with 3 additions and 2 deletions
|
@ -198,8 +198,9 @@ postgresql-running:
|
|||
postgresql-port:
|
||||
file.replace:
|
||||
- name: {{ postgres.conf_dir }}/postgresql.conf
|
||||
- pattern: ^#*\s*(port)\s*=\s*\d{4,5}(.*)$
|
||||
- repl: \1 = {{ postgres.port }}\2
|
||||
- pattern: ^#*\s*(port)\s*=\s*\d{4,5}(\s*).*$
|
||||
- repl: >-
|
||||
\1 = {{ postgres.port }}\2# Managed by SaltStack: please do not edit
|
||||
- flags: 8 # ['MULTILINE']
|
||||
- show_changes: True
|
||||
- append_if_not_found: True
|
||||
|
|
Loading…
Add table
Reference in a new issue