327cfa7893
This is a follow-on to I39cb9dc0aa52cf5b20545baf4acacc21c5459f2a; as buster has no backports we need to skip this in the reprepro configuration. It's a bit hacky, but we can revert when it is available. Change-Id: I60e231f23999d0af9c899a30822c71702befb2bd
43 lines
902 B
Puppet
43 lines
902 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 = [],
|
|
$skip_backports_for = [],
|
|
) {
|
|
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),
|
|
}
|
|
}
|