Coder Social home page Coder Social logo

ansible-gitlab_runner's Introduction

DebOps project gitlab_runner

Travis CI test-suite Ansible Galaxy

GitLab Runner is a service written in Go which is used by the GitLab CI to execute software builds on remote hosts. It supports builds executed by local shell, over SSH or in a Docker containers.

The debops.gitlab_runner Ansible role will allow you to install and manage GitLab Runner on Debian and Ubuntu hosts. You can use it to create multiple Runner instances, each one with distinct configuration. The role will automatically register the Runners in GitLab CI management host if a required registration token is supplied.

Installation

This role requires at least Ansible v2.0.0. To install it, run:

ansible-galaxy install debops.gitlab_runner

Documentation

More information about debops.gitlab_runner can be found in the official debops.gitlab_runner documentation.

Are you using this as a standalone role without DebOps?

You may need to include missing roles from the DebOps common playbook into your playbook.

Try DebOps now for a complete solution to run your Debian-based infrastructure.

Authors and license

gitlab_runner role was written by:

License: GPLv3


This role is part of the DebOps project. README generated by ansigenome.

ansible-gitlab_runner's People

Contributors

azman0101 avatar bfabio avatar dcz-mpipz avatar drybjed avatar oussemos avatar tkrille avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-gitlab_runner's Issues

APT Key registration failed for the default value

Hello guys, I was trying to run the role for provisioning a vagrant box. I used pretty much all the default values except obviously the gitlab token. Everything went fine till the "Add gitlab-runner APT key" task which returned a rather lengthy error "Error fetching key 1A4C919DB...".

This, I learned afterwards, was being cause by the default value for the apt_key id "hkp://pool.sks-keyservers.net".

This issue was fixed by specifying the port 80 for that URL. So, simply changing "hkp://pool.sks-keyservers.net" for "hkp://pool.sks-keyservers.net:80" in the id argument (line 56 of tasks/main.yml) fixed the problem for me.

Support GitLab 10

Hi,

first of all thanks for this great ansible role.

Currently this role uses api version v1 to manage runners, but in GitLab 10 this api version is not supported anymore. Current version is v4: https://docs.gitlab.com/ce/api/runners.html

Is there any plan to update to this version?

Greetz,
David

default shell runner registration is skipped

TASK [debops.gitlab_runner : Check if GitLab service is available] ******************************************************************************************************************************
ok: [scw-0783ca]

TASK [debops.gitlab_runner : Register new GitLab Runners] ***************************************************************************************************************************************
skipping: [scw-0783ca] => (item={u'name': u'scw-0783ca', u'executor': u'shell'})

My playbook uses the gitlab_runner role straight out of the box, with little cofiguration except to provide the Gitlab CI token.

500 errors while registering runners

I seem to be getting 500 errors somewhat randomly when I am running a playbook with serial: +1 (multiple runners are getting configured at the same time since it is running the tasks in parallel). I am not sure how prevalent it is, but I have seen it at least a few times with my GitLab instances though it is solved by just re-running the playbook.

Would be make sense to add some retry/wait logic around registering with GitLab or would it be better to just deal with it at the playbook level?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.