2016-03-15 14:07:45 -07:00
|
|
|
# == Define: openstack_project::mirror_update
|
2016-01-26 10:19:53 -05:00
|
|
|
#
|
2016-03-15 14:07:45 -07:00
|
|
|
define openstack_project::reprepro (
|
2016-02-08 11:58:53 -06:00
|
|
|
$confdir,
|
|
|
|
$basedir,
|
|
|
|
$distributions,
|
2016-04-01 17:10:49 -04:00
|
|
|
$logdir = '/var/log/reprepro',
|
2016-07-04 11:55:59 -04:00
|
|
|
$updates_file = undef,
|
2016-01-26 10:19:53 -05:00
|
|
|
$options_template = 'openstack_project/reprepro/options.erb',
|
2016-02-08 11:58:53 -06:00
|
|
|
$releases = [],
|
2019-03-28 10:52:58 +11:00
|
|
|
$skip_backports_for = [],
|
2016-01-26 10:19:53 -05:00
|
|
|
) {
|
2016-02-08 11:58:53 -06:00
|
|
|
file { "$confdir":
|
|
|
|
ensure => directory,
|
|
|
|
}
|
|
|
|
|
2016-07-04 11:55:59 -04:00
|
|
|
if $updates_file != undef {
|
|
|
|
file { "${confdir}/updates":
|
|
|
|
ensure => present,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0755',
|
|
|
|
source => $updates_file,
|
|
|
|
}
|
2016-01-26 10:19:53 -05:00
|
|
|
}
|
|
|
|
|
2016-02-08 11:58:53 -06:00
|
|
|
file { "${confdir}/options":
|
2016-01-26 10:19:53 -05:00
|
|
|
ensure => present,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0755',
|
|
|
|
content => template($options_template),
|
|
|
|
}
|
|
|
|
|
2016-02-08 11:58:53 -06:00
|
|
|
file { "${confdir}/distributions":
|
2016-01-26 10:19:53 -05:00
|
|
|
ensure => present,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0755',
|
2016-02-08 11:58:53 -06:00
|
|
|
content => template($distributions),
|
2016-01-26 10:19:53 -05:00
|
|
|
}
|
|
|
|
}
|