Puppet Class: profile::idp::build
- Defined in:
- modules/profile/manifests/idp/build.pp
Summary
Class to build debs for Apereo CASOverview
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 |
# File 'modules/profile/manifests/idp/build.pp', line 3
class profile::idp::build {
ensure_packages(['dpkg-dev', 'debhelper', 'dh-exec', 'build-essential'])
wmflib::dir::mkdir_p('/srv/cas-build/cas')
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'),
}
profile::auto_restarts::service { 'rsync': }
}
|