mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-28 10:24:45 +00:00
Enable the ansible turbo module (#68)
- enable the AnsibleTurboModule: Use AnsibleTurboModule when the `cloud.common` collection is available. - Add dependency install step to molecule: Molecule won't install dependencies from galaxy.yml. We need to explicitly list them in a requirements.yml file and then enable the dependency step for molecule test.
This commit is contained in:
@@ -8,7 +8,8 @@ authors:
|
|||||||
- willthames (https://github.com/willthames)
|
- willthames (https://github.com/willthames)
|
||||||
- mmazur (https://github.com/mmazur)
|
- mmazur (https://github.com/mmazur)
|
||||||
- jamescassell (https://github.com/jamescassell)
|
- jamescassell (https://github.com/jamescassell)
|
||||||
dependencies: {}
|
dependencies:
|
||||||
|
- cloud.common
|
||||||
description: Kubernetes Collection for Ansible.
|
description: Kubernetes Collection for Ansible.
|
||||||
documentation: ''
|
documentation: ''
|
||||||
homepage: ''
|
homepage: ''
|
||||||
|
|||||||
@@ -32,7 +32,12 @@ provisioner:
|
|||||||
scenario:
|
scenario:
|
||||||
name: default
|
name: default
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
- dependency
|
||||||
- lint
|
- lint
|
||||||
- syntax
|
- syntax
|
||||||
- converge
|
- converge
|
||||||
- verify
|
- verify
|
||||||
|
dependency:
|
||||||
|
name: galaxy
|
||||||
|
options:
|
||||||
|
requirements-file: requirements.yml
|
||||||
|
|||||||
@@ -3,4 +3,10 @@ from __future__ import (absolute_import, division, print_function)
|
|||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule # noqa: F401
|
try:
|
||||||
|
from ansible_collections.cloud.common.plugins.module_utils.turbo.module import (
|
||||||
|
AnsibleTurboModule as AnsibleModule,
|
||||||
|
) # noqa: F401
|
||||||
|
AnsibleModule.collection_name = "kubernetes.core"
|
||||||
|
except ImportError:
|
||||||
|
from ansible.module_utils.basic import AnsibleModule # noqa: F401
|
||||||
|
|||||||
2
requirements.yml
Normal file
2
requirements.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
collections:
|
||||||
|
- cloud.common
|
||||||
Reference in New Issue
Block a user