Skip to content

WIP So far futile attempt to automatize whole gitlab-ci-runner at least for php testing

Notifications You must be signed in to change notification settings

mishak87/gitlab-ci-runner-via-vagrant-with-puppet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-ci-runner-via-vagrant-with-puppet

So far futile attempt to automatize whole gitlab-ci-runner at least for php testing

Runner class is in separate repo gitlab-ci-runner puppet module.

Target

  • by cloning this repo and changing manifest/param.pp you should be able to launch new gitlab ci runner
  • variations for different php version
  • provide base for different and not only php runners

Accomplishments

  • nasty but working setup for all dependencies
  • installation of ruby via rvm
  • generating ssh key
  • registering ssh key and token via curl

Known Issues

  • composer package is really pretty but useless now with current php package due to bugged suhoshin dependency (is unpossible to set whitelist_phar: On)
  • init service script must be modified to launch via rvm 1.9.3-p392@gitlab_ci_runner exec ...
  • runner generates new key and is registered again on vagrant provide

Guide for successful installation of vagrant and librarian-puppet on Windows 7.

Installation

Requirements installed ruby, puppet, librarian-puppet and vagrant (use this guide if you are on windows).

git clone https://github.com/mishak87/gitlab-ci-runner-via-vagrant-with-puppet
librarian-puppet install
git clone https://github.com/mishak87/puppet-gitlab-ci-runner modules/gitlab_ci_runner
vagrant up

Update

git pull
librarian-puppet install
cd modules/gitlab-ci-runner
git pull
cd ../..
vagrant provision

Note: Tested under Windows 7 with Ruby 2.0.0 (x86)

About

WIP So far futile attempt to automatize whole gitlab-ci-runner at least for php testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published