* Update ansible-role-systemd_service from branch 'master'
to 25fbe656a4e95ce9b3f7e3183cfd4486d853fe0d
- Update master for stable/2023.2
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
* Update ansible-role-systemd_service from branch 'master'
to a0fb5a6df2df91a969b7a6741e47a2df817935fe
- Filter loop lists instead of conditionally run them
Filtering loops should execute faster and do not iterate over elements
that we don't need.
Change-Id: Iee2e706c50b59679f48afbd6f067922887154e5c
* Update ansible-role-systemd_service from branch 'master'
to 2ce606c40ac0c9375ba39616c71f27c626986380
- Merge "Remove conditions on systemd version"
- Remove conditions on systemd version
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
* Update ansible-role-systemd_service from branch 'master'
to 381321d821527fac98333b609a39b985ee59bae2
- Merge "Reduce output by leveraging loop labels"
- Reduce output by leveraging loop labels
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
* Update ansible-role-systemd_service from branch 'master'
to 86e451b295b82883b03e25320db148b5b0aabfde
- Merge "Use TOX_CONSTRAINTS_FILE"
- Use TOX_CONSTRAINTS_FILE
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
* Update ansible-role-systemd_service from branch 'master'
to 9e96739c854cd597cf2ed19efb29c31a5d30e240
- Use TOX_CONSTRAINTS_FILE
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
* Update ansible-role-systemd_service from branch 'master'
to b763b73ffc49204f88213366ca38e2bbd4be2d25
- 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: I4aab8ba621228d3fbf79b1da8227be41f3258b5f
* Update ansible-role-systemd_service from branch 'master'
to f3396119a44e63f3a95fbbcded85b5b7af4449ce
- Fix tags usage for included tasks
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
* Update ansible-role-systemd_service from branch 'master'
to 59736cb4af5330260bb456e454e08e3d1c9da607
- Merge "Ensure daemon is reloaded on socket change"
- Ensure daemon is reloaded on socket change
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
* Update ansible-role-systemd_service from branch 'master'
to 17f833f27a1f326b494471575f53bbc7438b05f4
- Restart sockets when they are changed
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
* Update ansible-role-systemd_service from branch 'master'
to ed306794169a64ef3258aba652256c22543f8f3d
- 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: Ib07b10672187610c046e84b7d8a884d4ddb58164
* Update ansible-role-systemd_service from branch 'master'
to 69f36cff8e74427802a512204cf7a5b2b684de42
- 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: I05f796d3444ac44101e3190eb17e6f551c666408
* Update ansible-role-systemd_service from branch 'master'
to 62bd24859e96ef28350911ede44480864ac6d161
- Allow to define pre-start and post-stop tasks
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
* Update ansible-role-systemd_service from branch 'master'
to 4bc059e9d93fc80f225564955db410de6463262e
- 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: I55beac04ca11efef8a700d8f8544a853fd4af744
* Update ansible-role-systemd_service from branch 'master'
to 389dd8ae7227e7986325684711ba63b9639f8903
- Merge "Reload systemd after installing a service unit override"
- Reload systemd after installing a service unit override
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
* Update ansible-role-systemd_service from branch 'master'
to f441fc5be4ac181ec3b5668e252020c40af73b68
- Pass systemd_service role in check mode
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
* Update ansible-role-systemd_service from branch 'master'
to 1013a1526ef7cd0a2d1b57e7120fe590c9b8597f
- Allow StandardOutput to be set for a systemd service
See https://www.freedesktop.org/software/systemd/man/systemd.exec.html
Change-Id: I64470b53f5177e9a4e450beaa474036e44705349
* Update ansible-role-systemd_service from branch 'master'
to 1f7091a11cfdcad885443c23e00d8ab85b0783a6
- Add ability to create templated services
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
* Update ansible-role-systemd_service from branch 'master'
to 17852bc111d5d4e617fa335aaa065acc89338468
- Merge "Add 'load' boolean for services."
- Add 'load' boolean for services.
Some services, such as socket activated ones with '@' naming cannot be
loaded.
Change-Id: I7d95378f393c8b8cc729cc9b3a30dfe4208393b2
* Update ansible-role-systemd_service from branch 'master'
to c0a5954685b77754e9df53c46f79076f308a2c9b
- Merge "Suppress 'Service' directive if ListenStream is specified"
- Suppress 'Service' directive if ListenStream is specified
This is mutually exclusive configuration
Change-Id: Icf43a8421f4d52570ea89f5db0722c0d99bafd85
* Update ansible-role-systemd_service from branch 'master'
to 26602576f630f624cad28ab1190cf7e10ecdbc02
- Merge "Drop plugins from role requirements"
- Drop plugins from role requirements
Change-Id: I9bcdf00b88d5556670610a502a7522d308ce2da2
* Update ansible-role-systemd_service from branch 'master'
to a49b5544f11b1671683a19a1e621882b023c5e38
- Merge "Use config_template as a collection"
- 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: I2e32017b48f9143ff0e42175cc10feebf342f2f3
* Update ansible-role-systemd_service from branch 'master'
to fc698fb11ac1df1c913015223b28558b9927d0f5
- Use slice name for lock/run by default
Change-Id: I883d6520e7da4491929252677193f733808da6a3
* Update ansible-role-systemd_service from branch 'master'
to a3800b63684b6cf35aeed48adb04a0539f5bc078
- Deprecate systemd_lock_path variable
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
* Update ansible-role-systemd_service from branch 'master'
to 46185f389eb8dc14c70b82b820cfe288df4a20e8
- Update run and lock path for systemd
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
* Update ansible-role-systemd_service from branch 'master'
to 2fd3f5e4f7ac9b906ce33945f2777081b38ac1fe
- Merge "[reno] Stop publishing release notes"
- [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: I172036c213917ca036e8f148bcce0816f9738bdb
* Update ansible-role-systemd_service from branch 'master'
to 60b0cc5a620cdd00aedede83e42e0c4635eb3d37
- 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: Ia8feb40a3d350c8ff759111b828b633f1c8e8c7b
* Update ansible-role-systemd_service from branch 'master'
to 1cc15d7923d8936bc96b2f7e70c6b755df2f06da
- Make systemd.service more consistent
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
* Update ansible-role-systemd_service from branch 'master'
to 3c924d2531e4714482835dcd72209556f3d1b539
- templates: fix typo in string/mapping check
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
* Update ansible-role-systemd_service from branch 'master'
to 6937a0a67a3a1dbc794f1b0db249caff11218800
- Merge "Add option to create systemd native service overrides"
- Add option to create systemd native service overrides
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
* Update ansible-role-systemd_service from branch 'master'
to 6ad5f1486db68f532809cc30391f045409c4bcaa
- Merge "Add possibility to configure systemd sockets"
- Add possibility to configure systemd sockets
We need to be able to configure systemd-sockets. Since they are attached
to the service it make sense to make it as an element to the service.
Change-Id: Ic481921151fc8d7af7f1ca9b003adb8e3c967e16
* Update ansible-role-systemd_service from branch 'master'
to 2abd4c9be81709068770c3115a3db89a1cfad139
- Use upper-constraints for all tox environments
Change-Id: I3d24f37ae45a00361665ecd8326ce1b242411704
* Update ansible-role-systemd_service from branch 'master'
- Merge "Greater flexibility to timer templating"
- Greater flexibility to timer templating
Allows for the combining of multiple directives of the same type as
the spec allows. An options value can now be specified as a list.
Particularly useful for specifying multiple onCalendar directives.
Change-Id: I2f0408a47861560b7813eeba7b3f2ce682823e1e
* Update ansible-role-systemd_service from branch 'master'
- Merge "Revert "Build out the PrivateNetwork function for services""
- Revert "Build out the PrivateNetwork function for services"
This reverts commit 6285b6c6389134c53a5a98a0392b016a594bab16.
There is no use made of this functionality anywhere outside the tests
for this role, so revert the code. The intention is to reduce general
overhead in systemd_service and reduce the number of skipped tasks
in an OSA deployment.
Conflicts: tests/test.yml
Change-Id: I3d28967a64ea9d91219294bdc30d337c9c6d2e50
* Update ansible-role-systemd_service from branch 'master'
- Merge "Remove fail: tasks"
- Remove fail: tasks
Assume that the operator knows what they are doing. These tasks
are skipped for every service which bumps up the number of tasks
and runtime.
Change-Id: I73f38d6b9cc897537053d810d5cdd61ed74671fb
* Update ansible-role-systemd_service 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: I08b449ebbb2658c02f9f2d69ff3d7c4372d24376
* Update ansible-role-systemd_service 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: I9f71b9b67c6a6006a53001fadcbb29e3503d2521
* Update ansible-role-systemd_service 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: Ib2838ac0a804323fa2de8ceb0f18880663a46ee1
Sem-Ver: feature
* Update ansible-role-systemd_service 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: Iae8ea69488d0acc2b28ba42fd6327f3c68f5b1ee