Skip to content

Commit

Permalink
Merge pull request #831 from amitkarsale/vanagon-237
Browse files Browse the repository at this point in the history
(vanagon-237) Added macos14 ARM platform definition to vanagon
  • Loading branch information
amitkarsale authored Nov 29, 2023
2 parents 664abf5 + 3e713af commit 74db94a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This project adheres to [Semantic Versioning](https://semver.org).
This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com).

## [Unreleased]
### Added
- (VANAGON-237) Add macOS 14 (ARM) platform definition to vanagon

### Added
- (VANAGON-236) Add macOS 14 (Intel) platform definition to vanagon

Expand Down
24 changes: 24 additions & 0 deletions lib/vanagon/platform/defaults/osx-14-arm64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
platform 'osx-14-arm64' do |plat|
plat.brew '/opt/homebrew/bin/brew'
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 'su test -c \'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\''
plat.vmpooler_template 'macos-14-arm64'
end

0 comments on commit 74db94a

Please sign in to comment.