forked from puppetlabs/puppet-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosx-10.15-x86_64.rb
21 lines (21 loc) · 1.22 KB
/
osx-10.15-x86_64.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
platform 'osx-10.15-x86_64' do |plat|
plat.servicetype 'launchd'
plat.servicedir '/Library/LaunchDaemons'
plat.codename "catalina"
plat.provision_with 'export HOMEBREW_NO_EMOJI=true'
plat.provision_with 'export HOMEBREW_VERBOSE=true'
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 'su test -c \'echo | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"\''
plat.provision_with 'sudo chown -R test:admin /Users/test/'
plat.vmpooler_template 'osx-1015-x86_64'
plat.output_dir File.join('apple', '10.15', 'puppet7', 'x86_64')
end