Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: I44098fcfc74fdaba1bc2c82311d4fd49705fdc25
All the supported platforms are now using more modern systemd versions
than detected with the logic in this role, so remove
the redundant tasks and conditions.
Change-Id: I0ddaefc575f1b0cbf85696cde25aa69907fede9f
Systemd service element does contain quite bug dictionary and
output of it is not really useful for most tasks. To make output smaller
and at the same time more informative we leverage loop labels.
With that we convert all with_items to be proper loops.
Change-Id: I90d2fb4110d2a47af184e90382538e015eb87b13
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
Change-Id: I3793933504f301af105f8aa49a28f91f425d9219
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: I4aab8ba621228d3fbf79b1da8227be41f3258b5f
With usage of include_tasks tags must be applied accordingly,
which was missing. That prevented running service load whenever
systemd-service tag was used.
Change-Id: Id48457c43e38e19f781bfe11d1fb6eaeb9fdde6f
At the moment it's possible only to forcefully restart sockets under
each run, which is not idempotent and may cause interruptions for
service. To avoid that we add a way to restart socket just on config
change with same logic applied as for service.
Change-Id: Ifb6fd9461d7b6a65191b918c0863406cf4de6725
At the moment our verification if socket has been changed
is not valid, since we're checking if string 'true' is presnet in the
list, while list consist of only boolean variables. So we replace
map filter with selectattr as it can apply truthy test to the elements
while selecting them and checking list length.
Change-Id: Ib456b4dc2d631bf81633035820444f13ec0f06cb
Related-Bug: #2003631
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: Ib07b10672187610c046e84b7d8a884d4ddb58164
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: I05f796d3444ac44101e3190eb17e6f551c666408
WHile you can leverage config_overrides for that, it might become
tricky if you need to define more then 1 pre/post exec tasks.
Change-Id: I3d8b36f5e9f4be89eaff848d8ba88a38ce5285e4
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
Change-Id: I841ad4ad1b35e97180914f3d5307910bef9f02dc
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: I55beac04ca11efef8a700d8f8544a853fd4af744
If systemd_service is used to install only an override for an existing
unit it is necessary to reload the systemd daemon for the override
to take effect.
Change-Id: I64c0203ee13b3abbc441274c9304b7103a0bb23c
In order to pass check mode we should get get_systemd_version
regardles of mode with command. It is not a breaking change and safe to
run anytime.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/837706
Change-Id: I9ce85a091e3328d7215665ac308f2980537ce921
This functionality is pretty neat and used widely if you need to pass
specific argument to the unit service, but rest of the parameters can
be left intact.
Change-Id: I6eb80ac0f9f0257402697a255518bb2c66d0dfd5
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: I2e32017b48f9143ff0e42175cc10feebf342f2f3
To remove complexity from the code we remove variable systemd_lock_path
since variable systemd_lock_dir with common functionality has been
introduced.
Change-Id: I61bb44450a7fb1cface2b93302e02c8fd358a034
Since /var/run is a symlink to /run and /var/lock is a symlink to
/run/lock for all modern operationg systems, it makes sense to
change default paths that are used.
To make such changes more flexible, ``systemd_run_dir`` and
``systemd_lock_dir`` are introduced.
Change-Id: I60d321fcdce3d3a94233cc25c92898d9e9f2a9b8
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: Ia8feb40a3d350c8ff759111b828b633f1c8e8c7b
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: I172036c213917ca036e8f148bcce0816f9738bdb
This file doesn't need to change based on the whims of which order
the after_targets decide to jumble themselves into. By sorting the
after_targets we get less changes.
Change-Id: I7cba791c6d6d90390e5adaf63a4797cbc320cbc5
A small typo that appears to have been missed during review,
which can cause strings (for example) to be iterated over rather
than included directly.
Change-Id: Id1a9d7088f97b709c46d5f4563c0c498604f999e
Since there might be a necessity to override already existing in the
system services, like provided ones by system packages, which we
just want to adjust, we need option to create service overrides in
systemd.servce.d directory.
Change-Id: Ic7488edbc0487fe932c706dc26f2f8adb36cb427