Bladeren bron

buildbot worker config

covid-videoplattform
bovenliggende
commit
0f1a61c4ed
3 gewijzigde bestanden met toevoegingen van 47 en 0 verwijderingen
  1. +24
    -0
      files/systemd/buildbot-worker@.service
  2. +19
    -0
      tasks/worker.yaml
  3. +4
    -0
      vars/main.yaml

+ 24
- 0
files/systemd/buildbot-worker@.service Bestand weergeven

@@ -0,0 +1,24 @@
# This template file assumes the buildbot master lives in a subdirectory of
# /var/lib/buildbot
# Usage:
# cd /var/lib/buildbot
# buildbot create-master [directory]
# systemctl enable --now buildbot@[directory].service
[Unit]
Description=Buildbot Master
After=network.target

[Service]
User=%i
Group=%i
WorkingDirectory=~
ExecStart=/usr/local/bin/buildbot --verbose start --nodaemon %I
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
#ProtectSystem=full
#ProtectHome=yes
#PrivateDevices=yes
#PrivateTmp=yes

[Install]
WantedBy=multi-user.target

+ 19
- 0
tasks/worker.yaml Bestand weergeven

@@ -0,0 +1,19 @@
---
- name: buildbot-worker group
group:
name: "{{ buildbot_worker_group }}"

- name: buildbot-worker user
user:
name: "{{ buildbot_worker_user }}"
group: "{{ buildbot_worker_group }}"
home: "{{ ez_directory }}"
shell: /usr/bin/fish

- name: buildbot-worker home directory
file:
path: "{{ buildbot_worker_home_directory }}"
owner: "{{ buildbot_worker_user }}"
group: "{{ buildbot_worker_group }}"
state: directory
mode: u=rwx,g=rwx,o=

+ 4
- 0
vars/main.yaml Bestand weergeven

@@ -28,3 +28,7 @@ buildbot_nginx_vhosts:
proxy_pass http://localhost:8010;
proxy_read_timeout 6000s;
}

buildbot_worker_user: "{{ buildbot_worker_name }}"
buildbot_worker_group: "{{ buildbot_worker_name }}"
buildbot_worker_home_directory: "/home/{{ buildbot_worker_name }}"

Laden…
Annuleren
Opslaan