24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
|
## template: jinja
|
||
|
#cloud-config
|
||
|
|
||
|
runcmd:
|
||
|
- dscl . -create /Users/buildbot
|
||
|
- dscl . -create /Users/buildbot UserShell /bin/bash
|
||
|
- dscl . -create /Users/buildbot RealName Buildbot
|
||
|
- dscl . -create /Users/buildbot UniqueID 510
|
||
|
- dscl . -create /Users/buildbot PrimaryGroupID 80
|
||
|
- dscl . -create /Users/buildbot NFSHomeDirectory /var/lib/buildbot
|
||
|
- dscl . -append /Groups/admin GroupMembership buildbot
|
||
|
- createhomedir -u buildbot
|
||
|
- defaults write /Library/Preferences/com.apple.loginwindow HiddenUserList -array -add buildbot
|
||
|
- mkdir -p /var/lib/buildbot/workers
|
||
|
- chown -R buildbot /var/lib/buildbot
|
||
|
- echo "buildbot ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/buildbot
|
||
|
- sudo -u buildbot /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||
|
- sudo -u buildbot brew install openssl@1.1
|
||
|
- sudo -u buildbot brew install git
|
||
|
- sudo -u buildbot brew install python@3
|
||
|
- sudo -u buildbot pip3 install buildbot-worker
|
||
|
- sudo -u buildbot buildbot-worker create-worker /var/lib/buildbot/workers/d efault 192.168.43.1 {{buildbot_username}} {{buildbot_password}}
|
||
|
- launchctl kickstart -k net.sourceforge.buildbot
|