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:
@@ -198,8 +198,9 @@ postgresql-running:
|
|||||||
postgresql-port:
|
postgresql-port:
|
||||||
file.replace:
|
file.replace:
|
||||||
- name: {{ postgres.conf_dir }}/postgresql.conf
|
- name: {{ postgres.conf_dir }}/postgresql.conf
|
||||||
- pattern: ^#*\s*(port)\s*=\s*\d{4,5}(.*)$
|
- pattern: ^#*\s*(port)\s*=\s*\d{4,5}(\s*).*$
|
||||||
- repl: \1 = {{ postgres.port }}\2
|
- repl: >-
|
||||||
|
\1 = {{ postgres.port }}\2# Managed by SaltStack: please do not edit
|
||||||
- flags: 8 # ['MULTILINE']
|
- flags: 8 # ['MULTILINE']
|
||||||
- show_changes: True
|
- show_changes: True
|
||||||
- append_if_not_found: True
|
- append_if_not_found: True
|
||||||
|
|||||||
Reference in New Issue
Block a user