Parametrized sources download options for ubuntu.
We do not want to mirror all source packages to aptly, but just in
case it is required - there is a parameter for it.
Change-Id: Ib48c4539aa5f2720633a4ee1c6f1982fe2511661
diff --git a/aptly/server/docker.yml b/aptly/server/docker.yml
index 3fa0a8e1..4e70a92 100644
--- a/aptly/server/docker.yml
+++ b/aptly/server/docker.yml
@@ -6,6 +6,8 @@
aptly_gpg_keypair_id: none
aptly_gpg_public_key: none
aptly_gpg_private_key: none
+ aptly_server_mirror_sources: false
+ aptly_server_mirror_ubuntu_sources: ${_param:aptly_server_mirror_sources}
aptly:
server:
enabled: true
diff --git a/aptly/server/mirror/ubuntu/trusty/ubuntu.yml b/aptly/server/mirror/ubuntu/trusty/ubuntu.yml
index 3cd7c7b..3495967 100644
--- a/aptly/server/mirror/ubuntu/trusty/ubuntu.yml
+++ b/aptly/server/mirror/ubuntu/trusty/ubuntu.yml
@@ -1,6 +1,7 @@
parameters:
_param:
linux_system_country_code: cz
+ aptly_server_mirror_ubuntu_trusty_sources: ${_param:aptly_server_mirror_ubuntu_sources}
aptly:
server:
mirror:
@@ -8,6 +9,7 @@
trusty-main:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: trusty
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
components: main
architectures: amd64
gpgkeys:
@@ -21,6 +23,7 @@
trusty-multiverse:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: trusty
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
components: multiverse
architectures: amd64
gpgkeys:
@@ -33,6 +36,7 @@
- ubuntu/trusty
trusty-restricted:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty
components: restricted
architectures: amd64
@@ -46,6 +50,7 @@
- ubuntu/trusty
trusty-universe:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty
components: universe
architectures: amd64
@@ -61,6 +66,7 @@
# trusty-updates
trusty-updates-main:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-updates
components: main
architectures: amd64
@@ -74,6 +80,7 @@
- ubuntu/trusty-updates
trusty-updates-multiverse:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-updates
components: multiverse
architectures: amd64
@@ -87,6 +94,7 @@
- ubuntu/trusty-updates
trusty-updates-restricted:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-updates
components: restricted
architectures: amd64
@@ -100,6 +108,7 @@
- ubuntu/trusty-updates
trusty-updates-universe:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-updates
components: universe
architectures: amd64
@@ -115,6 +124,7 @@
#trusty-security:
trusty-security-main:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-security
components: main
architectures: amd64
@@ -128,6 +138,7 @@
- ubuntu/trusty-security
trusty-security-multiverse:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-security
components: multiverse
architectures: amd64
@@ -141,6 +152,7 @@
- ubuntu/trusty-security
trusty-security-restricted:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-security
components: restricted
architectures: amd64
@@ -154,6 +166,7 @@
- ubuntu/trusty-security
trusty-security-universe:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-security
components: universe
architectures: amd64
@@ -169,6 +182,7 @@
#trusty-proposed:
trusty-proposed-main:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-proposed
components: main
architectures: amd64
@@ -182,6 +196,7 @@
- ubuntu/trusty-proposed
trusty-proposed-multiverse:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-proposed
components: multiverse
architectures: amd64
@@ -195,6 +210,7 @@
- ubuntu/trusty-proposed
trusty-proposed-restricted:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-proposed
components: restricted
architectures: amd64
@@ -208,6 +224,7 @@
- ubuntu/trusty-proposed
trusty-proposed-universe:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-proposed
components: universe
architectures: amd64
@@ -223,6 +240,7 @@
#trusty-backports:
trusty-backports-main:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-backports
components: main
architectures: amd64
@@ -236,6 +254,7 @@
- ubuntu/trusty-backports
trusty-backports-multiverse:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-backports
components: multiverse
architectures: amd64
@@ -249,6 +268,7 @@
- ubuntu/trusty-backports
trusty-backports-restricted:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-backports
components: restricted
architectures: amd64
@@ -262,6 +282,7 @@
- ubuntu/trusty-backports
trusty-backports-universe:
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
+ sources: ${_param:aptly_server_mirror_ubuntu_trusty_sources}
distribution: trusty-backports
components: universe
architectures: amd64
diff --git a/aptly/server/mirror/ubuntu/xenial/ubuntu.yml b/aptly/server/mirror/ubuntu/xenial/ubuntu.yml
index 4675063..6b41aee 100644
--- a/aptly/server/mirror/ubuntu/xenial/ubuntu.yml
+++ b/aptly/server/mirror/ubuntu/xenial/ubuntu.yml
@@ -2,12 +2,13 @@
_param:
linux_system_country_code_default: cz
linux_system_country_code: ${_param:linux_system_country_code_default}
+ aptly_server_mirror_ubuntu_xenial_sources: ${_param:aptly_server_mirror_ubuntu_sources}
aptly:
server:
mirror:
# xenial
xenial-main:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial
components: main
@@ -21,7 +22,7 @@
distributions:
- ubuntu/xenial
xenial-multiverse:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial
components: multiverse
@@ -35,7 +36,7 @@
distributions:
- ubuntu/xenial
xenial-restricted:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial
components: restricted
@@ -49,7 +50,7 @@
distributions:
- ubuntu/xenial
xenial-universe:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial
components: universe
@@ -65,7 +66,7 @@
# xenial-updates
xenial-updates-main:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-updates
components: main
@@ -79,7 +80,7 @@
distributions:
- ubuntu/xenial-updates
xenial-updates-multiverse:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-updates
components: multiverse
@@ -93,7 +94,7 @@
distributions:
- ubuntu/xenial-updates
xenial-updates-restricted:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-updates
components: restricted
@@ -107,7 +108,7 @@
distributions:
- ubuntu/xenial-updates
xenial-updates-universe:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-updates
components: universe
@@ -123,7 +124,7 @@
#xenial-security:
xenial-security-main:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-security
components: main
@@ -137,7 +138,7 @@
distributions:
- ubuntu/xenial-security
xenial-security-multiverse:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-security
components: multiverse
@@ -151,7 +152,7 @@
distributions:
- ubuntu/xenial-security
xenial-security-restricted:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-security
components: restricted
@@ -165,7 +166,7 @@
distributions:
- ubuntu/xenial-security
xenial-security-universe:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-security
components: universe
@@ -181,7 +182,7 @@
#xenial-proposed:
xenial-proposed-main:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-proposed
components: main
@@ -195,7 +196,7 @@
distributions:
- ubuntu/xenial-proposed
xenial-proposed-multiverse:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-proposed
components: multiverse
@@ -263,7 +264,7 @@
distributions:
- ubuntu/xenial-backports
xenial-backports-restricted:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-backports
components: restricted
@@ -277,7 +278,7 @@
distributions:
- ubuntu/xenial-backports
xenial-backports-universe:
- sources: true
+ sources: ${_param:aptly_server_mirror_ubuntu_xenial_sources}
source: http://${_param:linux_system_country_code}.archive.ubuntu.com/ubuntu/
distribution: xenial-backports
components: universe
diff --git a/aptly/server/single.yml b/aptly/server/single.yml
index 8b71974..e8da341 100644
--- a/aptly/server/single.yml
+++ b/aptly/server/single.yml
@@ -6,6 +6,8 @@
_param:
nginx_aptly_server_host: ${linux:network:fqdn}
aptly_server_secure: true
+ aptly_server_mirror_sources: false
+ aptly_server_mirror_ubuntu_sources: ${_param:aptly_server_mirror_sources}
iptables:
service:
enabled: true