2012-04-11 23:54:13 +02:00
|
|
|
define apt::conf (
|
2012-08-21 22:55:24 +02:00
|
|
|
$content,
|
2012-05-04 01:59:13 +02:00
|
|
|
$ensure = present,
|
2012-08-21 22:55:24 +02:00
|
|
|
$priority = '50'
|
2012-05-03 18:51:14 +02:00
|
|
|
) {
|
2012-04-11 23:54:13 +02:00
|
|
|
|
|
|
|
include apt::params
|
|
|
|
|
2012-04-12 02:49:30 +02:00
|
|
|
$apt_conf_d = $apt::params::apt_conf_d
|
2012-04-11 23:54:13 +02:00
|
|
|
|
|
|
|
file { "${apt_conf_d}/${priority}${name}":
|
2012-05-04 01:59:13 +02:00
|
|
|
ensure => $ensure,
|
2014-08-31 15:46:57 +02:00
|
|
|
content => template('apt/_header.erb', 'apt/conf.erb'),
|
2012-04-11 23:54:13 +02:00
|
|
|
owner => root,
|
|
|
|
group => root,
|
2012-04-12 02:49:30 +02:00
|
|
|
mode => '0644',
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
}
|