Commit 2086ad5
committed
fix(ansible): move pgBackRest spool-path off the 10GB root volume
pgBackRest's spool-path was never set explicitly, so it defaulted to
/var/spool/pgbackrest on the AMI's 10GB root volume instead of /data
(the dedicated EBS volume PGDATA lives on).
Sets spool-path = /data/pgbackrest_spool in the ansible-managed
pgbackrest.conf, and updates the AppArmor profile to allow writes
there.
The AMI-bake-time directory-creation task added here does not create
this directory on any live instance's real /data -- that volume is
always a separately-provisioned EBS volume attached at real instance
launch, never part of the AMI image at any Packer stage. So the config
value and the AppArmor grant here are correct and needed groundwork,
but on their own they do not make archive-async safe to enable
anywhere in the fleet. The real fix is a runtime mechanism, tracked at
INDATA-1153.1 parent cbf34f0 commit 2086ad5
4 files changed
Lines changed: 13 additions & 3 deletions
File tree
- ansible
- files
- pgbackrest_config
- postgresql_config
- tasks
- nix/packages/supascan/internal/config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
193 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
0 commit comments