Skip to content

Commit

Permalink
use gitlab runner to create systemd unit file
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxmea committed May 28, 2024
1 parent cac6872 commit 9e35a10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
) {
assert_private()

if $facts['os']['family'] == 'Suse' {
exec { "${gitlab_ci_runner::binary_path} install -u ${gitlab_ci_runner::user}":
creates => '/etc/systemd/system/gitlab-runner.service',
}
}
service { $package_name:
ensure => running,
enable => true,
Expand Down

0 comments on commit 9e35a10

Please sign in to comment.