project-config/tools
Ian Wienand 826a79f50f linter: update ansible-lint; add auto-download of roles
This updates ansible-lint to the 6.x releases.  It also updates the
ansible installed to our current zuul version.

It cleans up the config file and marks it as yaml.  A few new
exceptions are added with explainations.

We don't need to fake the zuul_return by telling ansible-lint to mock
it.  This is added to the config, and we can remove the stub file.

A constant source of problems running this locally is that you have to
have the other role repos checked out so ansible-lint can do its
checks.  Add a smaller helper script for doing this locally.  In the
gate, ANSIBLE_ROLES_PATH is set to the Zuul checkouts of these
projects.  Locally, add a smaller helper "ansible-lint-roles-cache.sh"
that pulls the projects into a .cache directory.  If they are already
there, they get updated.  By default locally we will use these
checkouts.  This way, "tox -e linters" just works without having to do
anything else.

This also modifies the xargs to run the check all at once, instead of
fork for each file.  I did try autodetection but it seems like other
yaml files in the roles/playbook directories still confuse
ansible-lint.

Also I don't think we need a ansible-playbook --syntax-check step;
ansible-lint covers that.

Change-Id: I972f73037b9f904a555b81f3835ca5261639ed01
2022-08-12 09:29:11 +10:00
..
add-projects-to-main.py Be more explicit about using python3 to run tools/ 2020-06-08 16:40:44 -07:00
ansible-lint-roles-cache.sh linter: update ansible-lint; add auto-download of roles 2022-08-12 09:29:11 +10:00
batch_update_projects.py Be more explicit about using python3 to run tools/ 2020-06-08 16:40:44 -07:00
build-dib-in-docker.sh Wrap some overly long lines 2015-12-23 13:56:53 +01:00
build-image.sh Bye, Bye, Trusty 2020-01-19 16:00:55 +01:00
check_irc_access.py Switch the IRC access check to OFTC 2021-05-27 17:09:04 +00:00
check_projects_yaml_alphabetized.sh Enable tripleo core members to change WIP flag 2020-12-07 15:59:25 +00:00
check_valid_gerrit_config.sh Enable tripleo core members to change WIP flag 2020-12-07 15:59:25 +00:00
check_valid_gerrit_projects.py HTTP check existing repositories 2022-07-18 21:45:15 +01:00
check-channels-yaml.sh Some python yaml fixes 2019-04-10 13:33:51 +00:00
ci2project.py Be more explicit about using python3 to run tools/ 2020-06-08 16:40:44 -07:00
fix-neutron-stadium.py Be more explicit about using python3 to run tools/ 2020-06-08 16:40:44 -07:00
irc_tests.py Make gerritbot linter know all the supported events 2021-04-25 17:26:25 +00:00
mount-image.sh Switch to using $() for subshells, part 1 2015-06-04 15:30:55 +10:00
nodepool-validate.sh Test all nodepool files 2018-01-19 19:41:23 +01:00
normalize_acl.py Remove unsigned tagging permission from projects 2022-01-25 17:41:19 +00:00
normalize_channels_yaml.py Be more explicit about using python3 to run tools/ 2020-06-08 16:40:44 -07:00
normalize_projects_yaml.py Drop use of track-upstream 2021-07-06 16:45:22 +00:00
projectconfig_ruamellib.py Add some helpers to projectconfig_ruamellib 2019-04-10 13:33:52 +00:00
propose_projects_yaml_update.sh Update jobs for OpenDev 2019-04-20 13:51:05 +00:00
run-bashate.sh linter: update ansible-lint; add auto-download of roles 2022-08-12 09:29:11 +10:00
run-compare-clonemap.yaml Use zuul-cloner instead of git clone 2015-04-30 11:39:20 -07:00
umount-image.sh Port build-image.sh from old config repo 2014-09-30 15:06:19 -07:00
zuul-projects-checks.py Be more explicit about using python3 to run tools/ 2020-06-08 16:40:44 -07:00