A service.forge profile: Forgejo in fresh mode over plain http #12
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/profiles#12
Loading…
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?
The example profiles gain a
service.forgedefinition: Forgejo in fresh-install mode over plain http, which is what a forge on a private network needs. This is the behaviour half of the template'sforgemachine.Primary goals:
service.forgedefinition — composes the framework's Forgejo module through theallodModulesseam and setsmode = "fresh"andtls = false, the two switches the module added for exactly this case.sshPort = 2222for the clone daemon andadminSshPort = 22, so the hypervisor's provisioning andallodscripts reach the machine on the port they already use, and clone URLs carry the port the dev VM's identity already renders.Current state and specifics
profileDefinitionsis a literal attrset keyed by archetype;servicebecomes its fourth key alongsidedev,privacyandhypervisor. Archetype-name validity is asserted by the framework, not here.This repo declares only
nixpkgsas an input and must keep it that way, so the Forgejo module arrives asallodModules.forgejoin the module's arguments rather than as a flake input. That seam is the subject of the companionallod/archetypesissue and must land first.Two facts measured while the module was built:
adminis a reserved Forgejo username, so the human account the bootstrap later creates isoperator; and the module pinsservices.forgejo.packageto the channel's current release withmkDefault, so this definition does not need to name a package.Scope
In: the
service.forgedefinition and the README's description of it. Out: the machine facts (allod/inventory), the identity and host key (allod/secrets), theallodModulesseam (allod/archetypes), and the accounts, org, repositories and token thatforge-bootstrapcreates (allod/nexus) — a profile describes the machine, not its contents.Part of allod/strategy#65
Landed on master in
15b0a32(Add service.forge: Forgejo in fresh mode over plain http). Closing as part of allod/strategy#65 housekeeping.