Forge Home

gitlabinstall

Dedicated GitLab installation

5,681 downloads

272 latest version

5.0 quality score

Version information

  • 1.9.5 (latest)
  • 1.9.4
  • 1.7.3
  • 1.7.2
  • 1.7.1
  • 1.6.0
  • 1.5.1
  • 1.4.0
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.5
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.2
  • 1.0.1
released May 2nd 2022
This version is compatible with:
  • Puppet Enterprise 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 8.0.0

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'aursu-gitlabinstall', '1.9.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add aursu-gitlabinstall
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install aursu-gitlabinstall --version 1.9.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

aursu/gitlabinstall — version 1.9.5 May 2nd 2022

gitlabinstall

Table of Contents

  1. Description
  2. Setup - The basics of getting started with gitlabinstall
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

This module main goal is to install GitLab and provide ability to intagrate it with externally managed Nginx, Postgres and Docker Registry.

Setup

What gitlabinstall affects OPTIONAL

gitlabinstall installs gitlab-ce Omnibus package from https://packages.gitlab.com/gitlab/gitlab-ce. Exact package version should be provided

Also it could manage Nginx setup (non-bundled) and Postgres setup (also non-bundled)

SSL certificates management is also included

Setup Requirements

It requires to use custom fork of Puppet Nginx module located on GitHub.

For .fixtures.yml

nginx:
  repo: https://github.com/aursu/puppet-nginx.git
  ref: tags/v3.0.1-rc0.2

and for Puppetfile:

mod 'nginx',
  :git => 'https://github.com/aursu/puppet-nginx.git',
  :tag => 'v3.0.1-rc0.2'

Also requires non-published on Puppet Forge module aursu::lsys which is set of different basic profiles

Puppetfile setup:

mod 'lsys',
  :git => 'https://github.com/aursu/puppet-lsys.git',
  :tag => 'v0.21.0'

Beginning with gitlabinstall

Main class for GitLab installation is gitlabinstall::gitlab:

class { 'gitlabinstall':
  external_url          => 'https://gitlab.domain.tld',
}
class { 'gitlabinstall::gitlab':
  database_password     => 'secret',
  gitlab_package_ensure => '13.3.5-ce.0.el7',
}

Usage

External container registry integration

Use it with registry installed on separate host and on the same host as PuppetDB:

  class { 'gitlabinstall':
    external_url          => 'https://gitlab.domain.tld',
  }

  class { 'gitlabinstall::gitlab':
    cert_identity             => '*.domain.tld',
    # DevCI has PuppetDB which listen on 8080, PuppetDB could be used
    # externally but not GitLab Unicorn
    gitlab_rails_port         => 8008,
    monitoring                => false,
    external_registry_service => true,
    registry_host             => 'registry.domain.tld',
    registry_api_url          => 'http://registry.domain.tld:5000',
    gitlab_package_ensure     => '12.10.14-ce.0.el7',
  }

Use it with registry on the same host:

  class { 'gitlabinstall':
    external_url          => 'https://gitlab.domain.tld',
  }

  class { 'gitlabinstall::gitlab':
    cert_identity             => '*.domain.tld',
    external_registry_service => true,
    registry_host             => 'registry.domain.tld',
  }

LDAP settings

Basic setup:

  class { 'gitlabinstall':
    external_url          => 'https://gitlab.domain.tld',
    ldap_enabled          => true,
    ldap_host             => 'ldap.mydomain.com',
    ldap_password         => 'secret',
    ldap_base             => 'ou=people,dc=gitlab,dc=example',
  }

  class { 'gitlabinstall::gitlab':
    cert_identity             => '*.domain.tld',
    external_registry_service => true,
    registry_host             => 'registry.domain.tld',
  }

With more LDAP settings:

  class { 'gitlabinstall':
    external_url          => 'https://gitlab.domain.tld',
  }

  class { 'gitlabinstall::ldap':
    host                  => 'ldap.mydomain.com',
    password              => 'secret',
    base                  => 'ou=people,dc=gitlab,dc=example',

    bind_dn               => 'CN=Gitlab,OU=Users,DC=domain,DC=com',
  }

  class { 'gitlabinstall::gitlab':
    cert_identity             => '*.domain.tld',
    external_registry_service => true,
    registry_host             => 'registry.domain.tld',
    ldap_enabled              => true,
  }

Reference

See REFERENCE.md

Limitations

Development

Release Notes/Contributors/Etc. Optional