Skip to content

Pegasus sweep 6/6: remove pegasus entries from chef crontab and VPC template - #74758

Open
stephenliang wants to merge 1 commit into
stephen/pegasus-sweep-5-refsfrom
stephen/pegasus-sweep-6-deploy
Open

Pegasus sweep 6/6: remove pegasus entries from chef crontab and VPC template#74758
stephenliang wants to merge 1 commit into
stephen/pegasus-sweep-5-refsfrom
stephen/pegasus-sweep-6-deploy

Conversation

@stephenliang

@stephenliang stephenliang commented Aug 20, 2026

Copy link
Copy Markdown
Member

Two files with a real deploy surface still reference pegasus. This PR is the smallest slice of the sweep on purpose: ~20 lines, isolated so an infra reviewer can look at exactly this and nothing else.

cookbooks/cdo-apps/templates/default/crontab.erb defines a pegasus_dir helper that no cron entry in the template body calls; every entry uses deploy_dir or dashboard_dir. The helper is template-local, so no other recipe can reach it. This PR deletes the definition.

aws/cloudformation/vpc.yml.erb carries three "Pegasus Puma" ingress/egress rules for port 9001 (ALB egress, legacy ELB egress, frontend ingress). Nothing listens on 9001: no nginx or puma config binds it, pegasus_port has no configured value in any environment, and the pegasus systemd unit is torn down by chef. This PR deletes the three rules.

Part 6/6 of the pegasus dead-code sweep. Supersedes draft #74751.

Links

Testing story

crontab.erb: rendered locally under seven node/env combinations (staging, staging-frontend, test, levelbuilder, production-daemon, production-frontend, adhoc); output contains no pegasus reference, and calling pegasus_dir after evaluating the template raises NoMethodError, which proves the helper is gone and unused. vpc.yml.erb: rendered through the repo's real renderer (Cdo::CloudFormation::StackTemplate, the same construction lib/rake/stack.rake uses) and YAML-parsed; all three security groups keep their remaining rules (ports 22, 80, 443, 9000) and no FromPort/ToPort of 9001 remains anywhere in the 55 rendered resources.

Deployment notes

The chef template change takes effect on the next converge; rendered cron entries are identical. The security-group change is inert until the next VPC stack update — no separate deploy step here, but the next stack apply will show three rule removals in its change set. Nothing binds port 9001, so removing the rules cannot cut off live traffic.

@stephenliang stephenliang changed the title chore(infra): remove pegasus entries from the chef crontab and the VPC template Pegasus sweep 6/6: remove pegasus entries from chef crontab and VPC template Aug 20, 2026
@stephenliang
stephenliang marked this pull request as ready for review August 20, 2026 16:44
@stephenliang
stephenliang requested a review from a team as a code owner August 20, 2026 16:44
stephenliang added a commit that referenced this pull request Aug 20, 2026
All 31 tasks are done and shipped as a six-PR stack on staging (#74753-#74758, stack #74759; supersedes draft #74751). The implementation notes record the scope extensions found during verification: two k8s suppliers of pegasus_honeybadger_api_key, the dockerignore generated from aws/.gitignore, one co-deleted orphan, and the finding that the whole ServerTools class is dead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@stephenliang
stephenliang force-pushed the stephen/pegasus-sweep-6-deploy branch from 5ee2d79 to 5dea144 Compare August 20, 2026 21:01
@stephenliang
stephenliang force-pushed the stephen/pegasus-sweep-6-deploy branch from 5dea144 to a379158 Compare August 21, 2026 16:29
…C template

Two files with a deploy surface still reference pegasus.

cookbooks/cdo-apps/templates/default/crontab.erb defines a pegasus_dir helper that no cron entry in the template calls. Delete the definition. The template renders on chef converge; a local render under seven node/env combinations produces identical cron entries with no pegasus reference.

aws/cloudformation/vpc.yml.erb carries three "Pegasus Puma" ingress/egress rules for port 9001. Nothing listens on 9001; no nginx or puma config binds it, and pegasus_port has no configured value. Delete the three rules. This edit is inert until the next VPC stack update; the rendered template still parses, and all three security groups keep their remaining rules (ports 22, 80, 443, 9000).

Part 6/6 of the pegasus dead-code sweep (openspec change pegasus-dead-code-sweep, plan in #73702).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@stephenliang
stephenliang force-pushed the stephen/pegasus-sweep-6-deploy branch from a379158 to 6f6a02c Compare August 21, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant