6b82c8b3da
It was removed in I0a12bc4cb67339a7566fb113bbbc897d4f112f50 by mistake. Change-Id: I42050405686364c30d825198d74077d121a349da Signed-off-by: Paul Belanger <pabelanger@redhat.com>
40 lines
818 B
Puppet
40 lines
818 B
Puppet
# == Define: openstack_project::mirror_update
|
|
#
|
|
define openstack_project::reprepro (
|
|
$confdir,
|
|
$basedir,
|
|
$distributions,
|
|
$logdir = '/var/log/reprepro',
|
|
$updates_file,
|
|
$options_template = 'openstack_project/reprepro/options.erb',
|
|
$releases = [],
|
|
) {
|
|
file { "$confdir":
|
|
ensure => directory,
|
|
}
|
|
|
|
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),
|
|
}
|
|
}
|