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
cloud-init creates /etc/NetworkManager/conf.d/99-cloud-init.conf,
for NetworkManager to not update resolv.conf. However, subsequent
update of NetworkManager seems to remove that file as there is no
config(noreplace) directive for it. So after an update/upgrade of
overcloud nodes, reboot would cleanup the dns entries.
cloud-init do configuration only one time during first instance
boot. So this would ensure resolv.conf is not touched during
subsequent reboots.
Change-Id: I989e3f1d14fd33e97933032111cf48166dc5f50c
The intention here was to install the product-release
rpm. The package name is rhosp-release. Typo w/
-version
Change-Id: Idded17e553ea3ba9824635418bd875162928a8f7
Ansible modules rely on custom imports such as yaml. Since we need to
support both overcloud image deployed and pre-deployed servers, we end
up having to track these in two places. Missing deps need to go in the
image and the tripleo_bootstrap role. This change addressed the latter.
Closes-bug: #1894957
Change-Id: Ied27b97db9aab16dd92aa9dc99e93d4834d3c633
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Deployments on RHEL are failing to install the undercloud/
standalone:
'tripleo_bootstrao_release_version_package' is undefined
This review fixes the condition to check
'tripleo_bootstrap_release_version_package'.
Change-Id: I70227125b012aef7a2618deb860337c10233aa90
The change-id, I71355b8501047d4b956f66a5025e70058d7ce0bc, introduced
sysstat package into the overcloud image. However, it won't affect to
the existing deploymennt. This commit ensures that sysstat package is
installed in the overcloud nodes.
Depends-on: https://review.opendev.org/#/c/747077/
Change-Id: Ib37b62bf21b502cb69d4fd77aa23b9525a6d5a7b
Currently this is only used downstream, however there is a version
package that can allow us to ensure specific package requirements are
met. We can likely add this to the upstream via a tripleo-version or
something to that efffect but currently this does not exist. So this
change adds a task to ensure that we have the latest version of this
version package at deploy time.
Change-Id: I5fd88c8e2fae811e854eb0dfb462fae8d1ad8f0d
We currently don't setup the tripleo repos for the tripleo_bootstrap
role so the required package installation is not picking up the correct
packages (e.g. puppet).
Change-Id: I351f7ce8b4a2d8187a0c63f9c804d2fe97486cf3
Because we want to symlink a bunch of directories, letting ln figure out
what links to create is vastly more efficient than doing it in ansible.
So let's silence the warning about using the file module instead.
Change-Id: Iba71312ae7598ab5c4a50245d49710efd97c8053
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>
ansible-playbook-3 binary is no longer shipped with
ansible 2.9 package[1], so let's create it if it doesn't
exist. Once all usages of ansible-playbook-3 are removed
these all compatibility tasks can be cleaned up.
Also remove symlink creation of /usr/local/bin/ansible-playbook*,
as those were created temporary for fedora support[2].
[1] https://src.fedoraproject.org/rpms/ansible/blob/master/f/ansible.spec
[2] https://review.opendev.org/#/c/632768/
Partial-Bug: #1873443
Change-Id: I40c860f22993efbe375c741c63513d764ba4eebc
We have a use case where OVS rpm can be missing on very basic images,l
ike overcloud-minimal. This image can be used by downstream for e.g.
Ceph Storage nodes, where an OSP subscription wasn't used (OVS needs
OSP).
It was reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1820306
This patch will look at eventual failures of the bootstrap packages
task, and stop the deployment only if OVS failed to be found, otherwise
the deployment will move on.
Change-Id: Ib8dcc48c15b04b810b1cde350d5138671469977e
When using pre-deployed nodes installed with minimal OS, it may happen
rsync is missing, and it's needed by the Ansible tasks using synchronize
module. Let's make sure the package is installed.
It was initially done in Ie8a1ad5e2c9e32cce1f1b8c264a8b44207d99b59 but
this wasn't enough for the regular deployment.
Change-Id: I15c06296c0e20e1db086cb4c7cf669251be3eccb
Closes-Bug: #1863216
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1802827
We always configure a tmpwatch cron as part of the logrotate-crond
container but we need to make sure it's installed in the case of
pre-deployed servers.
Change-Id: I48381c2972900c52fd68885026d4e64e9663d072
Closes-Bug: #1864118
Mount mirrors file into molecule containers if docker driver is
used, otherwise use hosts mirrors file.
Change-Id: I179004fde7587a81eb87f3cc477870b4b48bd83e
When creating symlinks in /etc/puppet/modules, don't fail if a directory
already exists. This fixes a problem when using puppet module artifacts.
Change-Id: I97d4c127a9f29e99946845660a810e89ea938bee
This change replaces all of the roles references in our various files with the
new role name. This is being done because Ansible no longer allows hyphens in
role names.
Change-Id: Ie899714aca49781ccd240bb259901d76f177d2ae
Signed-off-by: Kevin Carter <kecarter@redhat.com>
All roles that have a hyphen in them need to be renamed to use an
underscore. This change creates a symlink to all roles using their
original name which will ensure we maintain compatibility with
the rest of the TripleO stack. This is being done because roles with
hyphens are no longer valid within collections.
A temp PBR update has been made to accomodate all of the symlinks to
the legacy role names.
[0] https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html#roles-directory
Change-Id: Id00a3670351990e5489a297c4c7200f8c05af096
Signed-off-by: Kevin Carter <kecarter@redhat.com>