diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-01-02 21:50:47 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-01-02 21:50:47 -0200 |
commit | d3400106d91ea075e515f7ed6912d8190f14cd87 (patch) | |
tree | b54127940989b6f0f02fbd2f5fe99f78373e0a94 /manifests/subsystem | |
parent | b7d1fbbab70463e8da7825c74c294553590945ca (diff) | |
download | puppet-nodo-d3400106d91ea075e515f7ed6912d8190f14cd87.tar.gz puppet-nodo-d3400106d91ea075e515f7ed6912d8190f14cd87.tar.bz2 |
Use https://deb.debian.org by default
Diffstat (limited to 'manifests/subsystem')
-rw-r--r-- | manifests/subsystem/apt.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp index f162705..04d6626 100644 --- a/manifests/subsystem/apt.pp +++ b/manifests/subsystem/apt.pp @@ -3,8 +3,12 @@ class nodo::subsystem::apt( $auto_upgrade = present, $hour = 2, $minute = 0, - $mirror = 'http://deb.debian.org', + $mirror = 'https://deb.debian.org', ) { + package { 'apt-transport-https': + ensure => installed, + } + # See https://www.cyberciti.biz/faq/howto-use-apt-get-with-ipv6-or-ipv4-transport-on-ubuntu-debian/ # https://unix.stackexchange.com/questions/370750/wget-uses-ipv6-address-and-takes-too-long-to-complete file { '/etc/apt/apt.conf.d/1000-force-ipv4-transport': @@ -21,7 +25,7 @@ class nodo::subsystem::apt( group => root, mode => '0644', notify => Exec['nodo-apt-auto-update'], - require => File['/etc/apt/apt.conf.d/1000-force-ipv4-transport'], + require => [ File['/etc/apt/apt.conf.d/1000-force-ipv4-transport'], Package['apt-transport-https'] ], content => $ensure ? { 'present' => template("nodo/apt/${::operatingsystem}.sources.list.erb"), default => undef, @@ -47,8 +51,4 @@ class nodo::subsystem::apt( hour => $hour, minute => $minute, } - - package { 'apt-transport-https': - ensure => installed, - } } |