Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7d4420b

Browse files
committed
Remove all symlinks to meet pgfarm requirments.
Note that cp commands which replaced them are not tested.
1 parent 1910fc2 commit 7d4420b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

devops/send_config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
---
1010
- hosts: shardlord
1111
tasks:
12+
# jinja2 won't work with outside files, so first copy them to templates/ dir,
13+
# oh my... see https://github.com/ansible/ansible/issues/7106
14+
# I used to create a bunch of (possibly dangled) symlinks, but pgfarm doesn't
15+
# like that.
16+
- name: cp configs into template dir
17+
local_action: >
18+
shell cp ../postgresql.conf.common templates/postgresql.conf.common 2>/dev/null || : ;
19+
cp ../postgresql.conf.lord templates/postgresql.conf.lord 2>/dev/null || : ;
20+
cp ../postgresql.conf.worker templates/postgresql.conf.worker 2>/dev/null || : ;
21+
22+
cp postgresql.conf.common templates/postgresql.conf.devops.common 2>/dev/null || : ;
23+
cp postgresql.conf.lord templates/postgresql.conf.devops.lord 2>/dev/null || : ;
24+
cp postgresql.conf.worker templates/postgresql.conf.devops.worker 2>/dev/null || : ;
25+
run_once: true
26+
1227
- name: copy postgresql.conf to shardlord
1328
template:
1429
src=templates/postgresql.conf.lord.j2

devops/templates/postgresql.conf.common

Lines changed: 0 additions & 1 deletion
This file was deleted.

devops/templates/postgresql.conf.lord

Lines changed: 0 additions & 1 deletion
This file was deleted.

devops/templates/postgresql.conf.worker

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)