egeneralov.gitlab_runner

egeneralov.gitlab_runner

Provisionnez gitlab-runner avec auto-configuration.

Exigences

  • système basé sur Debian
  • GitLab n'importe où

Installation rapide

wget -O - https://raw.githubusercontent.com/egeneralov/gitlab-runner/master/get.sh 2>/dev/null | GITLAB_TOKEN=b6jR_DnMjMSWVExkhjX1 bash -xe

Valeurs possibles :

  • GITLAB_URL optionnel, https://gitlab.com
  • GITLAB_TOKEN requis
  • GITLAB_NAME optionnel, $(hostname)

De plus, le runner aura une étiquette, identique à son nom.

Variables de rôle

  • gitlab_runner_executor : "docker"
  • gitlab_runner_ci_server_url : https://gitlab.com/
  • gitlab_runner_registration_token : b6jR_DnMjMSWVExkhjX1
  • gitlab_runner_docker_default_image : docker:dind
  • gitlab_runner_config_file : /etc/gitlab-runner/config.toml
  • gitlab_runner_docker_image : gitlab/gitlab-runner:v11.6.1
  • gitlab_runner_tag_list :
    • gitlab
    • docker
  • gitlab_runner_register_run_untagged : "true"
  • gitlab_runner_register_locked : "false"
  • gitlab_runner_request_concurrency : 2
  • gitlab_runner_name : my-gitlab-runner
  • gitlab_runner_ci_server_token : ""
  • gitlab_runner_ci_server_tls_ca_file : ""
  • gitlab_runner_ci_server_tls_cert_file : ""
  • gitlab_runner_ci_server_tls_key_file : ""
  • gitlab_runner_builds_dir : ""
  • gitlab_runner_pre_clone_script : ""
  • gitlab_runner_pre_build_script : ""
  • gitlab_runner_post_build_script : ""

Dépendances

  • egeneralov.docker

Exemple de Playbook

- hosts: gitlab-runner-dind
  vars:
    gitlab_runner_executor: dind
    gitlab_runner_ci_server_url: https://gitlab.com/
    gitlab_runner_registration_token: b6jR_DnMjMSWVExkhjX1
    gitlab_runner_docker_default_image: docker:dind
    gitlab_runner_docker_image: gitlab/gitlab-runner:v11.8.0
    gitlab_runner_tag_list:
      - dind
    gitlab_runner_register_run_untagged: "true"
    gitlab_runner_register_locked: "false"
    gitlab_runner_name: my-dind-gitlab-runner
  roles:
     - egeneralov.docker
     - egeneralov.gitlab_runner

- hosts: gitlab-runner-shell
  vars:
    gitlab_runner_executor: shell
    gitlab_runner_ci_server_url: https://gitlab.com/
    gitlab_runner_registration_token: b6jR_DnMjMSWVExkhjX1
    gitlab_runner_tag_list:
      - shell
    gitlab_runner_register_run_untagged: "true"
    gitlab_runner_register_locked: "false"
    gitlab_runner_name: my-shell-gitlab-runner
  roles:
     - egeneralov.gitlab_runner

Licence

MIT

Informations sur l'auteur

Eduard Generalov eduard@generalov.net

À propos du projet

Install gitlab-runner

Installer
ansible-galaxy install egeneralov.gitlab_runner
Licence
mit
Téléchargements
207
Propriétaire