Puppet Class: profile::idp::build

Defined in:
modules/profile/manifests/idp/build.pp

Summary

Class to build debs for Apereo CAS

Overview

SPDX-License-Identifier: Apache-2.0



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/profile/manifests/idp/build.pp', line 3

class profile::idp::build {

    ensure_packages(['dpkg-dev', 'debhelper'])
    ensure_packages(['dh-exec', 'build-essential', 'default-jdk-headless'])

    file { '/srv/cas-build/cas':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
    }

    git::clone { 'operations/software/cas-overlay-template':
        ensure    => latest,
        owner     => 'root',
        group     => 'root',
        directory => '/srv/cas-build/cas',
    }

    # Set up an rsync module to allow easy copying of the built DEB
    class { 'rsync::server': }
    rsync::server::module { 'cas-build-result':
        path => '/srv/cas-build/',
    }

    firewall::service { 'cas_build_rsync':
        proto  => 'tcp',
        port   => [873],
        srange => wmflib::role::hosts('apt_repo'),
    }
}