The tag-pipeline does not set zuul.branch, so define it to an empty
string if it's unset so that the script passes.
Change-Id: Iddcf722abec5c6a69f40cb109e5563a698ab349c
This is a role to configure swap and /opt on an infra host.
Originally we wrote this for devstack-gate with
Icd4e6d8ab84471ad06e69c3e0f9bac92776efc78. It was ported into the
native devstack job with Iffe54fbccbccd68db08f79a1b51dd7f76dbff408.
This is really generic, and it's quite possible non-devstack jobs
would like to setup swap for jobs too, so o-z-j is a better home for
the role.
Change-Id: I0e9c846ace7fac8a1340746c6818fba6ec963018
The service_type_data was not working properly and errored out
with a traceback on exit_json from the module.
We can actually handle this in native Ansible without a module so
let's do that and also hint the user at the issue if a project happens
to use this role without being mapped in the service types.
Change-Id: Icdac2f5325a01748cdb8a830430b8f66a035d416
'src' is a temporary file reference that exists only for the
duration of the download, it is not the location where the file
gets downloaded.
The location of the downloaded file is the 'dest' key, so use that
instead.
Change-Id: I2ff1b9c442d1cc88820c49d680567b0b16401ef3
Allow reuse of the roles for other directories than doc/build/html with
making doc_build_dir a variable that can be overwritten. This allows to
use the role also for e.g. deploy-guide that lives under
deploy-guide/source and builds under deploy-guide/build.
Change-Id: I61cd84be201d14d0a1d5daba3a45c8797496bc7f
Needed-By: Ifff767a95e6283c54033bababd3dae84bb19adb6
We don't actually collect facts on executor for security reasons,
however we can use the result.src from get_url to get the file info.
Change-Id: I867c013ab7e3883c8b9cdb0d7b06fec854ed3d5a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We need to map from project name to service-type name from time to
time. The data is standard, so grab it from its published location
and use it.
Change-Id: Iea42ba981cee260cbccd0b1eb2705d3ad419bf20
It turns out ansible_default_ipv6 can be undefined without ipv6.
Combine the checks into a separte fact.
Change-Id: I96b0fd98db01b183946403a744ff2e8d2ae422d8
At the moment, the tox_envlist is defined inside the include_role
for tox as releasenotes. This means that other roles which run
beforehand such as tox-siblings will use the default value of
venv instead which isn't always defined.
This patch makes the change to make that variable defined in
the job which means that all other roles will reference the correct
tox envlist in the entire job run.
Change-Id: I0323f8f1bccf720268d947b8e1dcb6c5f8b26dfa
The parent of the build-openstack-releasenotes job is openstack-tox
which means that there is no point in defining tox_constraints_file
as it is already globally defined in openstack-tox.
Change-Id: I5f7d58dcd4c300e6b700a972c05e43c5d146765a
As mentioned in the README, this adds the dynamic configuration for
unbound on hosts. If there is a ipv6 route, it will set forwarding to
ipv6 servers, otherwise use ipv4. This is ported from the
configure_mirror.sh script.
We add a basic test to integration tests
Change-Id: I70b41e45f3d53b191742533c2f3b6c0b6e6c2339
reno expects to be run on the master branch, so add an 'override-branch'
setting to the job.
While we're in there, add a description and remove the tox_envlist var,
as it is hard-coded inside of the role.
Change-Id: Ide918d1bb631590683f96bddc6b43c12c7ab5ac2
Originally, we were moving the release notes to another folder
to make it work with the fetch-sphinx-output role. However,
this did not always work as expected due to the fact that some
projects do not have a doc folder.
This fixes that issue and avoids the move and simply grabs the
data from the right folder.
Change-Id: If6ee519c33320db91f8a9553ed4abc099c284eec
The past bash code had two paths for building release notes, it
makes it much harder to refactor and debug (for example, the result
was being moved only if the release notes had translations).
Change-Id: I45272750fc734566d08329d915fbedc10b9eed65
This is a single task within the existing afs prep role, but we
need to be able to do it alone for certain special doc builds,
like infra index page generation.
We could use include_role in the future to de-duplicate this, once
zuul_json supports that.
Change-Id: Ia6c6257cb1479abef79bf919cb6ad25ea6828d90
The mirror info script is sourced by various jobs so needs to be
around for broad compatability. Since it's full of openstack only
mirrors, this seems like the place for it.
Change-Id: I66164920642a6015a6524fdc3105e4099d26deff
We have already created the root-marker above, so need to move it from
html directory.
Change-Id: I621c8ced3df456395853657ae8ba50dc604fa5e0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We need to be running out shell commands within the proper git src.
Change-Id: I9bb6bb85b1fc68cd475eddef38ed6bd11ee0f9dc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We'll use this role for unified openstack docs publishing.
Change-Id: I879d42cd04ab051b91c0b636856470cd4126b6f2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
The existing code in branch made a directory for build/{{ branch.tag |
dirname }} but then moved things to build/{{ branch.tag | basename }}
which produced:
html/
html/feature
html/zuulv3
Fix that. While we're in there, go ahead and change this into individual
ansible tasks.
Change-Id: Ib757d1f8bf76012d2d436565913e750c4a5d52a7
The prepare-docs-for-afs role was using zuulv2 variables,
but these don't exist in zuulv3. Update to using the variables
that do exist. Add a flag to take the place of $2 in the original
script which was called by the docs-tags-only-env builder.
When we migrate, we can just add that variable to the
openstack-doc-build entry in the pipelines of bindep, git-restack and
git-review which are the only three projects which use that flag.
Change-Id: Ib998f83135a4fcb796a205e52c435ab29b7cab7b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We can leverate tox role from tox-docs for running out python setup.py
build_sphinx command. This just leaves 'run-docs' role with openstack
specific rename logic. The next patch in the series will refactor
this another fitting name.
Change-Id: Ic45541089391cea1d0b787a48be002d645cd28ea
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
So, we need to break the dependency on jenkins/scripts, to do that,
first import the current shell script so we can start ansiblefy it.
Change-Id: I3e58da365badb450977e4ad5438d7612d1074a02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Did didn't have ansible-lint setup properly, as a results our roles
weren't actually linted properly.
Switch run-docs to command task, since we are not using any shell
variables.
Ignore ANSIBLE0012 for now.
Change-Id: Id184f7eb5dd67117e7dde9c8eb38a3a8af9dd892
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This job still needs to be updated to replace the jenkins script
with ansible. But so that we can go ahead and remove the
zuul_workspace_root variable from everywhere, replace it with
the variables that we use for the tox jobs in zuul-jobs.
Change-Id: I991dc6c60fb7290be40e8d89ab2cdeb7ab8879c4