2012-04-11 23:54:13 +02:00
|
|
|
define apt::conf (
|
2012-05-04 01:59:13 +02:00
|
|
|
$ensure = present,
|
2012-04-11 23:54:13 +02:00
|
|
|
$priority = '50',
|
|
|
|
$content
|
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,
|
2012-04-11 23:54:13 +02:00
|
|
|
content => $content,
|
|
|
|
owner => root,
|
|
|
|
group => root,
|
2012-04-12 02:49:30 +02:00
|
|
|
mode => '0644',
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
}
|