10 $_file = merge($::apt::file_defaults, $file_perms)
12 if $content and $source {
13 fail('apt::setting cannot have both content and source')
16 if !$content and !$source {
17 fail('apt::setting needs either of content or source')
20 validate_re($type, ['conf', 'pref', 'list'])
21 validate_re($ensure, ['file', 'present', 'absent'])
23 unless is_integer($priority) {
24 fail('apt::setting priority must be an integer')
28 validate_string($source)
32 validate_string($content)
38 $_priority = $priority
41 $_path = $::apt::config_files[$type]['path']
42 $_ext = $::apt::config_files[$type]['ext']
44 file { "${_path}/${_priority}${title}${_ext}":
46 owner => $_file['owner'],
47 group => $_file['group'],
48 mode => $_file['mode'],