Forge Home

kallithea

Manage Kallithea, a free source code management system

12,778 downloads

8,054 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.4.2 (latest)
  • 0.4.1
  • 0.4.0
  • 0.3.1
  • 0.3.0
  • 0.2.9
  • 0.2.8 (deleted)
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
released Jan 13th 2016
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >=2.7.0 <5.0.0
  • , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'rauch-kallithea', '0.4.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add rauch-kallithea
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install rauch-kallithea --version 0.4.2

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

rauch/kallithea — version 0.4.2 Jan 13th 2016

Puppet-Kallithea

Build Status Puppet Forge Dependency Status

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with kallithea
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module lets you setup a Kallithea instance.

Module Description

Kallithea is "a free software source code management system supporting two leading version control systems, Mercurial and Git." This module allows you to install, configure and run a working Kallithea instance. It does not make any attempt to setup an Apache reverse proxy or something similar, so this is up to you.

Setup

What kallithea affects

  • Required Packages for installing the kallithea python package (platform dependent)
  • The user under which Kallithea will run
  • The Kallithea users home, containing a Python virtualenv in which Kallithea gets installed
  • The Kallithea service
  • Installation of git (optionally)

Setup Requirements

For full functionality, Kallithea requires git to be installed. This module can optionally git as well, but this requires the puppetlabs/git module.

Beginning with kallithea

To get you up and running fast, simply declare

class { 'kallithea':
  seed_db => true,
}

This will install Kallithea in an isolated virtualenv and create a default configuration as described in the Kallithea setup documentation. As of Kallithea version 0.2.1, this default configuration will use an SQLite database backend, which is then initialized due to the seed_db parameter. A kallithea Systemd service is set up, which then gets started and enabled by default.

If everything worked well, you should be able to browse your Kallithea instance on http://localhost:5000, which can be accessed using the default credentials admin/adminpw

Usage

Put the classes, types, and resources for customizing, configuring, and doing the fancy stuff with your module here.

Reference

Classes

Public Classes

Private Classes

  • kallithea::config
  • kallithea::install
  • kallithea::params
  • kallithea::service

Defines

Class kallithea

Parameters (all optional)
  • admin_mail: Mail of the initial admin user, created during database initialization. Defaults to root@${::fqdn}.

  • admin_pass: Password of the initial admin user, created during database initialization. Defaults to adminpw.

  • admin_user: Name of the initial admin user, created during database initialization. Defaults to admin.

  • app_root: The directory under which Kallithea will be installed (i.e. the home directory of $app_user). Defaults to /srv/kallithea.

  • app_user: The user under which Kallithea will be installed. Defaults to kallithea.

  • config: If not undef, this will the content of Kallitheas main configuration file ${app_root}/kallithea.ini. Otherwise, it will be initialized with Kallitheas defaults during installation. Defaults to undef

  • config_hash: A hash of strings, used to add or update Kallitheas default INI-style configuration file. Keys correspond to sections the values, which must be string valued hashes of strings, correspond to key/value pairs within that section. For example,

    $config_hash => {
      'DEFAULT'  => {
        'key1'   => 'value1',
        'key2'   => 'value2',
      }
    }
    

    will create two settings key1 = value1 and key = value2 withing the DEFAULT section of Kallitheas configuration file.

    This parameter Will be ignored, if the $config parameter has been given.

  • ldap_support: If set to true, the python-ldap package and its dependencies will be installed into Kallitheas python environment. Defaults to true.

  • manage_git: Whether to install git using the puppetlabs/git module. Defaults to false.

  • manage_python: Whether to install Python using the stankevich/python module. Defaults to true.

  • port: Set Kallitheas listening port to specified value. Must be given as string. Defaults to whatever Kallitheas default is.

  • proxy: If not undef, this will be the HTTP proxy settings which are used when installing Kallithea via pip. Defaults to undef.

  • rcextensions: Setup a custom rcextensions package with provided content.

  • repo_root: The directory under which Kallithea will put the repositories. Defaults to ${app_root}/repos.

  • seed_db: Whether to initialize Kallitheas database during installation. A lockfile is created to prevent subsequent database resets (see documentation of the kallithea::seed_db class). Defaults to false.

  • service_enable: Whether to enable the Kallithea service on boot. Defaults to true.

  • service_ensure: Whether to start Kallithea as a service. Defaults to true.

  • service_provider: Set to override Puppets default service provider in the definition of the Kallithea service. Supported values are init and systemd.

  • version: The version of Kallithea which should be installed. If undef, the latest available version will be installed. Defaults to undef.

  • whoosh_cronjob: Setup cronjob for generating the index for Kallitheas Whoosh full text search. Defaults to true.

Note: The values of the parameters admin_mail, admin_pass and admin_user are only relevant if you are using seed_db => true.

Class kallithea::seed_db

This class lets you initialize the database backing Kallithea. You have to do this at least once in order to use your Kallithea instance. Applying this class is idempotent, i.e. subsequent puppet runs will not reinitialize the database, as long as you don't remove the lockfile under ${app_root}/.db_initialized.

Attention: Initializing Kallitheas database will wipe any previous data - use with care!

Parameters
  • user: Mail of the initial admin user, created during database initialization. Defaults to root@${::fqdn}.
  • pass: Password of the initial admin user, created during database initialization. Defaults to adminpw.
  • mail: Name of the initial admin user, created during database initialization. Defaults to admin.

Define kallithea::package

This define lets you install add ons for Kallithea by installing additional Python packages into Kallitheas virtualenv.

Parameters
  • title: The name of the Python package.

Define kallithea::ini_setting

This define allows you to manipulate Kallitheas INI-file configuration. It is the backend of main classes $config_hash parameter, which is the recommended usage. However, at times it might be advantageous to use this defined type directly, as it provides potentially more features. For example, by setting $ensure => absent, it is possible to completely remove configuration entries, which is not possible with the $config_hash parameter.

Parameters
  • setting: The name of the setting you want to manipulate. Required.
  • value: The value the specified setting should be set to. Required.
  • section: The name of the section, in which the setting should be placed. Defaults to undef.
  • ensure: Whether to set (present) or delete (absent) the specified setting. Defaults to present.

Limitations

This module has been developed been successfully tested using Kallithea v0.2.1 and v0.2.2 on the following operating systems:

  • CentOS/RHEL 6 and 7
  • Debian 7 and 8
  • Fedora 19 and 20
  • Ubuntu 12.04 and 14.04

Support for Debian 6 is planned for future releases.

Development

See the CONTRIBUTING.md file, which gets distributed as part of this module archive for information on how to contribute.