Set container apt sources to use a configured list of components
re: http://lists.openstack.org/pipermail/openstack-dev/2016-February/086000.html Ubuntu has 4 different 'components' - main, universe, multiverse and restricted: - Main: Officially supported software. - Restricted: Supported software that is not available under a completely free license. - Universe: Community maintained software, i.e. not officially supported software. - Multiverse: Software that is not free. Practically speaking there should be nothing particularly useful to OpenStack-Ansible in Restricted or Multiverse - it's mostly software for desktop users. This patch introduces a new variable 'lxc_container_template_apt_components' which is a list of the components to configure in the apt sources list. The default list does not include the unnecessary components. Change-Id: I0eef6454d273f5ba1977a68151fbf6103ff3ed8d
This commit is contained in:
parent
76cc8fd362
commit
f21bb596ab
@ -55,7 +55,9 @@ lxc_container_template_options: >
|
|||||||
|
|
||||||
lxc_container_template_main_apt_repo: "https://mirror.rackspace.com/ubuntu"
|
lxc_container_template_main_apt_repo: "https://mirror.rackspace.com/ubuntu"
|
||||||
lxc_container_template_security_apt_repo: "https://mirror.rackspace.com/ubuntu"
|
lxc_container_template_security_apt_repo: "https://mirror.rackspace.com/ubuntu"
|
||||||
|
lxc_container_template_apt_components:
|
||||||
|
- main
|
||||||
|
- universe
|
||||||
|
|
||||||
# Required apt packages.
|
# Required apt packages.
|
||||||
lxc_apt_packages:
|
lxc_apt_packages:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Sources created by the ansible
|
# {{ ansible_managed }}
|
||||||
deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }} main restricted universe multiverse
|
deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }} {{ lxc_container_template_apt_components | join(" ") }}
|
||||||
deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-updates main restricted universe multiverse
|
deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-updates {{ lxc_container_template_apt_components | join(" ") }}
|
||||||
deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-backports main restricted universe multiverse
|
deb {{ lxc_container_template_main_apt_repo }} {{ lxc_container_release }}-backports {{ lxc_container_template_apt_components | join(" ") }}
|
||||||
deb {{ lxc_container_template_security_apt_repo }} {{ lxc_container_release }}-security main restricted universe multiverse
|
deb {{ lxc_container_template_security_apt_repo }} {{ lxc_container_release }}-security {{ lxc_container_template_apt_components | join(" ") }}
|
||||||
|
Loading…
Reference in New Issue
Block a user