system-config/modules/openstack_project/manifests/reprepro.pp
Paul Belanger bec8458406
Add reprepro to release slave
The Packaging-deb team will be starting to publish packages to AFS.
This patch is the first step to allow that.

Change-Id: I9d8d5ce384a371042928587c0debf0da37352ad8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-04 12:00:05 -04:00

42 lines
874 B
Puppet

# == Define: openstack_project::mirror_update
#
define openstack_project::reprepro (
$confdir,
$basedir,
$distributions,
$logdir = '/var/log/reprepro',
$updates_file = undef,
$options_template = 'openstack_project/reprepro/options.erb',
$releases = [],
) {
file { "$confdir":
ensure => directory,
}
if $updates_file != undef {
file { "${confdir}/updates":
ensure => present,
owner => 'root',
group => 'root',
mode => '0755',
source => $updates_file,
}
}
file { "${confdir}/options":
ensure => present,
owner => 'root',
group => 'root',
mode => '0755',
content => template($options_template),
}
file { "${confdir}/distributions":
ensure => present,
owner => 'root',
group => 'root',
mode => '0755',
content => template($distributions),
}
}