fix runner exec

parent 9a68dc24
Pipeline #2890 passed with stage
in 33 seconds
......@@ -22,6 +22,7 @@ class beryjuorg_gitlab::repo (
if $suite == 'runner' {
apt::pin { 'packages.gitlab.com':
priority => 1001,
origin => 'packages.gitlab.com',
packages => ['gitlab-runner'],
}
}
......
......@@ -36,8 +36,7 @@ class beryjuorg_gitlab::runner (
},
}
->exec { 'register':
container => 'gitlab-runner',
command => "gitlab-ci-multi-runner register -n -u \"${ci_server_url}\" -r \"${ci_server_token}\" --name \"${runner_name}\" --executor \"docker\" --docker-image \"${default_image}\" --docker-volumes /var/run/docker.sock:/var/run/docker.sock",
command => "/usr/bin/gitlab-runner register -n -u \"${ci_server_url}\" -r \"${ci_server_token}\" --name \"${runner_name}\" --executor \"docker\" --docker-image \"${default_image}\" --docker-volumes /var/run/docker.sock:/var/run/docker.sock",
unless => '/usr/bin/test -f /etc/gitlab-runner/config.toml',
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment