* Update ansible-role-systemd_networkd from branch 'master'
to 71ecf3b13e1b31895c4b6d30dc85b13020afc99b
- Add support for the ArchLinux distribution
Change-Id: I352e049be2c98fddef01184282842946d937b27b
* Update ansible-role-systemd_networkd from branch 'master'
to 70442c5efb34222d0e333422fc469608795c70e4
- Fix defenition of multiple static routes for network
Current logic was relying on iteration inside the template. However,
since config_template module was used to deliver network configuration
it was merging sections having same name together.
While this behaviour is correct one for config_template as all sections
must be unique from ConfigParser perspective and in order to apply
overrides properly, it was not suiting the way how routes should be
defined in networkd configuration.
To workaround the issue we place routes separately under <network>.d
directory, which should be supported by systemd [1]
[1] https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html
Closes-Bug: #2045819
Change-Id: I01aa44dcdc85e32d18dd52bcd4878a9017fb6ead
* Update ansible-role-systemd_networkd from branch 'master'
to 18b36137dcfa740ea9238bd2cbaaf0762667dbec
- 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
* Update ansible-role-systemd_networkd from branch 'master'
to 1e6fc97dbe3473abc59af540195a8bec36aceb5b
- Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.
With that we also update metdata to reflect current state.
Change-Id: I3aa1a19eb1aa735bafb29e5babe433b77a8d1f47
* Update ansible-role-systemd_networkd from branch 'master'
to 4a7012e366ba60b99ec022eafbfe23afc9f6247a
- Handle omitted variables which appear as empty strings
Changes to external roles cause some variables to be passed in
as empty strings which result in invalid config and InvalidArgument
errors.
This could be addressed here or in the calling role.
Change-Id: Iee71e9839d4c8d318c2c36152d966dd5a1b88111
* Update ansible-role-systemd_networkd from branch 'master'
to 5acf51aec34005ef756b917c77874e5f14fa7ae3
- Fix static routes to use Destination rather than Source key
The current template results in a default route being added to the
routing table rather than a route specific to the destination
requested.
Change-Id: I0ef53631989ea2dc12d2540edeed95d0a466353b
* Update ansible-role-systemd_networkd from branch 'master'
to 4d8060b61d5fbf1dfe989442f870a288cfbd1825
- Merge "Allow to provide multiple VLANs"
- Allow to provide multiple VLANs
In order to create multiple vlans from the same interface, VLAN
key must be repeated multiple times. At the moment our role limits
that since vlan can not be a list. We adding an option for vlan being a list
at the same time keeping backwards compatability.
Change-Id: I94bf2157e1e95c3fd5af318eac8238cd6c3b6fdc
* Update ansible-role-systemd_networkd from branch 'master'
to c70084757dcbc0909cb512834300f57fbf0702bd
- Update tox.ini to work with 4.0
With tox release of 4.0, some parameters were deprecated and are ignored now
which causes tox failures. One of the most spread issues we have is using
`whitelist_externals` isntead of `allowlist_externals`
Change-Id: I62d6dc8e5b075b4803b0384d5533980c01873f66
* Update ansible-role-systemd_networkd from branch 'master'
to 0fbdc22ada067a1772d2e8211334023f926a362f
- Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.
Sem-Ver: feature
Change-Id: Id41efe5e712e9df3b670efd5b3ab8cdfd20fc609
* Update ansible-role-systemd_networkd from branch 'master'
to 0ae090b0d57cdbc7880a7185a23194733935c719
- Add repos only when there're packages for install
At the moment we allow not to install packages by providing
systemd_networkd_distro_packages as an empty list. When that happens
it makes sense also to skip all tasks related to adding repositories
when no packages are going to be installed.
Not installing packages might be useful for containers creation or
in situations when there is no networking yet, but we know that
systemd-networkd is already present.
Change-Id: I5e12cb0eb07b5eb8dcca462dbe8239a926ef80e6
* Update ansible-role-systemd_networkd from branch 'master'
to 356db62780155b51ab598492f6e1528ff155df2d
- Remove redundant vars line
This line snuck in with I4d4a51ca805857d56f108c3717beaa5648f86ccb
probably to bring it in line with other OSA roles, but should already
be covered by the distribution_major_version line above.
Change-Id: Ifcf3506cc8b4da41c5cca29b53955c5153a18cc3
* Update ansible-role-systemd_networkd from branch 'master'
to 1906bd37ec78d1bb9ab4496467dfc2afe0875973
- Switch sphinx language to en
With sphinx release of 5.0.0, they changed default for language variable
to 'en' from None. With that current None valuable is not valid and should
not be used.
Change-Id: Icc83041041372b0fb5a9fa897d336f48f3df78b9
* Update ansible-role-systemd_networkd from branch 'master'
to 09c629cf52153c5f572f34248914e4bee331f2a8
- Update documentation on role requirements
In README file we're refferencing plugins repo for installing
config_template from it. However, we're using module from it's
collection.
We're updating documentation along with renaming a-r-r to more common
requirements.yml and adjusting rc file
to drop not required overrides from there.
Change-Id: I2329c2744348a8d704fe36f81e4ad43602c39541
Closes-Bug: #1961621
* Update ansible-role-systemd_networkd from branch 'master'
to d62daa24f9b8d8c418f5c06141dfafbda89cb331
- Change location of ipaddr filter
ipaddr filter has been moved from netcommon to utils collection [1]
Based on that we must add that collection to requirements.
[1] db4920ebf6
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/831525
Change-Id: Iac92e247d209d848c82f625c190c200cdc05a67a
* Update ansible-role-systemd_networkd from branch 'master'
to 130c9f81ba7274b6eef90f2e276dc565bf56062b
- Merge "Refactor use of include_vars"
- Refactor use of include_vars
Use a first_found lookup instead of a with_first_found loop so that
the 'paths' parameter can be used.
This ensures that only vars from the role are included, and not vars
from a parent calling role. This can happen when a parent role has
a higher priority vars file available for inclusion than the role
it calls.
Change-Id: I4d4a51ca805857d56f108c3717beaa5648f86ccb
* Update ansible-role-systemd_networkd from branch 'master'
to 9847b5f0bfcc16089524ef7fa5ddf2e6f5413152
- Drop plugins from role requirements
Change-Id: I95c56c0ae013da8b20e05435f58712ad29451666
* Update ansible-role-systemd_networkd from branch 'master'
to 4ca473b94495883ef88041a12c369ae42b2498e7
- Use config_template as a collection
Since we still use ceph-ansible that has their own implementation of
config_template module it's worth to use mentioned module as a collection
explicitly.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819814
Change-Id: I7024d962ed858b0442583e24612a5da4d3fa37e7
* Update ansible-role-systemd_networkd from branch 'master'
to ce9cba08a89136ad8b1385e4f2a87d2795779d78
- Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7 are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible
Change-Id: I214f35cfff5fa9dd703733f795d6a7e414d729ca
* Update ansible-role-systemd_networkd from branch 'master'
to b812fff93a6a8efebe3c9275eb9b887c6bca290d
- Merge "Use ansible_facts[] instead of fact variables"
- Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: I36a098e4b028bdf09b38e2f2c99f68f311ce9d32
* Update ansible-role-systemd_networkd from branch 'master'
to 3213d427e60648bfd70f87af60bd84b472406e90
- Add reference to gpg key location to EPEL repo config
This is necessary on centos-8 stream
Change-Id: I74f02669b013b8580d3469a8ffe214d88cd0f525
* Update ansible-role-systemd_networkd from branch 'master'
to 5b327a5ca531999b1409edabf542dfdaab9b36ce
- [reno] Stop publishing release notes
Since we copy all release notes to the integrated repo there is not need
in publishing release notes for each repository. We should only verify their
validity and linting.
Change-Id: Ic79a437ec219d99a60a0e3af2633d93bc4314779
* Update ansible-role-systemd_networkd from branch 'master'
- Add GPG Key for EPEL8 Repo
The patch adds the GPG key for the EPEL 8 repo to allow gpgcheck
to be successful.
Change-Id: I6402d45ca541b8bb7a35ed73b63256f13c58e4f3
* Update ansible-role-systemd_networkd from branch 'master'
- Fix linter errors and update tests
This patch fixes linter errors, updates tests, and adds the MTUBytes
interface configuration option to the systemd .network file to support
live MTU changes upon restart of systemd-networkd. Without it, MTU
changes will only be effective upon boot (might only affect Focal).
Change-Id: I05da4036b0ddc3fb88ba958f413a32fa6819de61
* Update ansible-role-systemd_networkd from branch 'master'
- remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.
Depends-On: https://review.opendev.org/734676/
Change-Id: I5c5eba38917254187a5b006fd810977ee48ec023
* Update ansible-role-systemd_networkd from branch 'master'
- Merge "Use newer openstackdocstheme and reno versions"
- Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I11211f345869d24e82552844a6f8d57db1103aa1
* Update ansible-role-systemd_networkd from branch 'master'
- Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I20ff07ff845a51fe310c6607ba6a6217ce33bf99
Sem-Ver: feature
* Update ansible-role-systemd_networkd from branch 'master'
- Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
Change-Id: Id7d1efab938389929e6375bf8570f6c210234876
* Update ansible-role-systemd_networkd from branch 'master'
- Merge "Do not rebuild initramfs for containers"
- Do not rebuild initramfs for containers
Containers do not have an initramfs so this is not useful, and fails
for Centos-7 with:
Can't write to /boot: Directory /boot does not exist or is not accessible.
Change-Id: Ibc6ff871ad6984d4e0f29693f4827f57169aef92
* Update ansible-role-systemd_networkd from branch 'master'
- Merge "Fix systemd-resolved config conditional"
- Fix systemd-resolved config conditional
Variable systemd_resolved is supposed to be a dict. When bool filter is
applied to dict it returns false despite dict have any values or not.
So we need to change that logic to verify if we have empty dict or not.
Change-Id: I17d5bebe4bd1c133798161f27e08bd2989848178
* Update ansible-role-systemd_networkd from branch 'master'
- Merge "Do not use deprecated ansible 'bare' variables"
- Do not use deprecated ansible 'bare' variables
Support for this syntax will be removed in ansible 2.12
Change-Id: I3fb3c87b027bbe69c96069a758e7d30fbaf091db
* Update ansible-role-systemd_networkd from branch 'master'
- Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
Change-Id: I4b40d9570a2214f245d439693daecced49f97dc5