ce2bea51d4
This change is preparation for https://review.opendev.org/c/zuul/zuul-jobs/+/887917 In the beginning, there was only prepare-workspace[0] which rsynced repos. Then we added mirror-workspace-git[1] to make it more efficient by using git operation, but it required some openstack-specific code in project-config to work. Then we added prepare-workspace-git[2] which completed the git-based sync solution by locating everything requried in zuul-jobs. It used mirror-workspace-git by reference and added this TODO: # TODO(tobiash): we might want to deprecate the role mirror-workspace-git-repos # and move it here. This change completes that TODO by moving the mirror-workspace-git-repos code into prepare-workspace-git and places the repo in a sensible and maintainable state with two simple and good options: * prepare-workspace (rsync) * prepare-workspace-git (git) In the unlikely event anyone is still using mirror-workspace-git-repos standalone (OpenStack/OpenDev is not, and that solution was haphazard as described above) they would be well served by a notification that there is a better alternative which is what most of the community actually uses now. [0]cfffd4431b
[1]348598e96a
[2]7cee7156bc
Change-Id: Ib80e0447d49363182fd0d4c4d4e269841bc3aa95
23 lines
662 B
ReStructuredText
23 lines
662 B
ReStructuredText
Mirror the local git repos to remote nodes
|
|
|
|
.. warning:: This role is deprecated. Use
|
|
:zuul:role:`prepare-workspace-git` instead.
|
|
|
|
This role uses git operations (unlike :zuul:role:`prepare-workspace`
|
|
which uses rsync) to mirror the local prepared git repos to the remote
|
|
nodes. This may be useful if the remote node already has a copy of
|
|
some or all of the git repos.
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: mirror_workspace_quiet
|
|
:default: false
|
|
|
|
If `true` git operations will be silenced and won't print every
|
|
changed reference.
|
|
|
|
.. zuul:rolevar:: zuul_workspace_root
|
|
:default: "{{ ansible_user_dir }}"
|
|
|
|
The root of the workspace.
|