forked from syndr/ansible-collection-molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform manager role and ec2 test platform support (#4)
Refactor `molecule.docker_platform` role to handle specifically docker testing containers and not molecule inventory files Molecule inventory files are now managed by the new `molecule.platform` role. References to `docker_platform` in molecule `create.yml` or `destroy.yml` files should be updated to use this role in order to work with this version Add `molecule.ec2_platform` role, which allows creation and use of ephemeral ec2 instances for test environments. Update `molecule.init` role to support deployment of both `docker` and `ec2` platforms. Note that only one platform type is supported per scenario! Also note that there are differences between the Molecule configuration for each platform, so this `init` role should be used to deploy the appropriate templates!
- Loading branch information
Showing
50 changed files
with
1,641 additions
and
326 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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
--- | ||
|
||
- name: Perform cleanup | ||
hosts: molecule | ||
hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- name: Remove platform | ||
- name: Remove platform(s) | ||
ansible.builtin.include_role: | ||
name: influxdata.molecule.docker_platform | ||
name: influxdata.molecule.platform | ||
vars: | ||
docker_platform_name: "{{ inventory_hostname }}" | ||
docker_platform_state: absent | ||
platform_name: "{{ item.name }}" | ||
platform_state: absent | ||
platform_type: "{{ item.type }}" | ||
platform_molecule_cfg: "{{ item }}" | ||
loop: "{{ molecule_yml.platforms }}" | ||
loop_control: | ||
label: item.name | ||
|
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
Oops, something went wrong.