Commit Graph

9 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 18b36137dc Ensure filename is always defined for network/netdev
Right now we define resulting filename in the loop itself, which limits
ability to predict expected filename for another loop where list might
get filtered.

So to get more expected behaviour between tasks we always add filename
to the elements in vars.

Change-Id: I579980ea3a5e9349d25885530c979649cb6dcb81
2023-12-08 17:51:16 +00:00
Dmitriy Rabotyagov 438e946a06 Add CentOS 8 support
Change-Id: I8eb7b1ce7cadc910386cfb8bf1d9b41194b2ecdd
2020-06-23 12:44:21 +03:00
Michael Vollman 242b3c3fb4 Add ipforward option to configure IPForward
Add ipforward bool optional setting to systemd_networks to enable
or disable forwarding for a given interface.  IPForward is disabled
by default.

Change-Id: Iaea33b1bdde1964f38612ab8c278fed4985d390b
2019-02-11 09:55:26 -05:00
Kevin Carter 2921156fd1 Move link options to a link file
The link options being set within the network files, which functional,
does not expose all of the link capabilities we have within a specific
link file. This change implements link files per network interface
giving the user the ability to customize links as they need.

Change-Id: Ie999c541a6a566141e81c6d9f95b8a30bbbefa8c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-12-27 21:31:16 -06:00
Kevin Carter b0395c727e Update cleanup process and set a file prefix
The interface cleanup was generating a script that could be used to run
a cleanup whenever required. While this worked it would rapidly become
out of date, especially when multiple roles are calling this role. This
change adds a prefix which deployer can use to ensure the network
interface files are marked which will ensure we're limiting the
possibility of collisions.

The cleanup process will now use this prefix to search for and remove
any network interface file that matches the given prefix.

Change-Id: Ife5c179d27925cd2e71d3d086a731e6c13b12965
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-19 05:40:48 +00:00
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
Logan V b9b135ab9a Allow networkd filename override
- Allow configuring the default filename format
- Allow configuring a filename override on a per netdev/network
  basis.

Change-Id: I801fe5604d543ae36daf5bd1764ef1035644ea44
2018-03-19 14:54:35 -05:00
Kevin Carter dd82b31ee2
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-13 23:09:48 -05:00