-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dummy struct for integration test
- Loading branch information
Showing
10 changed files
with
50 additions
and
36 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 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
3 changes: 3 additions & 0 deletions
3
test/projectSimpleLevel/inventories/customer1/group_vars/all.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 @@ | ||
param01: param01-value | ||
param02: param02-value | ||
param03: param03-value |
Empty file.
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,14 @@ | ||
[all:vars] | ||
platform=os | ||
customer=dploy | ||
env=prod | ||
os=windows | ||
|
||
[worker:vars] | ||
volumes_flavors=nvme-1TB | ||
|
||
[worker] | ||
worker-001 ansible_host=10.0.0.1 node_alias=node-01 | ||
worker-002 ansible_host=10.0.0.2 node_alias=node-02 | ||
worker-003 ansible_host=10.0.0.3 node_alias=node-03 | ||
worker-004 ansible_host=10.0.0.4 node_alias=node-04 |
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,2 @@ | ||
dependencies: | ||
- { role: add-extra-groupvars } |
17 changes: 17 additions & 0 deletions
17
test/projectSimpleLevel/roles/existing-role-1/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,17 @@ | ||
|
||
|
||
# Gather facts about a particular instance using ID | ||
- name: Gathering Fact to compute aws node ips | ||
ec2_instance_facts: | ||
filters: | ||
instance.group-name: "dploy.{{ dns_iaas_domain }}" | ||
"tag:Tenant": "{{ customer | lower }}" | ||
delegate_to: localhost | ||
register: groupname | ||
run_once: true | ||
tags: test1 | ||
|
||
- name: Display to host group | ||
delegate_to: localhost | ||
debug: msg="{{ ansible_host }} - {{ inventory_hostname }}" | ||
tags: test3 |
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,12 @@ | ||
- hosts: worker | ||
gather_facts: yes | ||
roles: | ||
- { role: existing-role-1, tags: [ "existing-role", "role-1" ] } | ||
tags: playtag1 | ||
|
||
- hosts: unexisting-group | ||
gather_facts: yes | ||
serial: 100% | ||
roles: | ||
- { role: missingRole, tags: [ "missing-role", "role-2" ] } | ||
tags: playtag2 |