Update copy from host options

This change removes some more boiler plate and ensures all of the
required files are copied into the base container image.

Change-Id: I4f74364d0969363297b286ae8327291659d20a00
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-05-18 00:41:55 -05:00
parent cc12447bfd
commit 559987522a
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
5 changed files with 14 additions and 14 deletions

View File

@ -107,11 +107,20 @@ nspawn_cache_prep_dns:
nspawn_cache_map: "{{ _nspawn_cache_map | default({}) }}"
# Default list of files to copy from the host into the container when the
# default cache is created.
# default cache is created. This list is merged to create the list of files
# to copy into the container base image which is captured under the
# `nspawn_copy_from_host` option.
nspawn_default_copy_from_host:
- /etc/default/locale
- /etc/environment
- /etc/localtime
- /etc/locale.conf
- /etc/protocols
# nspawn_copy_from_host:
# - /etc/resolve.conf
# - /etc/apt/sources.list
nspawn_copy_from_host: "{{ _nspawn_copy_from_host | default([]) }}"
nspawn_copy_from_host: "{{ nspawn_default_copy_from_host | union(_nspawn_copy_from_host | default([])) }}"
# Default list of files to copy from the host into the container when the
# default cache is created. This list will be merged with the option

View File

@ -58,6 +58,5 @@ _nspawn_cache_map:
release: 7
_nspawn_copy_from_host:
- /etc/localtime
- /etc/pki/rpm-gpg/
- /etc/yum.repos.d/

View File

@ -54,9 +54,7 @@ _nspawn_cache_map:
release: "{{ hostvars[physical_host]['ansible_distribution_version'] }}"
_nspawn_copy_from_host:
- /etc/localtime
- /etc/zypp/repos.d/repo-oss.repo
- /etc/zypp/repos.d/repo-update.repo
- /etc/zypp
## Set default mirror for openSUSE repositories
# NOTE(hwoarang): Ensure that the full path to the 'opensuse' directory is used.

View File

@ -55,7 +55,4 @@ _nspawn_cache_map:
release: xenial
_nspawn_copy_from_host:
- /etc/apt/apt.conf.d/
- /etc/apt/preferences.d/
- /etc/apt/sources.list
- /etc/localtime
- /etc/apt

View File

@ -55,7 +55,4 @@ _nspawn_cache_map:
release: bionic
_nspawn_copy_from_host:
- /etc/apt/apt.conf.d/
- /etc/apt/preferences.d/
- /etc/apt/sources.list
- /etc/localtime
- /etc/apt