Repository navigation
Spec 027: Deploy, rollback, restart and health on a team's own Ansible repository - #623
Open
shipmill-romamo[bot] wants to merge 1 commit into
Open
shipmill-romamo[bot] wants to merge 1 commit into
shipmill-romamo[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
@romamo Decision needed: approve spec 027 (deploy, rollback, restart and health on a team's Ansible repository, #618) with every recommendation in its "Decisions for you"?
Reply here with a number or your own answer; shipmill takes this up on the tick after your reply. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec for #618
Plan
docs/specs/027-brownfield-deploy.mdstatus: approved; its build issues are filed under the feature issue once it mergesspecs.py checkpasses; each acceptance criterion names the exit code, output or file a test checksDecisions for you
cloudfall_applicationsandcloudfall_components, each a map of name to the same fields anApplicationorComponentfile holds today. They sit besidecloudfall_baselinesand are read the same way. A component lists the inventory hosts it runs on indeployment.serverscloudfallblock, ascomponents: [...], as the brownfield design sketched. Ansible replaces a wholecloudfallmap that is set at both group and host level, so a group-level list would be lost on any host with its own block. TheServerschema would also have to accept new keysapplications/andcomponents/files in the team's repository. That is a Cloudfall project inside theirs, the second copy the brownfield design rules outinventory show,auditandobservealready use. Pass--inventory, or run the command in a directory whoseansible.cfgnames an inventory and that is no project.mcp serve --repositoryfixes the repository when the server starts. A directory that is both a project and a repository is read as the project--repositoryflag and aCLOUDFALL_REPOSITORYvariable to these commands. This is a second way to say the same thing, and the read-only commands don't have itrecord/, release approvals indecisions/releases/, both committed. Artifacts, the rendered inventory, raw output and locks go intmp/, which the team ignores. The repository's operation decisions already live indecisions/andtmp/the same way.cloudfall/directory in their repository. It is tidier for them, but it gives a second layout to every reader and towhy~/.local/share/cloudfall. The record would then not survive losing the management host, which D-16 exists to preventansible.cfg, with Cloudfall's roles added to the roles path ahead of theirs. Their SSH key, user,become, vault and jump-host settings apply unchangedansible.cfg, as in a project. Only the host's address, user and port carry over, so a team whose key orbecomesettings live in theiransible.cfgorgroup_varscan't connectmcp serve --repositorydeploy,rollback,restart,healthandbuild_artifactas tools.healthandbuild_artifactrun on a call. A confirmeddeploy,rollbackorrestartnever runs by itself: it records a proposal, and a person runs it withcloudfall operator approveat a terminal. This is S-018's gate. A repository can't declare anOperatorPolicyyet, so no call self-confirms there. It keeps the repository server's promise that no tool changes a host without a person--inventoryflag ondeploy,rollback,restart,health,release approve,operator approve,cloudfall-engine inventory renderandcloudfall-engine artifact buildansible.cfgplus rendered inventory" run as well, so both share one path. That would change how every project's run connects, andcloudfall initemitting a plain Ansible inventory (left out of Plan for G-4: Works on the team's own Ansible inventory and config, not only on one Cloudfall set up #188) is the place for itNo item departs from a
D-nrule. Item 5 widens the repository server's tool list, which S-018-18 had pinned. Items 1 and 6 add contract (two variables and one optional flag) without changing what a project does today.🤖 Generated with Claude Code