This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First pass at adding support for ks_meta and other beaker overrides * NoOpProvisioner support. (#24) * First pass at adding a NoOpProvisioner * Cleaned up linter issues with linchpin passthrough and NoOpProvisioning. Also completed initial implementation of NoOpProvisioner. * Added basic test for NoOpProvisioning and enhanced info propagation. * Terrible hack to create new TargetHosts * Fixed issue with inventory file not being saved in inventoryPath var * Tried to add explicit root user since last test failed. But manual test works * Added cinch groups to layout file * Updating inventory path so that Cinch group_vars are picked up * Added tests for broken inventory paths * Brought code coverage back to 100% and fixed a bug with constructor params not propagating for hosts * Added pwd to lib test * Fixed PinFile, updated hostRequires, and allowed passthrough of distro and variant (#25) * Updated param type for hostrequires * Adding copy over for distro and variant * Ensuring the correct PinFile is used for provisioning * Fixed syntax error on endifs * Reverted provisioning conf and fixed provision test * LinchPin passthrough arguments and SSH mode script output archiving. (#26) * Updated param type for hostrequires * Adding copy over for distro and variant * Ensuring the correct PinFile is used for provisioning * Fixed syntax error on endifs * Reverted provisioning conf and fixed provision test * Started adding support for output synchronization in SSH mode * Added scriptParams object and fixed try/catch * Trying to move playbooks into resources * Adding the key file specification back to the playbook command * Added missing quotes * Writing out the file so that we can pass it as a path * Fixed syntax error with playbooks * Debugging failing playbooks * Moved playbook after the extra vars spec * Adding quotes around the invalid JSON * Adding missing quotes x2 * Adding rsync install role to run_scripts * Create a tmp directory to house results * Adding the directory keyword so that it gets created * Removing playbooks directory from paths * Moved lookup paths to correspond with new structure * Adding -x to ensure the script gets echo'd * Teardown rework and SSH output synchronization (#27) * Ensuring the correct PinFile is used for provisioning * Reverted provisioning conf and fixed provision test * Started adding support for output synchronization in SSH mode * Trying to move playbooks into resources * Adding the key file specification back to the playbook command * Added missing quotes * Debugging failing playbooks * Adding quotes around the invalid JSON * Adding missing quotes x2 * Adding rsync install role to run_scripts * Create a tmp directory to house results * Adding the directory keyword so that it gets created * Removing playbooks directory from paths * Moved lookup paths to correspond with new structure * Adding -x to ensure the script gets echo'd * Added logs to track error propagation * Reworked sections to ensure errors will trigger teardown when possible * Added support for host type override * Altered provisioning logic to prevent double calls into linchpin provisioner * Removed debug logs * Cleaned up error messaging for provisioning failures * Removed teardown log * Upgrading release version (#28) * Release version and linchpin distro/variant defaults fix (#29) * Upgrading release version * Ansible defaults choose null (a.k.a. 'None') over the default value * Disabling codenarc in favor of having working assignments (#30) * Added architecture to output file name to ensure parallel arch results are saved (#31) * manual install rsync (#32)
- Loading branch information
Showing
26 changed files
with
847 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Collect Artifacts and Reports | ||
hosts: all | ||
gather_facts: true | ||
|
||
vars_prompt: | ||
- name: test_dir | ||
prompt: "Please enter the path to your tests" | ||
|
||
tasks: | ||
- debug: msg="{{ test_dir }}" | ||
|
||
- synchronize: | ||
src: "/tmp/tests/" | ||
dest: "{{ test_dir }}" | ||
mode: pull | ||
ignore_errors: true |
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,42 @@ | ||
--- | ||
- name: "Run Scripts on each Inventory Host" | ||
hosts: all | ||
gather_facts: true | ||
vars_prompt: | ||
- name: test_dir | ||
prompt: "Please enter the path to your tests" | ||
|
||
tasks: | ||
- debug: | ||
msg: "{{ test_dir }}" | ||
|
||
- package: | ||
name: "{{ item }}" | ||
state: latest | ||
with_items: | ||
- rsync | ||
- libselinux-python | ||
- python2 | ||
|
||
- file: | ||
path: "/tmp/{{ test_dir }}" | ||
state: directory | ||
|
||
- synchronize: | ||
src: "{{ test_dir }}/scripts" | ||
dest: "/tmp/{{ test_dir }}" | ||
mode: push | ||
ignore_errors: true | ||
|
||
- find: | ||
recurse: false | ||
paths: "/tmp/{{ test_dir }}/scripts" | ||
file_type: directory | ||
register: scripts | ||
|
||
- shell: "mkdir -p artifacts; bash -x test.sh {{ script_args | default('') }} &> artifacts/{{ ansible_architecture }}-output.txt" | ||
args: | ||
chdir: "{{ script_dir }}" | ||
loop: "{{ scripts.files | map(attribute='path') | list }}" | ||
loop_control: | ||
loop_var: script_dir |
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
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
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.