concourse

pdk
Install and configure Concourse CI (https://concourse-ci.org).

Chadwick Banning

walkamongus

4,259 downloads

2,824 latest version

5.0 quality score

Version information

  • 1.0.0 (latest)
  • 0.2.0
  • 0.1.0
released May 10th 2019
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific

Start using this module

Documentation

walkamongus/concourse — version 1.0.0 May 10th 2019

Build Status

concourse

Table of Contents

  1. Description
  2. Setup - The basics of getting started with concourse
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.

Description

This module installs and configures the Concourse CI server and fly CLI (https://concourse-ci.org).

Setup

What concourse affects

This module will download and install Concourse and the fly cli. It will also create Concourse work directories and optionally generate and authorize needed SSH keypairs.

WARNING: Concourse requires Linux kernel 3.19+. On Redhat 7, this module will install the ELRepo.org yum repository and upgrade the kernel to the current LTS version. A reboot will likely be necessary once this is done before Concourse beings functioning correctly.

Setup Requirements

This module will not install a database for Concourse. You should pair this module with something like puppetlabs/postgresql to install and configure the database.

You should be familiar with Concourse before configuring it via this module. There are many configuration environment variables that may be set and some are specific to the node being run (web or worker). The best documentation of these variables is via the cli:

  $ concourse --help
  $ concourse web --help
  $ concourse worker --help

Beginning with concourse

Including the class will install and configure a standalone Concourse server (web and worker) with a default "quickstart" configuration.

  include concourse

Usage

Example: Install Postgresql 9.6 (via puppetlabs/postgresql) and a standalone Concourse server, with web and a worker running on the same machine:

  class { '::postgresql::globals': version => '9.6' }

  class { '::postgresql::server': }

  postgresql::server::db { 'concourse':
    user     => 'concourse',
    password => postgresql_password('concourse', 'changeme'),
  }

  class { '::concourse':
    node_type    => 'standalone',
    version      => '4.2.1',
    environment  => {
      'CONCOURSE_EXTERNAL_URL'                 => "http://${facts['fqdn']}:8080",
      'CONCOURSE_WORK_DIR'                     => '/opt/concourse/worker',
      'CONCOURSE_SESSION_SIGNING_KEY'          => '/opt/concourse/session_signing_key',
      'CONCOURSE_TSA_HOST_KEY'                 => '/opt/concourse/tsa_host_key',
      'CONCOURSE_TSA_PUBLIC_KEY'               => '/opt/concourse/tsa_host_key.pub',
      'CONCOURSE_TSA_WORKER_PRIVATE_KEY'       => '/opt/concourse/worker_key',
      'CONCOURSE_TSA_AUTHORIZED_KEYS'          => '/opt/concourse/authorized_worker_keys',
      'CONCOURSE_POSTGRES_USER'                => 'concourse',
      'CONCOURSE_POSTGRES_PASSWORD'            => 'changeme',
      'CONCOURSE_POSTGRES_DATABASE'            => 'concourse',
      'CONCOURSE_ADD_LOCAL_USER                => 'myuser:mypass',
      'CONCOURSE_MAIN_TEAM_LOCAL_USER'         => 'myuser',
    },
    require      => Postgresql::Server::Db['concourse'],
  }

Limitations

TBD.