1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Replace symlinks with meta/runtime.yml redirects. (#4562)

This commit is contained in:
Felix Fontein 2022-04-26 20:33:13 +02:00 committed by GitHub
parent 7ee38eadf3
commit 7743ecd776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
553 changed files with 1109 additions and 559 deletions

View file

@ -106,9 +106,15 @@ Creating new modules and plugins requires a bit more work than other Pull Reques
- Make sure that new plugins and modules have tests (unit tests, integration tests, or both); it is preferable to have some tests - Make sure that new plugins and modules have tests (unit tests, integration tests, or both); it is preferable to have some tests
which run in CI. which run in CI.
4. For modules and action plugins, make sure to create your module/plugin in the correct subdirectory, and create a symbolic link 4. For modules and action plugins, make sure to create your module/plugin in the correct subdirectory, and add a redirect entry
from `plugins/modules/` respectively `plugins/action/` to the actual module/plugin code. (Other plugin types should not use in `meta/runtime.yml`. For example, for the `aerospike_migrations` module located in
subdirectories.) `plugins/modules/database/aerospike/aerospike_migrations.py`, you need to create the following entry:
```.yaml
aerospike_migrations:
redirect: community.general.database.aerospike.aerospike_migrations
```
Here, the relative path `database/aerospike/` is inserted into the module's FQCN (Fully Qualified Collection Name) after the
collection's name and before the module's name. This must not be done for other plugin types but modules and action plugins!
- Action plugins need to be accompanied by a module, even if the module file only contains documentation - Action plugins need to be accompanied by a module, even if the module file only contains documentation
(`DOCUMENTATION`, `EXAMPLES` and `RETURN`). The module must have the same name and directory path in `plugins/modules/` (`DOCUMENTATION`, `EXAMPLES` and `RETURN`). The module must have the same name and directory path in `plugins/modules/`

View file

@ -10,3 +10,4 @@ breaking_changes:
- git_config - remove Ansible 2.9 and early ansible-base 2.10 compatibility code (https://github.com/ansible-collections/community.general/pull/4548). - git_config - remove Ansible 2.9 and early ansible-base 2.10 compatibility code (https://github.com/ansible-collections/community.general/pull/4548).
- java_keystore - remove Ansible 2.9 compatibility code (https://github.com/ansible-collections/community.general/pull/4548). - java_keystore - remove Ansible 2.9 compatibility code (https://github.com/ansible-collections/community.general/pull/4548).
- a_module test plugin - remove Ansible 2.9 compatibility code (https://github.com/ansible-collections/community.general/pull/4548). - a_module test plugin - remove Ansible 2.9 compatibility code (https://github.com/ansible-collections/community.general/pull/4548).
- The symbolic links used to implement flatmapping for all modules were removed and replaced by ``meta/runtime.yml`` redirects. This effectively breaks compatibility with Ansible 2.9 for all modules (without using their "long" names, which is discouraged and which can change without previous notice since they are considered an implementation detail) (https://github.com/ansible-collections/community.general/pull/4548).

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
./system/iptables_state.py

View file

@ -1 +0,0 @@
./system/shutdown.py

View file

@ -1 +0,0 @@
say.py

View file

@ -1 +0,0 @@
./database/aerospike/aerospike_migrations.py

View file

@ -1 +0,0 @@
./monitoring/airbrake_deployment.py

View file

@ -1 +0,0 @@
./system/aix_devices.py

View file

@ -1 +0,0 @@
./system/aix_filesystem.py

View file

@ -1 +0,0 @@
./system/aix_inittab.py

View file

@ -1 +0,0 @@
./system/aix_lvg.py

View file

@ -1 +0,0 @@
./system/aix_lvol.py

View file

@ -1 +0,0 @@
./monitoring/alerta_customer.py

View file

@ -1 +0,0 @@
./cloud/alicloud/ali_instance.py

View file

@ -1 +0,0 @@
./cloud/alicloud/ali_instance_info.py

View file

@ -1 +0,0 @@
./system/alternatives.py

View file

@ -1 +0,0 @@
packaging/language/ansible_galaxy_install.py

View file

@ -1 +0,0 @@
./web_infrastructure/apache2_mod_proxy.py

View file

@ -1 +0,0 @@
./web_infrastructure/apache2_module.py

View file

@ -1 +0,0 @@
./packaging/os/apk.py

View file

@ -1 +0,0 @@
./packaging/os/apt_repo.py

View file

@ -1 +0,0 @@
./packaging/os/apt_rpm.py

View file

@ -1 +0,0 @@
./files/archive.py

View file

@ -1 +0,0 @@
./cloud/atomic/atomic_container.py

View file

@ -1 +0,0 @@
./cloud/atomic/atomic_host.py

View file

@ -1 +0,0 @@
./cloud/atomic/atomic_image.py

View file

@ -1 +0,0 @@
./system/awall.py

View file

@ -1 +0,0 @@
./system/beadm.py

View file

@ -1 +0,0 @@
./notification/bearychat.py

View file

@ -1 +0,0 @@
./monitoring/bigpanda.py

View file

@ -1 +0,0 @@
./source_control/bitbucket/bitbucket_access_key.py

View file

@ -1 +0,0 @@
./source_control/bitbucket/bitbucket_pipeline_key_pair.py

View file

@ -1 +0,0 @@
./source_control/bitbucket/bitbucket_pipeline_known_host.py

View file

@ -1 +0,0 @@
./source_control/bitbucket/bitbucket_pipeline_variable.py

View file

@ -1 +0,0 @@
./packaging/language/bower.py

View file

@ -1 +0,0 @@
./packaging/language/bundler.py

View file

@ -1 +0,0 @@
./source_control/bzr.py

View file

@ -1 +0,0 @@
./notification/campfire.py

View file

@ -1 +0,0 @@
./system/capabilities.py

View file

@ -1 +0,0 @@
packaging/language/cargo.py

View file

@ -1 +0,0 @@
./notification/catapult.py

View file

@ -1 +0,0 @@
./monitoring/circonus_annotation.py

View file

@ -1 +0,0 @@
notification/cisco_spark.py

View file

@ -1 +0,0 @@
notification/cisco_webex.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_aa_policy.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_alert_policy.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_blueprint_package.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_firewall_policy.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_group.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_loadbalancer.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_modify_server.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_publicip.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_server.py

View file

@ -1 +0,0 @@
./cloud/centurylink/clc_server_snapshot.py

View file

@ -1 +0,0 @@
./cloud/misc/cloud_init_data_facts.py

View file

@ -1 +0,0 @@
./net_tools/cloudflare_dns.py

View file

@ -1 +0,0 @@
./remote_management/cobbler/cobbler_sync.py

View file

@ -1 +0,0 @@
./remote_management/cobbler/cobbler_system.py

View file

@ -1 +0,0 @@
./packaging/language/composer.py

View file

@ -1 +0,0 @@
./clustering/consul/consul.py

View file

@ -1 +0,0 @@
./clustering/consul/consul_acl.py

View file

@ -1 +0,0 @@
./clustering/consul/consul_kv.py

View file

@ -1 +0,0 @@
./clustering/consul/consul_session.py

View file

@ -1 +0,0 @@
./packaging/os/copr.py

View file

@ -1 +0,0 @@
./packaging/language/cpanm.py

View file

@ -1 +0,0 @@
./system/cronvar.py

View file

@ -1 +0,0 @@
./system/crypttab.py

View file

@ -1 +0,0 @@
./monitoring/datadog/datadog_downtime.py

View file

@ -1 +0,0 @@
./monitoring/datadog/datadog_event.py

View file

@ -1 +0,0 @@
./monitoring/datadog/datadog_monitor.py

View file

@ -1 +0,0 @@
./system/dconf.py

View file

@ -1 +0,0 @@
./web_infrastructure/deploy_helper.py

View file

@ -1 +0,0 @@
./cloud/dimensiondata/dimensiondata_network.py

View file

@ -1 +0,0 @@
./cloud/dimensiondata/dimensiondata_vlan.py

View file

@ -1 +0,0 @@
./notification/discord.py

View file

@ -1 +0,0 @@
./web_infrastructure/django_manage.py

View file

@ -1 +0,0 @@
./packaging/os/dnf_versionlock.py

View file

@ -1 +0,0 @@
./net_tools/dnsimple.py

View file

@ -1 +0,0 @@
./net_tools/dnsimple_info.py

View file

@ -1 +0,0 @@
./net_tools/dnsmadeeasy.py

View file

@ -1 +0,0 @@
./system/dpkg_divert.py

View file

@ -1 +0,0 @@
./packaging/language/easy_install.py

View file

@ -1 +0,0 @@
./web_infrastructure/ejabberd_user.py

View file

@ -1 +0,0 @@
./database/misc/elasticsearch_plugin.py

View file

@ -1 +0,0 @@
./storage/emc/emc_vnx_sg_member.py

View file

@ -1 +0,0 @@
./clustering/etcd3.py

View file

@ -1 +0,0 @@
./system/facter.py

View file

@ -1 +0,0 @@
files/filesize.py

View file

@ -1 +0,0 @@
./system/filesystem.py

View file

@ -1 +0,0 @@
./packaging/os/flatpak.py

View file

@ -1 +0,0 @@
./packaging/os/flatpak_remote.py

View file

@ -1 +0,0 @@
./notification/flowdock.py

View file

@ -1 +0,0 @@
net_tools/gandi_livedns.py

View file

@ -1 +0,0 @@
./system/gconftool2.py

View file

@ -1 +0,0 @@
./packaging/language/gem.py

View file

@ -1 +0,0 @@
./source_control/git_config.py

View file

@ -1 +0,0 @@
./source_control/github/github_deploy_key.py

View file

@ -1 +0,0 @@
./source_control/github/github_issue.py

View file

@ -1 +0,0 @@
./source_control/github/github_key.py

Some files were not shown because too many files have changed in this diff Show more