aboutsummaryrefslogtreecommitdiff
path: root/roles/woodpecker/files
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-16 19:45:09 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-16 19:45:09 +0200
commitef56d42b7e06061db5afbf9011e76d308c936080 (patch)
tree1f61386c53ecb311e7e79f619aa59a42f146c898 /roles/woodpecker/files
parent607d91ed23eaa9d1fb9cc9e1279537b8805e236e (diff)
downloadansible_collection-ef56d42b7e06061db5afbf9011e76d308c936080.tar.gz
woodpecker agent and server
Diffstat (limited to 'roles/woodpecker/files')
-rw-r--r--roles/woodpecker/files/containers.conf5
-rw-r--r--roles/woodpecker/files/woodpecker-agent.service17
-rw-r--r--roles/woodpecker/files/woodpecker-server.service17
3 files changed, 39 insertions, 0 deletions
diff --git a/roles/woodpecker/files/containers.conf b/roles/woodpecker/files/containers.conf
new file mode 100644
index 0000000..28442b9
--- /dev/null
+++ b/roles/woodpecker/files/containers.conf
@@ -0,0 +1,5 @@
+[containers]
+log_driver="json-file"
+
+[engine]
+events_logger="file"
diff --git a/roles/woodpecker/files/woodpecker-agent.service b/roles/woodpecker/files/woodpecker-agent.service
new file mode 100644
index 0000000..7a4031a
--- /dev/null
+++ b/roles/woodpecker/files/woodpecker-agent.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Woodpecker Agent
+After=syslog.target
+After=network.target
+
+[Service]
+RestartSec=2s
+Type=simple
+User=woodpecker-agent
+Group=woodpecker-agent
+WorkingDirectory=/var/lib/woodpecker-agent/
+ExecStart=/usr/local/bin/woodpecker-agent
+Restart=always
+EnvironmentFile=/etc/woodpecker_agent
+
+[Install]
+WantedBy=multi-user.target
diff --git a/roles/woodpecker/files/woodpecker-server.service b/roles/woodpecker/files/woodpecker-server.service
new file mode 100644
index 0000000..96abc63
--- /dev/null
+++ b/roles/woodpecker/files/woodpecker-server.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Woodpecker Server
+After=syslog.target
+After=network.target
+
+[Service]
+RestartSec=2s
+Type=simple
+User=woodpecker
+Group=woodpecker
+WorkingDirectory=/var/lib/woodpecker/
+ExecStart=/usr/local/bin/woodpecker-server
+Restart=always
+EnvironmentFile=/etc/woodpecker_server
+
+[Install]
+WantedBy=multi-user.target