Compare commits
8 Commits
master
...
highsierra
Author | SHA1 | Date | |
---|---|---|---|
e11713bdbc | |||
58ff1ec9e4 | |||
985f48677b | |||
a058832a65 | |||
27c235a4da | |||
830a14d056 | |||
29ac723e24 | |||
8c33f44848 |
11
cloudinit.sh
Normal file
11
cloudinit.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
## template: jinja
|
||||
#cloud-config
|
||||
|
||||
/usr/bin/dscl . -passwd /Users/johndoe "abcd"
|
||||
|
||||
mkdir -p /Volumes/cidata
|
||||
|
||||
mount -t cd9660 -o nodev,nosuid,noowners /dev/disk1 /Volumes/cidata
|
||||
bash /Volumes/cidata/user-data
|
||||
umount /Volumes/cidata
|
||||
rmdir -p /Volumes/cidata
|
10
installer.sh
Normal file
10
installer.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
# echo "--cacert /usr/local/share/ca/cacert.pem" > ~/.curlrc
|
||||
|
||||
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
|
||||
# brew install ansible
|
||||
|
||||
python get-pip.py pip==20.1.1
|
103
local.yml
103
local.yml
|
@ -1,10 +1,101 @@
|
|||
---
|
||||
- host: localhost
|
||||
|
||||
- name: Testing
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
become: yes
|
||||
|
||||
vars:
|
||||
bbpassword: $(openssl rand -base64 12)
|
||||
osxpassword: $(openssl rand -base64 12)
|
||||
|
||||
tasks:
|
||||
- name: install htop
|
||||
package:
|
||||
name:
|
||||
- git
|
||||
- name: Execute Create User
|
||||
pacman: update_cache=yes
|
||||
shell: sudo dsc1 . create Users/buildbot
|
||||
shell: sudo dscl . -create /Users/buildbot UserShell /bin/bash
|
||||
shell: sudo dscl . -create /Users/buildbot RealName Buildbot
|
||||
shell: sudo dscl . -create /Users/buildbot UniqueID 510
|
||||
shell: sudo dscl . -create /Users/buildbot PrimaryGroupID 80
|
||||
shell: sudo dscl . -create /Users/buildbot NFSHomeDirectory /var/lib/buildbot
|
||||
shell: sudo dscl . -append /Groups/admin GroupMembership buildbot
|
||||
shell: sudo createhomedir -u buildbot
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Mac user commands
|
||||
command: sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUserList -array -add buildbot
|
||||
command: sudo /usr/bin/dscl . -passwd /Users/buildbot "${osxpassword}"
|
||||
|
||||
command: sudo mkdir -p /var/lib/buildbot/workers
|
||||
command: sudo chown -R buildbot /var/lib/buildbot
|
||||
command: echo "User password = ${osxpassword}"
|
||||
command: sudo -u buildbot -H /usr/local/sbin/setup-buildbot2.sh "$username" "$bbpassword"
|
||||
pacman: update_cache=yes
|
||||
|
||||
tasks:
|
||||
- name: Shell command
|
||||
shell: echo Hello
|
||||
shell: echo "Buildbot password = ${bbpassword}"
|
||||
shell: echo "User password = ${osxpassword}"
|
||||
pacman: update_cache=yes
|
||||
|
||||
|
||||
|
||||
# osxsetup2
|
||||
tasks:
|
||||
- name: osxsetup2 start
|
||||
shell: echo "--cacert /usr/local/share/ca/cacert.pem" > ~/.curlrc
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Install homebrew
|
||||
command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
|
||||
|
||||
tasks:
|
||||
- name: chown Buildbot
|
||||
chown:
|
||||
src: buildbot
|
||||
dest: /var/lib/buildbot
|
||||
|
||||
|
||||
|
||||
tasks:
|
||||
- name: chown Buildbot
|
||||
command: sudo chown -R buildbot /var/lib/buildbot
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Install Openssl
|
||||
command: brew install openssl@1.1
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Install git
|
||||
command: brew install git
|
||||
|
||||
|
||||
tasks:
|
||||
- name: chown Buildbot
|
||||
command: sudo chown -R buildbot /var/lib/buildbot
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Install python3
|
||||
command: brew install python@3
|
||||
|
||||
|
||||
tasks:
|
||||
- name: chown Buildbot
|
||||
command: sudo chown -R buildbot /var/lib/buildbot
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Install buildbot-worker
|
||||
command: pip3 install buildbot-worker
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Run Buildbot
|
||||
command: buildbot-worker create-worker /var/lib/buildbot/workers/default dumb.bitmessage.at "${1}" "${2}"
|
||||
|
|
20
net.sourceforge.cloudinit.plist
Normal file
20
net.sourceforge.cloudinit.plist
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin</string>
|
||||
</dict>
|
||||
<key>Label</key>
|
||||
<string>net.sourceforge.cloudinit.bash</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/bin/bash</string>
|
||||
<string>/usr/local/bin/cloudinit.sh</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
Loading…
Reference in New Issue
Block a user