In order to ANSIBLE_INJECT_FACT_VARS=False we have to use ansible_facts
instead of ansible_* vars. This change switches our distribution and
hostname related items to use ansible_facts instead.
Change-Id: Id01e754f0cf9f6e98c02f45a4011f3d6f59f80a1
Related-Bug: #1915761
The role currently uses custom_profile which is undefined.
Rename custom_profile to tuned_custom_profile so that an
operator can actually use custom tuned profiles.
Change-Id: Ibb2642a981101d7a6a4cfce06d20b478190a4cd3
Handlers normally don't run until the end of a play execution. Since we
are forcing a handler run in the middle of the tasks there is not a good
reason to use handlers for this case. Additionally we're not relying on
this handler anywhere else. Because of this, let's switch to explicit
tasks that check changed results instead of handlers. We've seen issues
with trying to use handlers in ansible when not using a linear strategy.
Change-Id: I4eb5ece7d5c1d25f5beacd9e21e20ae9f3d45c17
Closes-Bug: #1888853
This change updates all uses of docker to podman and removes our docker
installation process from zuul and our local test process. Some container
based tests have been moved to "delegated" becuase they no longer make
sense to run in a container and the hacks needed to maintain the container
based testing are not worth maintaining for podman.
Change-Id: I02de94a1229bfa847f14ecf282eadbcfe6396875
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Fix the warning evaluating as a bare variable, this behaviour will go
away and you might need to add |bool to the expression in the future.
Change-Id: I588e24f0b0e574b9ecea9f3b8d932a94b116a4d5
Mount mirrors file into molecule containers if docker driver is
used, otherwise use hosts mirrors file.
Change-Id: I179004fde7587a81eb87f3cc477870b4b48bd83e
We don't get a tuned_check when in check mode so we should just skip the
config include.
Change-Id: Ic9d364d0f440b9308d57c2ebf07fbc12f6403c66
Closes-Bug: #1855502
This is needed for https://review.opendev.org/#/c/693826 which improves
linting.
The funny aspect is that we already had pre-commit rule to check this
inside the repository but it was not active on CI.
Change-Id: I7c528e193c7656d71d53908620970e7b51e9e6cc
This change moves all of the fedora28 container images to centos8 to ensure
we're maximizing coverage in all of our roles with OS images that represent
real deployments. While fedora28 was useful to exercise RHEL8 code path's
while there was no RHEL/CentOS8 container image, we can now use the upstream
CentOS8 image ensuring we're getting a true, representitive, environment.
> In the process of testsing it was noticed that the test_deps role was
triggering scenario jobs. This role is only used for test purposes and
should not test scenarios deployments.
Molecule requirements have been updated to ensure we're testing with package
versions that reflect the realities of production deployments.
Hacks that were added to enable fedora28 testing have been removed.
The ptp role now only will test the ntp stop scenario on centos7. This is
done because there is no NTP package/service in centos8.
Change-Id: I0e960f9ee230c82edb2ad9d40557aa6d0237dfc0
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Fixes a typo in the skeleton role and the generated roles that had been
affected.
Note that the tripleo-packages and tripleo-ovs-dpdk roles are excluded
from being updated because those CI jobs are presently failing.
Change-Id: I0d66af8c5395a0ee4910f8475e1f70ccb7bfa52c
The readme files are unnessesary, and unused. All of the role documentation
is generated as part of the tripleo-ansible docs. Because these files are
generally neglected the documentation they provide is at best missing
information and at worst incorrect. This change removes all of the role
readme files and ensures our role generation process no longer creates
the file.
Change-Id: I030d7f9ef54250cef4019d40366febe899f37bd9
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Add support to update kernel args and reboot the node.
Enhanced support for configuring isolated cores with
few of the tuned profiles.
Change-Id: Iac72c41d3bfc87c0016da4df2228732a778a810e
This change rmeoves files that serve no purpose. Most of these things
were brought over on the initial role import and were kept for
consistency. Now that we can test the roles and are confident in the
setup it is time to clean things up by removing files and options
that are empty or pointless.
Change-Id: I832c003a36d82cf37d128e5934aeb5448112e6f8
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
This change imports the tuned content from the tripleo-heat-templates
project and creates a role which can be used throughout the tripleo
project ecosystem.
The role will test in docker containers running both fedora28 and
centos7.
Change-Id: I90b5b63959c754989416544f83089f1ca4b53be2
Signed-off-by: Kevin Carter <kecarter@redhat.com>