Image by wdreblow0 from Pixabay.

OpenBSD GitLab Runner Setup

phbits
2 min readMay 31, 2022

In an effort to automate the configuration of OpenBSD, this post will describe the basic setup of GitLab Runner to leverage GitLab CI/CD.

Tested on OpenBSD 7.1

Prerequisites

1: GitLab Repository

Create a new blank project with Visibility Level=Private. A private repository is recommended since it will contain scripts to configure the target system. Likely not something we want public.

2: .gitlab-ci.yml

Create this file in the root of the above repository. The following is an example file for use as a proof of concept.

https://gitlab.com/-/snippets/2337398/raw/main/.gitlab-ci.yml

3: Runner Registration Token

Open your project from Prerequisite Step #1 (above). Then go to:

Settings > CI/CD > Runners

Make note of the registration token as it will be needed later.

Fresh Install of OpenBSD 7.1

While logged in as root, run the following commands:

1: Download Setup Script

ftp -4 -o glrunner-setup.sh https://gitlab.com/-/snippets/2337354/raw/main/glrunner-setup.sh

--

--

No responses yet