commit
4dc938f1fa
66
bionic.user
Normal file
66
bionic.user
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
## template: jinja
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
# packages
|
||||||
|
package_update: true
|
||||||
|
package_upgrade: false
|
||||||
|
packages:
|
||||||
|
- buildbot-slave
|
||||||
|
|
||||||
|
# apt
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
deadsnakes:
|
||||||
|
source: 'ppa:deadsnakes/ppa'
|
||||||
|
|
||||||
|
# root
|
||||||
|
disable_root: false
|
||||||
|
ssh_deletekeys: true
|
||||||
|
ssh_pwauth: false
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrfim4EMF7FzAnQF51frpsPgN\
|
||||||
|
JxfkzvBEC80wgwwP0AzD2iFPS57a6sXbie+sX7ALX89gmRwFtrKOwGYRYoQfU6dA\
|
||||||
|
hPirbpKY4BcTQx8N31fazceVJL0Y1kqSngNjYMbo1q0L5dgLBtPoVGcnriFAVGLg\
|
||||||
|
1+p9FIJTDK4rbwnYyDJyjruSAfnqVaWmqlMNAZNhqxOikBOh5M+3qPj0wmSKOE1r\
|
||||||
|
oE4HmQKUl62UjDWTkLLNx5u75QywQz+r8S0QNkSu/0iaeUdgkv3p0SsU4X5dmwuZ\
|
||||||
|
dbySMWkqy0zUCky2+qDqxzN6wHgnePZcedSobsIpxwDK0IrHpbaaBzVNn1uh shu\
|
||||||
|
rdeek@nitrokey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1ADz4g7BkLoq9CEffl7jxp4Ms\
|
||||||
|
Brtv12rYpskUMV2HKH48Uwue/yjqvwxaRk4Nd0TG2fQisqsB3GYLRe+6R00zbn2k\
|
||||||
|
A5k49gQEt6EnVVlsTWSp6iutCi8CEOSxFew/r//NOJbKQPWN2yCh8TQowks+lM/z\
|
||||||
|
wlFhzfoqDjgMCU13IW/O9RphnMACnx1o/EvUeoozcCMbAzJOq4I/YOSJwavuTUUC\
|
||||||
|
lnD4tyPs1HyYVcw+4Bti1QERkE+tbbgXUAy7WvxXpEflfenHHIAnjqUCW3LUJ6wT\
|
||||||
|
roq55FQ1RT7WE+XddL5OI+o4vbQVG8cbYXwCk6/m+P051v9PfnyecI6qj8wd shu\
|
||||||
|
rdeek@yubikey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Pebz7cNpL/Hikzfwzdnujcd1\
|
||||||
|
BWw4D4e1OXQaoCGcq2/gL+Wym8InL5qZ5hOgaF8lRVX5ys7m75uOyg8LOIRu0A27\
|
||||||
|
TzWzf9brV8TF5rsIhHYSK0CAA81G5NqOQgP3b7SANcs3PEWtxz+OeqFo7dcsQZij\
|
||||||
|
czRNunM73CBsTFZQCmNE2ZBh2QaQ1d/1lmYTqGlJ8DJrqeXXVc3S1Jln2nZ49XQM\
|
||||||
|
qdG49KvU66Xhd8kaukucDBl8iNLWpQ+N9Ao1SOnNlJVpLi6XUy9Hx3X3wVbrLQaH\
|
||||||
|
slIG6+AeZGpO/l3gKrQM3fjM2H+w9ow1rWcMdHgjxWZUryE7K1vzbpm4vNIf shu\
|
||||||
|
rdeek@brusli"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4LMmfil++N1tuQE+vz+n4KlKF\
|
||||||
|
+C8LJ08Tui5evBINMinIWsNYNXHo4zQ3jioUaiPUbMfApaexdL/6d9c69maIJr+I\
|
||||||
|
o3JJfgbYFWiFVyWIdtr4Lapv3kyGIusVp5hm5fK1ZM7dOdWStWqdZSHJIuQdv3Zg\
|
||||||
|
CJkZHFSiFnL7lxTvtIelVjBvsyROq+kH6YOdcagUY/RRzPaL58Ul0r3JcEVhhnKr\
|
||||||
|
dR21shc/6GI3irsn4Up3Bf4jRnrwiRuBJQZXMLSsn5BTMPY5HLptIlndizb5Smub\
|
||||||
|
rwErhe5OaVU8S+ZzzkWu9SfZFxHmkuhVfSnEs5GOUABrZWlleLn/OvbZcK2V shu\
|
||||||
|
rdeek@whisper.ssh"
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: buildbot
|
||||||
|
shell: /bin/bash
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
||||||
|
# system settings
|
||||||
|
timezone: Europe/Vienna
|
||||||
|
hostname: {{hostname}}
|
||||||
|
fqdn: {{hostname}}.{{guest}}.homedevops
|
||||||
|
|
||||||
|
# post boot
|
||||||
|
runcmd:
|
||||||
|
- [ sudo, -u, buildbot, --, buildbot-worker, create-worker,
|
||||||
|
/var/lib/buildbot/workers/default, 192.168.43.1,
|
||||||
|
{{buildbot_username}}, {{buildbot_password}} ]
|
||||||
|
- [ systemctl, enable, buildbot-worker@default.service ]
|
||||||
|
- [ systemctl, start, buildbot-worker@default.service ]
|
18
elcapitan.user
Normal file
18
elcapitan.user
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
## template: jinja
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
/usr/bin/dscl . -passwd /Users/johndoe "abcd"
|
||||||
|
|
||||||
|
fname=/var/lib/buildbot/workers/default/buildbot.tac
|
||||||
|
|
||||||
|
if [ -f "$fname" ]; then
|
||||||
|
sed -i '' -E "
|
||||||
|
s/^workername = '.*'/workername = '{{buildbot_username}}'/g;
|
||||||
|
s/^passwd = '.*'/passwd = '{{buildbot_password}}'/g;
|
||||||
|
s/^buildmaster_host = '.*'/buildmaster_host = '{{buildbot_master}}'/g;
|
||||||
|
" "$fname"
|
||||||
|
else
|
||||||
|
su - buildbot buildbot-worker create-worker /var/lib/buildbot/workers/default '{{buildbot_master}}' '{{buildbot_username}}' '{{buildbot_password}}'
|
||||||
|
fi
|
||||||
|
|
||||||
|
launchctl kickstart -k system/net.sourceforge.buildbot.worker
|
60
fedora-32.user
Normal file
60
fedora-32.user
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
## template: jinja
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
# packages
|
||||||
|
package_update: true
|
||||||
|
package_upgrade: false
|
||||||
|
packages:
|
||||||
|
- buildbot-slave
|
||||||
|
|
||||||
|
# root
|
||||||
|
disable_root: false
|
||||||
|
ssh_deletekeys: true
|
||||||
|
ssh_pwauth: false
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrfim4EMF7FzAnQF51frpsPgN\
|
||||||
|
JxfkzvBEC80wgwwP0AzD2iFPS57a6sXbie+sX7ALX89gmRwFtrKOwGYRYoQfU6dA\
|
||||||
|
hPirbpKY4BcTQx8N31fazceVJL0Y1kqSngNjYMbo1q0L5dgLBtPoVGcnriFAVGLg\
|
||||||
|
1+p9FIJTDK4rbwnYyDJyjruSAfnqVaWmqlMNAZNhqxOikBOh5M+3qPj0wmSKOE1r\
|
||||||
|
oE4HmQKUl62UjDWTkLLNx5u75QywQz+r8S0QNkSu/0iaeUdgkv3p0SsU4X5dmwuZ\
|
||||||
|
dbySMWkqy0zUCky2+qDqxzN6wHgnePZcedSobsIpxwDK0IrHpbaaBzVNn1uh shu\
|
||||||
|
rdeek@nitrokey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1ADz4g7BkLoq9CEffl7jxp4Ms\
|
||||||
|
Brtv12rYpskUMV2HKH48Uwue/yjqvwxaRk4Nd0TG2fQisqsB3GYLRe+6R00zbn2k\
|
||||||
|
A5k49gQEt6EnVVlsTWSp6iutCi8CEOSxFew/r//NOJbKQPWN2yCh8TQowks+lM/z\
|
||||||
|
wlFhzfoqDjgMCU13IW/O9RphnMACnx1o/EvUeoozcCMbAzJOq4I/YOSJwavuTUUC\
|
||||||
|
lnD4tyPs1HyYVcw+4Bti1QERkE+tbbgXUAy7WvxXpEflfenHHIAnjqUCW3LUJ6wT\
|
||||||
|
roq55FQ1RT7WE+XddL5OI+o4vbQVG8cbYXwCk6/m+P051v9PfnyecI6qj8wd shu\
|
||||||
|
rdeek@yubikey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Pebz7cNpL/Hikzfwzdnujcd1\
|
||||||
|
BWw4D4e1OXQaoCGcq2/gL+Wym8InL5qZ5hOgaF8lRVX5ys7m75uOyg8LOIRu0A27\
|
||||||
|
TzWzf9brV8TF5rsIhHYSK0CAA81G5NqOQgP3b7SANcs3PEWtxz+OeqFo7dcsQZij\
|
||||||
|
czRNunM73CBsTFZQCmNE2ZBh2QaQ1d/1lmYTqGlJ8DJrqeXXVc3S1Jln2nZ49XQM\
|
||||||
|
qdG49KvU66Xhd8kaukucDBl8iNLWpQ+N9Ao1SOnNlJVpLi6XUy9Hx3X3wVbrLQaH\
|
||||||
|
slIG6+AeZGpO/l3gKrQM3fjM2H+w9ow1rWcMdHgjxWZUryE7K1vzbpm4vNIf shu\
|
||||||
|
rdeek@brusli"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4LMmfil++N1tuQE+vz+n4KlKF\
|
||||||
|
+C8LJ08Tui5evBINMinIWsNYNXHo4zQ3jioUaiPUbMfApaexdL/6d9c69maIJr+I\
|
||||||
|
o3JJfgbYFWiFVyWIdtr4Lapv3kyGIusVp5hm5fK1ZM7dOdWStWqdZSHJIuQdv3Zg\
|
||||||
|
CJkZHFSiFnL7lxTvtIelVjBvsyROq+kH6YOdcagUY/RRzPaL58Ul0r3JcEVhhnKr\
|
||||||
|
dR21shc/6GI3irsn4Up3Bf4jRnrwiRuBJQZXMLSsn5BTMPY5HLptIlndizb5Smub\
|
||||||
|
rwErhe5OaVU8S+ZzzkWu9SfZFxHmkuhVfSnEs5GOUABrZWlleLn/OvbZcK2V shu\
|
||||||
|
rdeek@whisper.ssh"
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: buildbot
|
||||||
|
shell: /bin/bash
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
||||||
|
# system settings
|
||||||
|
timezone: Europe/Vienna
|
||||||
|
hostname: {{hostname}}
|
||||||
|
fqdn: {{hostname}}.{{guest}}.homedevops
|
||||||
|
|
||||||
|
# post boot
|
||||||
|
runcmd:
|
||||||
|
- [ sudo, -u, buildbot, --, buildbot-worker, create-worker,
|
||||||
|
/var/lib/buildbot/workers/default, 192.168.43.1,
|
||||||
|
{{buildbot_username}}, {{buildbot_password}} ]
|
||||||
|
- [ systemctl, enable, buildbot-worker@default.service ]
|
||||||
|
- [ systemctl, start, buildbot-worker@default.service ]
|
66
focal.user
Normal file
66
focal.user
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
## template: jinja
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
# packages
|
||||||
|
package_update: true
|
||||||
|
package_upgrade: false
|
||||||
|
packages:
|
||||||
|
- buildbot-slave
|
||||||
|
|
||||||
|
# apt
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
deadsnakes:
|
||||||
|
source: 'ppa:deadsnakes/ppa'
|
||||||
|
|
||||||
|
# root
|
||||||
|
disable_root: false
|
||||||
|
ssh_deletekeys: true
|
||||||
|
ssh_pwauth: false
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrfim4EMF7FzAnQF51frpsPgN\
|
||||||
|
JxfkzvBEC80wgwwP0AzD2iFPS57a6sXbie+sX7ALX89gmRwFtrKOwGYRYoQfU6dA\
|
||||||
|
hPirbpKY4BcTQx8N31fazceVJL0Y1kqSngNjYMbo1q0L5dgLBtPoVGcnriFAVGLg\
|
||||||
|
1+p9FIJTDK4rbwnYyDJyjruSAfnqVaWmqlMNAZNhqxOikBOh5M+3qPj0wmSKOE1r\
|
||||||
|
oE4HmQKUl62UjDWTkLLNx5u75QywQz+r8S0QNkSu/0iaeUdgkv3p0SsU4X5dmwuZ\
|
||||||
|
dbySMWkqy0zUCky2+qDqxzN6wHgnePZcedSobsIpxwDK0IrHpbaaBzVNn1uh shu\
|
||||||
|
rdeek@nitrokey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1ADz4g7BkLoq9CEffl7jxp4Ms\
|
||||||
|
Brtv12rYpskUMV2HKH48Uwue/yjqvwxaRk4Nd0TG2fQisqsB3GYLRe+6R00zbn2k\
|
||||||
|
A5k49gQEt6EnVVlsTWSp6iutCi8CEOSxFew/r//NOJbKQPWN2yCh8TQowks+lM/z\
|
||||||
|
wlFhzfoqDjgMCU13IW/O9RphnMACnx1o/EvUeoozcCMbAzJOq4I/YOSJwavuTUUC\
|
||||||
|
lnD4tyPs1HyYVcw+4Bti1QERkE+tbbgXUAy7WvxXpEflfenHHIAnjqUCW3LUJ6wT\
|
||||||
|
roq55FQ1RT7WE+XddL5OI+o4vbQVG8cbYXwCk6/m+P051v9PfnyecI6qj8wd shu\
|
||||||
|
rdeek@yubikey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Pebz7cNpL/Hikzfwzdnujcd1\
|
||||||
|
BWw4D4e1OXQaoCGcq2/gL+Wym8InL5qZ5hOgaF8lRVX5ys7m75uOyg8LOIRu0A27\
|
||||||
|
TzWzf9brV8TF5rsIhHYSK0CAA81G5NqOQgP3b7SANcs3PEWtxz+OeqFo7dcsQZij\
|
||||||
|
czRNunM73CBsTFZQCmNE2ZBh2QaQ1d/1lmYTqGlJ8DJrqeXXVc3S1Jln2nZ49XQM\
|
||||||
|
qdG49KvU66Xhd8kaukucDBl8iNLWpQ+N9Ao1SOnNlJVpLi6XUy9Hx3X3wVbrLQaH\
|
||||||
|
slIG6+AeZGpO/l3gKrQM3fjM2H+w9ow1rWcMdHgjxWZUryE7K1vzbpm4vNIf shu\
|
||||||
|
rdeek@brusli"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4LMmfil++N1tuQE+vz+n4KlKF\
|
||||||
|
+C8LJ08Tui5evBINMinIWsNYNXHo4zQ3jioUaiPUbMfApaexdL/6d9c69maIJr+I\
|
||||||
|
o3JJfgbYFWiFVyWIdtr4Lapv3kyGIusVp5hm5fK1ZM7dOdWStWqdZSHJIuQdv3Zg\
|
||||||
|
CJkZHFSiFnL7lxTvtIelVjBvsyROq+kH6YOdcagUY/RRzPaL58Ul0r3JcEVhhnKr\
|
||||||
|
dR21shc/6GI3irsn4Up3Bf4jRnrwiRuBJQZXMLSsn5BTMPY5HLptIlndizb5Smub\
|
||||||
|
rwErhe5OaVU8S+ZzzkWu9SfZFxHmkuhVfSnEs5GOUABrZWlleLn/OvbZcK2V shu\
|
||||||
|
rdeek@whisper.ssh"
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: buildbot
|
||||||
|
shell: /bin/bash
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
||||||
|
# system settings
|
||||||
|
timezone: Europe/Vienna
|
||||||
|
hostname: {{hostname}}
|
||||||
|
fqdn: {{hostname}}.{{guest}}.homedevops
|
||||||
|
|
||||||
|
# post boot
|
||||||
|
runcmd:
|
||||||
|
- [ sudo, -u, buildbot, --, buildbot-worker, create-worker,
|
||||||
|
/var/lib/buildbot/workers/default, 192.168.43.1,
|
||||||
|
{{buildbot_username}}, {{buildbot_password}} ]
|
||||||
|
- [ systemctl, enable, buildbot-worker@default.service ]
|
||||||
|
- [ systemctl, start, buildbot-worker@default.service ]
|
23
mojave.user
Normal file
23
mojave.user
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
## 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
|
77
trusty.user
Normal file
77
trusty.user
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
## template: jinja
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
# packages
|
||||||
|
package_update: true
|
||||||
|
package_upgrade: false
|
||||||
|
packages:
|
||||||
|
- buildbot-slave
|
||||||
|
- python-setuptools
|
||||||
|
- python-psutil
|
||||||
|
- libssl-dev
|
||||||
|
- python-dev
|
||||||
|
- libgmp-dev
|
||||||
|
- python-virtualenv
|
||||||
|
|
||||||
|
# root
|
||||||
|
disable_root: false
|
||||||
|
ssh_deletekeys: true
|
||||||
|
ssh_pwauth: false
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrfim4EMF7FzAnQF51frpsPgN\
|
||||||
|
JxfkzvBEC80wgwwP0AzD2iFPS57a6sXbie+sX7ALX89gmRwFtrKOwGYRYoQfU6dA\
|
||||||
|
hPirbpKY4BcTQx8N31fazceVJL0Y1kqSngNjYMbo1q0L5dgLBtPoVGcnriFAVGLg\
|
||||||
|
1+p9FIJTDK4rbwnYyDJyjruSAfnqVaWmqlMNAZNhqxOikBOh5M+3qPj0wmSKOE1r\
|
||||||
|
oE4HmQKUl62UjDWTkLLNx5u75QywQz+r8S0QNkSu/0iaeUdgkv3p0SsU4X5dmwuZ\
|
||||||
|
dbySMWkqy0zUCky2+qDqxzN6wHgnePZcedSobsIpxwDK0IrHpbaaBzVNn1uh shu\
|
||||||
|
rdeek@nitrokey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1ADz4g7BkLoq9CEffl7jxp4Ms\
|
||||||
|
Brtv12rYpskUMV2HKH48Uwue/yjqvwxaRk4Nd0TG2fQisqsB3GYLRe+6R00zbn2k\
|
||||||
|
A5k49gQEt6EnVVlsTWSp6iutCi8CEOSxFew/r//NOJbKQPWN2yCh8TQowks+lM/z\
|
||||||
|
wlFhzfoqDjgMCU13IW/O9RphnMACnx1o/EvUeoozcCMbAzJOq4I/YOSJwavuTUUC\
|
||||||
|
lnD4tyPs1HyYVcw+4Bti1QERkE+tbbgXUAy7WvxXpEflfenHHIAnjqUCW3LUJ6wT\
|
||||||
|
roq55FQ1RT7WE+XddL5OI+o4vbQVG8cbYXwCk6/m+P051v9PfnyecI6qj8wd shu\
|
||||||
|
rdeek@yubikey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Pebz7cNpL/Hikzfwzdnujcd1\
|
||||||
|
BWw4D4e1OXQaoCGcq2/gL+Wym8InL5qZ5hOgaF8lRVX5ys7m75uOyg8LOIRu0A27\
|
||||||
|
TzWzf9brV8TF5rsIhHYSK0CAA81G5NqOQgP3b7SANcs3PEWtxz+OeqFo7dcsQZij\
|
||||||
|
czRNunM73CBsTFZQCmNE2ZBh2QaQ1d/1lmYTqGlJ8DJrqeXXVc3S1Jln2nZ49XQM\
|
||||||
|
qdG49KvU66Xhd8kaukucDBl8iNLWpQ+N9Ao1SOnNlJVpLi6XUy9Hx3X3wVbrLQaH\
|
||||||
|
slIG6+AeZGpO/l3gKrQM3fjM2H+w9ow1rWcMdHgjxWZUryE7K1vzbpm4vNIf shu\
|
||||||
|
rdeek@brusli"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4LMmfil++N1tuQE+vz+n4KlKF\
|
||||||
|
+C8LJ08Tui5evBINMinIWsNYNXHo4zQ3jioUaiPUbMfApaexdL/6d9c69maIJr+I\
|
||||||
|
o3JJfgbYFWiFVyWIdtr4Lapv3kyGIusVp5hm5fK1ZM7dOdWStWqdZSHJIuQdv3Zg\
|
||||||
|
CJkZHFSiFnL7lxTvtIelVjBvsyROq+kH6YOdcagUY/RRzPaL58Ul0r3JcEVhhnKr\
|
||||||
|
dR21shc/6GI3irsn4Up3Bf4jRnrwiRuBJQZXMLSsn5BTMPY5HLptIlndizb5Smub\
|
||||||
|
rwErhe5OaVU8S+ZzzkWu9SfZFxHmkuhVfSnEs5GOUABrZWlleLn/OvbZcK2V shu\
|
||||||
|
rdeek@whisper.ssh"
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: buildbot
|
||||||
|
shell: /bin/bash
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
||||||
|
# system settings
|
||||||
|
timezone: Europe/Vienna
|
||||||
|
hostname: {{hostname}}
|
||||||
|
fqdn: {{hostname}}.{{guest}}.homedevops
|
||||||
|
|
||||||
|
write_files:
|
||||||
|
- path: /etc/default/buildslave
|
||||||
|
content: |
|
||||||
|
SLAVE_RUNNER=/usr/bin/buildslave
|
||||||
|
SLAVE_ENABLED[1]=1
|
||||||
|
SLAVE_NAME[1]="default"
|
||||||
|
SLAVE_USER[1]="buildbot"
|
||||||
|
SLAVE_BASEDIR[1]="/var/lib/buildbot/slaves/default"
|
||||||
|
SLAVE_OPTIONS[1]=""
|
||||||
|
SLAVE_PREFIXCMD[1]=""
|
||||||
|
|
||||||
|
# post boot
|
||||||
|
runcmd:
|
||||||
|
- [ sudo, -u, buildbot, --, buildslave, create-slave,
|
||||||
|
/var/lib/buildbot/slaves/default, 192.168.43.1,
|
||||||
|
{{buildbot_username}}, {{buildbot_password}} ]
|
||||||
|
- [ systemctl, enable, buildslave ]
|
||||||
|
- [ systemctl, start, buildslave ]
|
83
xenial.user
Normal file
83
xenial.user
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
## template: jinja
|
||||||
|
#cloud-config
|
||||||
|
|
||||||
|
# packages
|
||||||
|
package_update: true
|
||||||
|
package_upgrade: false
|
||||||
|
packages:
|
||||||
|
- buildbot-slave
|
||||||
|
- python-setuptools
|
||||||
|
- python-psutil
|
||||||
|
- libssl-dev
|
||||||
|
- python-dev
|
||||||
|
- libgmp-dev
|
||||||
|
- python-virtualenv
|
||||||
|
|
||||||
|
# apt
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
deadsnakes:
|
||||||
|
source: 'ppa:deadsnakes/ppa'
|
||||||
|
|
||||||
|
# root
|
||||||
|
disable_root: false
|
||||||
|
ssh_deletekeys: true
|
||||||
|
ssh_pwauth: false
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrfim4EMF7FzAnQF51frpsPgN\
|
||||||
|
JxfkzvBEC80wgwwP0AzD2iFPS57a6sXbie+sX7ALX89gmRwFtrKOwGYRYoQfU6dA\
|
||||||
|
hPirbpKY4BcTQx8N31fazceVJL0Y1kqSngNjYMbo1q0L5dgLBtPoVGcnriFAVGLg\
|
||||||
|
1+p9FIJTDK4rbwnYyDJyjruSAfnqVaWmqlMNAZNhqxOikBOh5M+3qPj0wmSKOE1r\
|
||||||
|
oE4HmQKUl62UjDWTkLLNx5u75QywQz+r8S0QNkSu/0iaeUdgkv3p0SsU4X5dmwuZ\
|
||||||
|
dbySMWkqy0zUCky2+qDqxzN6wHgnePZcedSobsIpxwDK0IrHpbaaBzVNn1uh shu\
|
||||||
|
rdeek@nitrokey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1ADz4g7BkLoq9CEffl7jxp4Ms\
|
||||||
|
Brtv12rYpskUMV2HKH48Uwue/yjqvwxaRk4Nd0TG2fQisqsB3GYLRe+6R00zbn2k\
|
||||||
|
A5k49gQEt6EnVVlsTWSp6iutCi8CEOSxFew/r//NOJbKQPWN2yCh8TQowks+lM/z\
|
||||||
|
wlFhzfoqDjgMCU13IW/O9RphnMACnx1o/EvUeoozcCMbAzJOq4I/YOSJwavuTUUC\
|
||||||
|
lnD4tyPs1HyYVcw+4Bti1QERkE+tbbgXUAy7WvxXpEflfenHHIAnjqUCW3LUJ6wT\
|
||||||
|
roq55FQ1RT7WE+XddL5OI+o4vbQVG8cbYXwCk6/m+P051v9PfnyecI6qj8wd shu\
|
||||||
|
rdeek@yubikey1"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Pebz7cNpL/Hikzfwzdnujcd1\
|
||||||
|
BWw4D4e1OXQaoCGcq2/gL+Wym8InL5qZ5hOgaF8lRVX5ys7m75uOyg8LOIRu0A27\
|
||||||
|
TzWzf9brV8TF5rsIhHYSK0CAA81G5NqOQgP3b7SANcs3PEWtxz+OeqFo7dcsQZij\
|
||||||
|
czRNunM73CBsTFZQCmNE2ZBh2QaQ1d/1lmYTqGlJ8DJrqeXXVc3S1Jln2nZ49XQM\
|
||||||
|
qdG49KvU66Xhd8kaukucDBl8iNLWpQ+N9Ao1SOnNlJVpLi6XUy9Hx3X3wVbrLQaH\
|
||||||
|
slIG6+AeZGpO/l3gKrQM3fjM2H+w9ow1rWcMdHgjxWZUryE7K1vzbpm4vNIf shu\
|
||||||
|
rdeek@brusli"
|
||||||
|
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4LMmfil++N1tuQE+vz+n4KlKF\
|
||||||
|
+C8LJ08Tui5evBINMinIWsNYNXHo4zQ3jioUaiPUbMfApaexdL/6d9c69maIJr+I\
|
||||||
|
o3JJfgbYFWiFVyWIdtr4Lapv3kyGIusVp5hm5fK1ZM7dOdWStWqdZSHJIuQdv3Zg\
|
||||||
|
CJkZHFSiFnL7lxTvtIelVjBvsyROq+kH6YOdcagUY/RRzPaL58Ul0r3JcEVhhnKr\
|
||||||
|
dR21shc/6GI3irsn4Up3Bf4jRnrwiRuBJQZXMLSsn5BTMPY5HLptIlndizb5Smub\
|
||||||
|
rwErhe5OaVU8S+ZzzkWu9SfZFxHmkuhVfSnEs5GOUABrZWlleLn/OvbZcK2V shu\
|
||||||
|
rdeek@whisper.ssh"
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: buildbot
|
||||||
|
shell: /bin/bash
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
||||||
|
# system settings
|
||||||
|
timezone: Europe/Vienna
|
||||||
|
hostname: {{hostname}}
|
||||||
|
fqdn: {{hostname}}.{{guest}}.homedevops
|
||||||
|
|
||||||
|
write_files:
|
||||||
|
- path: /etc/default/buildslave
|
||||||
|
content: |
|
||||||
|
SLAVE_RUNNER=/usr/bin/buildslave
|
||||||
|
SLAVE_ENABLED[1]=1
|
||||||
|
SLAVE_NAME[1]="default"
|
||||||
|
SLAVE_USER[1]="buildbot"
|
||||||
|
SLAVE_BASEDIR[1]="/var/lib/buildbot/slaves/default"
|
||||||
|
SLAVE_OPTIONS[1]=""
|
||||||
|
SLAVE_PREFIXCMD[1]=""
|
||||||
|
|
||||||
|
# post boot
|
||||||
|
runcmd:
|
||||||
|
- [ sudo, -u, buildbot, --, buildslave, create-slave,
|
||||||
|
/var/lib/buildbot/slaves/default, 192.168.43.1,
|
||||||
|
{{buildbot_username}}, {{buildbot_password}} ]
|
||||||
|
- [ systemctl, enable, buildslave ]
|
||||||
|
- [ systemctl, start, buildslave ]
|
Loading…
Reference in New Issue
Block a user