-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore auto-installation of local collection (#3225)
Before 3.4.0 molecule used to auto-install local collection if one is detected. This patch restores this behavior and installs a collection as part of the prerun.
- Loading branch information
Showing
6 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: goodies | ||
namespace: acme | ||
version: 1.0.0 | ||
readme: README.md | ||
authors: | ||
- Red Hat | ||
description: Acme Goodies Collection | ||
build_ignore: | ||
- "*.egg-info" | ||
- .DS_Store | ||
- .eggs | ||
- .gitignore | ||
- .mypy_cache | ||
- .pytest_cache | ||
- .stestr | ||
- .stestr.conf | ||
- .tox | ||
- .vscode | ||
- MANIFEST.in | ||
- build | ||
- dist | ||
- doc | ||
- report.html | ||
- setup.cfg | ||
- setup.py | ||
- "tests/unit/*.*" | ||
- README.rst | ||
- tox.ini | ||
|
||
repository: https://opendev.org/openstack/tripleo-repos | ||
license_file: LICENSE |
7 changes: 7 additions & 0 deletions
7
src/molecule/test/resources/sample-collection/molecule/default/converge.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Converge | ||
hosts: localhost | ||
tasks: | ||
- name: "Include sample role from current collection" | ||
include_role: | ||
name: acme.goodies.get_rich |
11 changes: 11 additions & 0 deletions
11
src/molecule/test/resources/sample-collection/molecule/default/molecule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: delegated | ||
platforms: | ||
- name: instance | ||
provisioner: | ||
name: ansible | ||
verifier: | ||
name: ansible |
3 changes: 3 additions & 0 deletions
3
src/molecule/test/resources/sample-collection/roles/get_rich/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- name: "some task inside foo.bar collection" | ||
debug: | ||
msg: "hello world!" |