Commit Graph

4 Commits

Author SHA1 Message Date
Kevin Carter 1cb76ab4ca
Make the networkd role distro agnostic
To make this role distro agnostic all of the variable configs have
been moved into defaults which will source private variables when
available using distro specific configs. This change will make it
possible to run this role on any distro, even if there's no distro
specific variable files.

Change-Id: I547edd2052c7e136b79d99e1b8e75e3aee68689d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-14 15:28:08 -05:00
Kevin Carter 12ae3acd6e
Add resolved to the networkd setup
If the new variable systemd_resolved is defined, resolved will be setup
within the environment. This will configure the global configuration
file and restart the service.

A test has been added to ensure this code path is exercised on every
commit. It should be noted that suse does not have a resolved package so
this functionality is disabled when a suse system is encountered. This
should be revised as soon as suse has resolved available.

Change-Id: I85278719bc5b7158244fd44c65d4366935555780
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-10 14:13:27 -05:00
Kevin Carter d8bcdc0341
Update initramfs when links change
In order to make the default link take effect initramfs needs to be
updated. This change also updates the default link to use the
recommended defaults from the systemd-networkd documentation.

Default link config:
- https://www.freedesktop.org/software/systemd/man/systemd.link.html#Examples

See this thread for bug info:
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793374

Change-Id: I5430da4acad1e36b7593ad6791afbebf9e730bba
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-04-16 07:51:01 -05:00
Logan V cebf3b3482
Add base role tests
Depends-On: https://review.openstack.org/#/c/554402/
Change-Id: I3b270cc65aedaf9ef7375289b0ff7373b2c8d705
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-21 00:18:24 -05:00