Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 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, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 3.0.0
Start using this module
Add this module to your Puppetfile:
mod 'dsestero-gitblit', '1.0.3'
Learn more about managing modules with a PuppetfileDocumentation
#gitblit
####Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with gitblit
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
##Overview
This is the gitblit module. It installs, sets up and starts the gitblit service to allow small groups to host their Git repositories and make them accessible with a web browser.
##Module Description
The module installs the Jetty app server, then download and install the distribution of gitblit war, and sets up the file system in order to run the gitblit service.
##Setup
###What gitblit affects
The module installs the jetty
package which in turn creates a jetty system user.
Furthermore, the module installs the Gitblit war distribution, sets up jetty defaults
in /etc/defaults/jetty
and register at boot and starts the jetty service, listening on the specified port.
###Setup Requirements
This modules requires the following other modules to be installed:
-
dsestero/download_uncompress
to provide the basic capability to download and unzip the Gitblit distribution
-
dsestero/java
to install a suitable java development environment
###Beginning with gitblit
To install Gitblit as a service with default configuration, it is possible to use a declaration as the following:
include gitblit
##Usage
To install the Gitblit service listening on port 9090 and hosting the git repositories under /srv/git a typical declaration would be:
class gitblit { 'install_gitblit':
port => '9090',
gitblit_home => '/srv/git',
}
##Reference
###Public Classes
gitblit::gitblit
: Manages gitblit
###Private Classes
gitblit::params
: Specifies the module defaultsgitblit::install
: Installs the module artifactsgitblit::config
: Configures the module artifactsgitblit::service
: Sets up the service
###gitblit::gitblit
Installs, configure and sets up a gitblit service.
####Parameters
#####distribution
String. Name or full url of the Gitblit war distribution to download.
Defaults to gitblit-1.6.2.war
which will be downloaded from the distributions_base_url
key defined in hiera (see the README of the download_uncompress module).
#####port
String. Port the jetty service will use. Defaults to 8080
.
#####gitblit_home
String. Path of the directory where Gitblib repositories will be hosted.
Defaults to /var/lib/gitblit
.
##Limitations
At the moment the module targets only OpenJDK on Ubuntu platforms. Specifically, it is tested only on Ubuntu 12.04 distributions, although probably it will work also on more recent versions.
##Development
If you need some feature please send me a (pull) request or send me an email at: dsestero 'at' gmail 'dot' com.
##2015-07-12 - Release - 1.0.3 ###Summary Bump version number after testing with Puppet 4.
##2015-05-20 - Release - 1.0.2 ###Summary Fixed a little error in the README.markdown documentation.
##2015-05-20 - Release - 1.0.1 ###Summary Fixed a couple of warnings in order to improve the quality metrics.
##2015-05-20 - Release - 1.0.0 ###Summary Initial release as PuppetForge module.
####Features See the README.markdown
####Bugfixes
####Known bugs
- No known bugs
Dependencies
- dsestero/download_uncompress (1.x)
- dsestero/java (1.x)
Copyright (C) 2015 Dario Sestero Dario Sestero can be contacted at: dsestero 'at' gmail 'dot' com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.