Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 2.18 KB

CONTRIBUTING.md

File metadata and controls

77 lines (49 loc) · 2.18 KB

Pull requests of all kinds are encouraged

Please try and keep 1 commit / issue per merge request. Here is an example commit to add a new parameter.

Checkout the README.md for instrutions on spinning up a test vm in Vagrant.

Average Joe Pull Request Procedure:

  • Fork project
  • Write test
  • Write code
  • Test code
puppet parser validate foo.pp  
gem install puppet-lint  
puppet-lint --no-80chars-check --no-class_inherits_from_params_class-check --no-autoloader_layout-check manifests/*.pp 
  • Create merge request

Rockstar Pull Request Procedure:

  • Fork project
  • Create github issue describing problem / improvement
  • Create branch (e.g git checkout -b issue42 )
  • Write Code
  • Quick tests
puppet parser validate foo.pp  
gem install puppet-lint  
puppet-lint --no-80chars-check --no-class_inherits_from_params_class-check --no-autoloader_layout-check manifests/*.pp 
  • Add spec tests to spec/classes/gitlab_spec.rb Additional information can be found here

gem install puppetlabs_spec_helper

  • Run rake tests
export PUPPET_VERSION=$(facter puppetversion)
export FACTER_VERSION=$(facter facterversion)
export STRICT_VARIABLES=yes
rake spec
  • If tests pass, create merge request

OCD

Try and keep the order and spacing of parameters in the init.pp and params.pp the same as the official gitlab config files.

gitlab.yml.erb

default.rb

Guard

A Guardfile has been provided for your convenience

gem install guard
gem install guard-rake

export PUPPET_VERSION=$(facter puppetversion)  
export FACTER_VERSION=$(facter facterversion)
export STRICT_VARIABLES=yes
guard

Now any changes made to manifests/*.pp will trigger the guard process to run rake spec