Bladeren bron

working setup

covid-videoplattform
bovenliggende
commit
0b894cdd59
2 gewijzigde bestanden met toevoegingen van 68 en 0 verwijderingen
  1. +24
    -0
      files/systemd/buildbot@.service
  2. +44
    -0
      tasks/main.yaml

+ 24
- 0
files/systemd/buildbot@.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=buildbot
Group=buildbot
WorkingDirectory=/var/lib/buildbot
ExecStart=/usr/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

+ 44
- 0
tasks/main.yaml Bestand weergeven

@@ -1 +1,45 @@
---

- name: debian package requirements for buildbot
apt:
pkg:
- python3-pip
- fish
- git

- name: install buildbot
pip:
name: buildbot[bundle]
executable: pip3

- name: install gitea integration for buildbot
pip:
name: buildbot_gitea
executable: pip3

- name: buildbot system group
group:
name: buildbot
system: yes

- name: buildbot system user
user:
name: buildbot
group: buildbot
system: yes
home: /var/lib/buildbot
shell: /usr/bin/fish

- name: buildbot var directory
file:
path: /var/lib/buildbot
state: directory
owner: buildbot
group: buildbot
mode: 0700

# source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service
- name: buildbot systemd service unit
copy:
src: systemd/buildbot@.service
dest: /etc/systemd/system/buildbot@.service

Laden…
Annuleren
Opslaan