Skip to content

macOS manifest: arch-aware Homebrew prefix + variable interpolation support - #57

Merged
darkn3rd merged 12 commits into
masterfrom
mac_update
Sep 14, 2026
Merged

darkn3rd merged 12 commits into
masterfrom
mac_update

Conversation

@darkn3rd

@darkn3rd darkn3rd commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Summary

Provisioning Manifest features (scriptbox/config)

  • Add support to use ERB evaluation in variables: block (resolve_order.rb) so that variables can be referenced throughout rest of manifest with <%= $name %>. Useful for detecting platform, e.g. x86_64 vs arm64, so that variable brew_prefix can be set dynamically.
  • macOS manifest:
    • brew_prefix picks /usr/local (Intel) vs /opt/homebrew (Apple Silicon) via RbConfig::CONFIG['host_cpu'], used consistently across Homebrew bootstrap,
    • PATH appends (gawk, grep, bc, gnu-getopt, ruby4), and gem setup
    • Overhaul scriptbox/config/macos.yml: pinned tool versions (python3, ruby4, php, tcl, go), GNU grep/gawk setup, CPAN local::lib setup, Java 17, Wine + winetricks + coreutils for Windows scripting.
    • Support PowerShell cask via darkn3rd/tools/powershell-pkg cask,
    • CLT (Xcode Command Line Tools) install routine cleanup
  • Add sudo: support for appends: entries (needed for /etc/shells on macOS)
  • Re-add pkgbox/tap/darkn3rd/homebrew-tools submodule, bumped to latest
  • Corresponding updates to the Ansible, Chef, and Puppet generators for the new interpolation/variable behavior

Test plan

  • Generated and ran the macOS install script on an Intel VM
  • Generated and ran the macOS install script on an Apple Silicon VM
  • brew_prefix resolves correctly to /usr/local and /opt/homebrew respectively on each

The prior "remove redundant repo content" commit had only removed
the gitlink, leaving .gitmodules and .git/config with an orphaned
submodule entry pointing at nothing. Cleaned that up (deinit,
removed cached .git/modules data, dropped the stale .gitmodules
entry) and re-added the submodule properly, same commit (f65527f)
as before.
@darkn3rd
darkn3rd merged commit c431006 into master Sep 14, 2026
22 checks passed
@darkn3rd
darkn3rd deleted the mac_update branch September 14, 2026 05:39
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