Skip to content

Commit 0d9a5ba

Browse files
committed
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
1 parent 06e5944 commit 0d9a5ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

postgres/server/init.sls

+3-2
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ postgresql-running:
198198
postgresql-port:
199199
file.replace:
200200
- name: {{ postgres.conf_dir }}/postgresql.conf
201-
- pattern: ^#*\s*(port)\s*=\s*\d{4,5}(.*)$
202-
- repl: \1 = {{ postgres.port }}\2
201+
- pattern: ^#*\s*(port)\s*=\s*\d{4,5}(\s*).*$
202+
- repl: >-
203+
\1 = {{ postgres.port }}\2# Managed by SaltStack: please do not edit
203204
- flags: 8 # ['MULTILINE']
204205
- show_changes: True
205206
- append_if_not_found: True

0 commit comments

Comments
 (0)