Giter VIP home page Giter VIP logo

ansible-gitlab-runner's Introduction

GitLab Runner

This role will install the official GitLab Runner

Requirements

This role requires Ansible 2.0 or higher.

Role Variables

gitlab_runner_concurrent The maximum number of jobs to run concurrently. Defaults to the number of processor cores.

gitlab_runner_registration_token The GitLab registration token. If this is specified, a runner will be registered to a GitLab server.

gitlab_runner_coordinator_url The GitLab coordinator URL. Defaults to https://gitlab.com/ci.

gitlab_runner_description The description of the runner. Defaults to the hostname.

gitlab_runner_executor The executor used by the runner. Defaults to shell.

gitlab_runner_docker_image The default Docker image to use. Required when executor is docker.

gitlab_runner_tags The tags assigned to the runner, Defaults to an empty list.

Dependencies

None

Example Playbook

- hosts: all
  remote_user: root
  vars_files:
    - vars/main.yml
  roles:
    - { role: haroldb.gitlab-runner }

Inside vars/main.yml

gitlab_runner_registration_token: 'HUzTMgnxk17YV8Rj8ucQ'
gitlab_runner_description: 'Example GitLab Runner'
gitlab_runner_tags:
  - node
  - ruby
  - mysql

License

MIT

ansible-gitlab-runner's People

Contributors

haroldb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

ansible-gitlab-runner's Issues

Using "gitlab-runner" as an ansible hostname causes registration to be skipped

As far as I can tell, if I happen to name my gitlab runner host "gitlab-runner", this line in combination with this default causes runner registration to be skipped, since the output of gitlab-runner list contains the string gitlab-runner even when the list is empty.

Presumably this will also occur if I use some substring of that, or (for whatever reason) the word config, or anything else contained in the output of gitlab-runner list for an empty list.

The fix is simple (provide a unique, configured name for the runner) so I am just making this issue in case you can find a less fragile condition to check for this task, or in case anyone comes across this issue in the future.

[meta] state of this repo, summary of forks

I have found this code useful, but the author does not appear to be looking at it anymore so users have been making fixes in forks. In case it saves other people time, here is what I have learned about various available forks of this project:

I also looked at a few other ansible-gitlab-runner projects. Here's why I didn't choose them:

Debian install from other repository

Hi first of all thanks for publishing your role

The role works perfectly except for the installation part for debian. The problem is that the machine I'm trying to provision doesn't have internet access. So it's not able to access the repo added.

It however already has a repo that includes the gitlab-ci-multirunner package. So apt-get install gitlab-ci-multirunner would be sufficient to install it.

Do you see an easy way include my use case in your role? For example add the repo only if the package ist not found?

I would like to avoid doing a fork if possible.

Thanks for your help
Pascal

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.