Puppet Class: contint::composer

Defined in:
modules/contint/manifests/composer.pp

Overview

Class contint::composer

Install composer as /usr/local/bin/composer using a Git repository from Gerrit. Useful until composer is properly packaged for our distributions.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/contint/manifests/composer.pp', line 6

class contint::composer {

    require ::contint::deployment_dir

    git::clone { 'jenkins CI Composer':
        ensure             => 'present',
        directory          => '/srv/deployment/integration/composer',
        origin             => 'https://gerrit.wikimedia.org/r/integration/composer.git',
        recurse_submodules => true,
    }

    # Create a symlink for the composer executable
    file { '/usr/local/bin/composer':
        ensure => 'link',
        target => '/srv/deployment/integration/composer/vendor/bin/composer',
    }
}