gitlabinstall

pdk
Dedicated GitLab installation

Alexander Ursu

aursu

2,881 downloads

464 latest version

5.0 quality score

Version information

  • 1.6.0 (latest)
  • 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 Nov 12th 2020
This version is compatible with:
  • Puppet Enterprise 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 < 7.0.0
  • CentOS

Start using this module

Documentation

aursu/gitlabinstall — version 1.6.0 Nov 12th 2020

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 OPTIONAL

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/v2.0.1-rc0.4

and for Puppetfile:

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

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.5.4'

Also requires non-published on Puppet Forge module aursu::dockerinstall which is set of different Docker related features

Puppetfile setup:

mod 'dockerinstall',
  :git => 'https://github.com/aursu/puppet-dockerinstall.git',
  :tag => 'v0.8.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