diff --git a/CHANGELOG.md b/CHANGELOG.md index e044d446..8be9530d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](https://semver.org). This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] +### Added +- (VANAGON-236) Add macOS 14 (Intel) platform definition to vanagon ## [0.43.0] - 2023-11-20 ### Added diff --git a/lib/vanagon/platform/defaults/osx-14-x86_64.rb b/lib/vanagon/platform/defaults/osx-14-x86_64.rb new file mode 100644 index 00000000..96fae493 --- /dev/null +++ b/lib/vanagon/platform/defaults/osx-14-x86_64.rb @@ -0,0 +1,23 @@ +platform "osx-14-x86_64" do |plat| + plat.servicetype "launchd" + plat.servicedir "/Library/LaunchDaemons" + plat.codename "sonoma" + + plat.provision_with "export HOMEBREW_NO_EMOJI=true" + plat.provision_with "export HOMEBREW_VERBOSE=true" + plat.provision_with "export HOMEBREW_NO_ANALYTICS=1" + + plat.provision_with "sudo dscl . -create /Users/test" + plat.provision_with "sudo dscl . -create /Users/test UserShell /bin/bash" + plat.provision_with "sudo dscl . -create /Users/test UniqueID 1001" + plat.provision_with "sudo dscl . -create /Users/test PrimaryGroupID 1000" + plat.provision_with "sudo dscl . -create /Users/test NFSHomeDirectory /Users/test" + plat.provision_with "sudo dscl . -passwd /Users/test password" + plat.provision_with "sudo dscl . -merge /Groups/admin GroupMembership test" + plat.provision_with "echo 'test ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/username" + plat.provision_with "mkdir -p /etc/homebrew" + plat.provision_with "cd /etc/homebrew" + plat.provision_with "createhomedir -c -u test" + plat.provision_with %Q(su test -c 'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"') + plat.vmpooler_template "macos-14-x86_64" +end