Merge commit '92aa5a51e95d74604a40318558aa98f70fcf7720'.
A bunch of painlessly merged commits. Conflicts: manifests/init.pp
This commit is contained in:
commit
3de76e7b05
7 changed files with 26 additions and 15 deletions
|
@ -104,6 +104,8 @@ class apt {
|
|||
include apt::preferences::absent
|
||||
}
|
||||
default: {
|
||||
# When squeeze becomes the stable branch, transform this file's header
|
||||
# into a preferences.d file
|
||||
include apt::preferences
|
||||
}
|
||||
}
|
||||
|
@ -119,12 +121,13 @@ class apt {
|
|||
],
|
||||
}
|
||||
|
||||
if $apt_unattended_upgrades {
|
||||
include apt::unattended_upgrades
|
||||
}
|
||||
|
||||
# watch apt.conf.d
|
||||
# watch .d directories and ensure they are present
|
||||
file { "/etc/apt/apt.conf.d": ensure => directory, checksum => mtime; }
|
||||
file { "/etc/apt/sources.list.d":
|
||||
ensure => directory,
|
||||
checksum => mtime,
|
||||
notify => Exec['refresh_apt'],
|
||||
}
|
||||
|
||||
exec {
|
||||
# "&& sleep 1" is workaround for older(?) clients
|
||||
|
@ -164,7 +167,11 @@ class apt {
|
|||
alias => "custom_keys",
|
||||
subscribe => File["${apt_base_dir}/keys.d"],
|
||||
refreshonly => true,
|
||||
before => Concatenated_file[apt_config];
|
||||
}
|
||||
if $custom_preferences != false {
|
||||
Exec["custom_keys"] {
|
||||
before => Concatenated_file[apt_config],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
class apt::preferences::absent {
|
||||
include common::moduledir
|
||||
$apt_preferences_dir = "${common::moduledir::module_dir_path}/apt/preferences"
|
||||
concatenated_file{'/etc/apt/preferences':
|
||||
dir => $apt_preferences_dir,
|
||||
file {'/etc/apt/preferences':
|
||||
ensure => absent,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,10 @@ define apt::preferences_snippet(
|
|||
$release,
|
||||
$priority
|
||||
){
|
||||
if $custom_preferences == false {
|
||||
fail("Trying to define a preferences_snippet with \$custom_preferences set to false.")
|
||||
}
|
||||
|
||||
include apt::preferences
|
||||
|
||||
file { "${apt::preferences::apt_preferences_dir}/${name}":
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class apt::proxy_client {
|
||||
|
||||
$real_apt_proxy = $apt_proxy ? {
|
||||
"" => "localhost",
|
||||
"" => "http://localhost",
|
||||
default => $apt_proxy
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ define apt::sources_list (
|
|||
|
||||
file { "/etc/apt/sources.list.d/${name}":
|
||||
ensure => $ensure,
|
||||
notify => Exec['refresh_apt'],
|
||||
owner => root, group => 0, mode => 0600;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,8 +7,12 @@ class apt::unattended_upgrades {
|
|||
apt_conf { "50unattended-upgrades":
|
||||
source => ["puppet:///modules/site-apt/50unattended-upgrades",
|
||||
"puppet:///modules/apt/50unattended-upgrades" ],
|
||||
|
||||
before => Concatenated_file[apt_config],
|
||||
require => Package['unattended-upgrades'],
|
||||
}
|
||||
|
||||
if $custom_preferences != false {
|
||||
Apt_conf["50unattended-upgrades"] {
|
||||
before => Concatenated_file[apt_config],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# This file is brought to you by Puppet
|
||||
# all local modifications will be overwritten
|
||||
|
||||
Acquire::http { Proxy "http://<%= real_apt_proxy %>:<%= real_apt_proxy_port %>"; };
|
||||
Acquire::http { Proxy "<%= real_apt_proxy %>:<%= real_apt_proxy_port %>"; };
|
||||
|
|
Loading…
Reference in a new issue