Commit 599f034
fix(decdn_node): create the fs cache-origin directory for kind: fs
When `decdn_cache_origin_kind: fs`, the role rendered
`[cache.origin] path = {{ decdn_cache_origin_path }}` into node.toml but
never created that directory. The daemon's `FilesystemOrigin::new` fails
fast if the base path is missing or is not a directory, and the unit is
`Restart=always`/`RestartSec=5`, so a `kind: fs` deploy that didn't
pre-create the dir out-of-band crash-looped on every (re)start.
Add a `when: kind == fs` task that creates `decdn_cache_origin_path`
(owner decdn:decdn, mode 0755) right after the existing data/cache/config
dir task, making a `kind: fs` deploy self-contained. The sharded blob
files under it ({path}/{hex[0..2]}/{hex}) are content, not config, and
stay an operator concern — only the base dir is role-managed.
Test coverage: switch the molecule `default` scenario from an http origin
to an fs origin so the new task actually runs, and assert in verify.yml
that the dir exists as decdn:decdn/0755 plus a node.toml [cache.origin]
content check. http-origin template coverage is retained by the
generate-keystore and slow-readiness scenarios.
Closes #28
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 589b9b1 commit 599f034
3 files changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
99 | 122 | | |
100 | 123 | | |
101 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
208 | 226 | | |
209 | 227 | | |
210 | 228 | | |
| |||
0 commit comments