system-config/modules/openstack_project/manifests/reprepro.pp
Monty Taylor 7ec1b3d7e3 Split reprepro config to allow for debian and ubuntu
We can't colocation debian and ubuntu - so allow for each having their
own pool independent pool structure.

Change-Id: I9fe0fa9769a5c0f6a852844b2db0dfb620e91375
2016-02-08 14:16:53 -06:00

57 lines
1.1 KiB
Puppet

# == Class: openstack_project::mirror_update
#
class openstack_project::reprepro (
$confdir,
$basedir,
$distributions,
$logdir = '/var/log/reprepro',
$updates_file = 'puppet:///modules/openstack_project/reprepro/updates',
$options_template = 'openstack_project/reprepro/options.erb',
$releases = [],
) {
package { 'reprepro':
ensure => present,
}
file { $logdir:
ensure => directory,
}
file { '/etc/reprepro':
ensure => directory,
}
file { "$confdir":
ensure => directory,
}
file { '/var/run/reprepro':
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),
}
}