You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ibmcloud): add GitLab runner support for IBM Power (ppc64le) and IBM Z (s390x)
Extends the IBM Power (ppc64le/RHEL9) and IBM Z (s390x/Ubuntu 22.04)
provisioning to register and configure a GitLab runner on each target.
Architecture:
- GitLab 15.10+ new creation workflow: NewUserRunner API returns an auth
token which is then used with `gitlab-runner register --token` (no
deprecated registration tokens)
- Runner creation happens inside the Pulumi deploy() function via
gitlab.CreateRunner(); the auth token is a pulumi.StringOutput resolved
with ApplyT before cloud-init is rendered
- No global state: the runner args struct is copied before the ApplyT
closure and AuthToken is set on the local copy
New arch support in pkg/integrations/gitlab:
- Added Ppc64le and S390x Arch values
- Renamed GitLabPAT → GitLabToken (accepts PAT, group/project access
token, or service account token with create_runner scope)
- Made restorecon graceful on non-SELinux systems (Ubuntu/IBM Z)
CLI changes:
- params.GitLabRunnerArgs now takes *gitlab.Arch so fixed-arch targets
(IBM) pass their arch directly; variable-arch targets use
params.LinuxGitLabArch()
- Mutual exclusion check for --glrunner-project-id and --glrunner-group-id
- GitLab runner flags added to ibm-power and ibm-z create commands
Cloud-init (both IBM targets):
- Systemd drop-in redirects gitlab-runner stdout/stderr to
/var/log/gitlab-runner/runner.log
- Logrotate config for runner.log (daily, 7 rotations, copytruncate)
- otelcol-contrib filelog/gitlab-runner receiver ships job logs to the
OTLP endpoint when both otel and runner are configured (start_at: end)
- IBM Z cloud-config runs apt-get update before apt-get install
Error handling:
- buildUserDataInput() in ibm-z returns (pulumi.StringPtrInput, error)
instead of silently dropping template errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments