The systemd-nspawn template has been updated to better support for
modern systems. This was primarily done for better centos and suse
support which have older versions of systemd.
Change-Id: I4c01102dae8445317a3a891861f2cd4bef20492b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Cleanup mount docs, remove redundant config, and set the default backup
mount. These change bring nspawn inline with our LXC capabilities. To
ensure the LXC and nspawn capabilities are on level footing, the read
only bind mount was removed.
Change-Id: I62e2c4ed2b3c7af879e58fca1b22c7dda93fc518
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Macvlan interfaces can have a user defined interface within the host
config. This change ensures that the capability, which is documented in
the nspawn_host role, is actually functional.
Change-Id: I083042a791d9213b9b1872a239dc18dc6c7ae46e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The combined networks variable will allow deployers to set basic
container networks, default nspawn networks, and any "extra" networks a
deployer may need outside of a standard build.
Change-Id: I0cfed0ad6cce99c420c31920446e0a69a82fa602
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The container network creation process needs to assume that the bridge
name is available and fall back to the interface. Previously this was
being done in reverse.
Change-Id: I51829349b5bc3f97c100a379b13f7e99f4007228
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The changes here remove the boiler plate code we had in favor of using
all of our common roles. This also updates the nspawn role using some of
the learnings we've had from our recent LXC changes and ensures we're
not breaking any compatibility we had with our various distros.
Add option to run a full config update if required
> As a deployer I need the ability to make a sweeping change to container
configs if required. At present the nspawn container create role will
attempt to preserve the configs and update only what's required, which
is desirable when maintaining uptime. This change provides the option
`nspawn_container_preserve_config` which, if set to "false" will
template the container configs instead of trying to preserve it.
Document everything in config
Change-Id: Ie969c10578e1102767ad8991c9d6171b547aef87
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This change corrects environment settings and ensures new containers all
use private networking.
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>