Improve Caddy Salt state: pillarize hostnames, graceful reload, Jinja parameterization #440
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform#440
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Related to
ldraney/pal-e-platform #425(Caddy Salt state for palinks.app reverse proxy, PR #439). Prepares for multi-domain support in #434.Repo
ldraney/pal-e-platformUser Story
As a platform operator
I want the Caddy Salt state to be data-driven and use graceful reloads
So that adding new domains requires only pillar changes and config updates cause zero downtime
Context
PR #439 introduced
salt/states/caddy/init.slsandsalt/states/caddy/Caddyfile.j2for the palinks.app reverse proxy. The implementation works but has three quality improvements needed before adding more domains (#434):tail5b443a.ts.net) is hardcoded in the Caddyfile templateservice.runningwith watch, which does a full Caddy restart instead of graceful reloadFile Targets
Files the agent should modify:
salt/states/caddy/init.sls-- replace service restart withcaddy reload, adjust state structuresalt/states/caddy/Caddyfile.j2-- add Jinja loops over pillar-defined sites, remove hardcoded hostnamesFiles the agent should NOT touch:
Feature Flag
none
Acceptance Criteria
caddy reload --config /etc/caddy/Caddyfilewithonchangesinstead ofservice.runningwith watchpillar['caddy']['sites']to generate site blocksTest Expectations
Constraints
425-caddy-palinks-app)Checklist
Related
pal-e-platform-- infrastructure project