Skip to content

SuperScript/rocinante-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

rocinante-templates

Installing a new system

OS Install

  • Install from USB stick.
  • Install base system only, no source, no ports.
  • Install Auto (ZFS).
  • Encrypt Disks.
  • Set swap size.
  • Encrypt swap.
  • Stripe.
  • Yes WIFI.
  • Yes IPv4, No IPv6.
  • Resolvers 1.1.1.1, 8.8.8.8.
  • Clock in UTC.
  • Start at boot: sshd, ntpd, ntpd_sync_on_start, dumpdev
  • User web.
  • Open shell
  • freebsd-update fetch install --not-running-from-cron

Rocinante Bootstrap

Rocinante pkg

These steps build private packages which can then by pushed to a github repo for use in setting up other hosts with the same OS release.

  • mkdir -p /usr/local/etc/ssl/keys && chmod 0700 /usr/local/etc/ssl/keys
  • Copy /usr/local/etc/ssl/keys/poudriere.key to the new poudriere host
  • mkdir -p /usr/local/etc/ssl/certs
  • Copy /usr/local/etc/ssl/certs/poudriere.cert to the new poudriere host
  • Build overlay-ports: rocinante template superscript/rocinante-templates/setup --arg REPO=git@github.com:superscript/rocinante-private --arg TEMPLATE=superscript/rocinante-private/pkg
  • Install pw311-awscli
  • Create aws user pkg-HOSTNAME in group pkg-server
  • Add AWS IAM user and add to pkg-server group
  • Wait for AWS perms to update
  • cd /usr/local/pkg/poudriere-pkg/
  • Clone poudriere-pkg repo to /usr/local/pkg/poudriere-pkg
  • In the new repo, make sync FIXME: fill in details

To update overlay-ports:

  • basti start pkg
  • basti cmd pkg poudriere ports -u -p overlay_ports_public
  • basti stop pkg

Rocinante devbox

It's unclear why we need to separate these next two steps, but it is empirically necessary.

  • Set up a devbox host: rocinante template superscript/rocinante-templates/setup --arg REPO=git@github.com:superscript/rocinante-private --arg TEMPLATE='superscript/rocinante-private/pkg-client --arg PKG_PORTS=2024Q3'
  • Set up a devbox host: rocinante template superscript/rocinante-templates/setup --arg REPO=git@github.com:superscript/rocinante-private --arg TEMPLATE='superscript/rocinante-private/devbox --arg EMAIL=web@superscript.com'
  • Register user pubkeys rocinante@USER@$(hostname -s) as user in github.
  • Configure users: rocinante template superscript/rocinante-private/users --arg OP=config

Manual config

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages