-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
151 additions
and
0 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,3 @@ | ||
cloud/cs | ||
cs/group1 | ||
cs/group3 |
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 @@ | ||
--- | ||
dependencies: | ||
- cs_common |
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,143 @@ | ||
--- | ||
- name: setup iso | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
cross_zones: true | ||
state: absent | ||
register: iso | ||
- name: verify setup iso | ||
assert: | ||
that: | ||
- iso is successful | ||
|
||
- name: test download iso in check mode | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
url: "{{ cs_iso_url }}" | ||
os_type: Debian GNU/Linux 7(64-bit) | ||
cross_zones: true | ||
register: iso | ||
check_mode: true | ||
- name: verify test download iso in check mode | ||
assert: | ||
that: | ||
- iso is changed | ||
|
||
- name: test download iso | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
url: "{{ cs_iso_url }}" | ||
os_type: Debian GNU/Linux 7(64-bit) | ||
cross_zones: true | ||
register: iso | ||
- name: verify test download iso | ||
assert: | ||
that: | ||
- iso is changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso" | ||
- iso.cross_zones == true | ||
|
||
- name: test download iso idempotence | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
url: "{{ cs_iso_url }}" | ||
os_type: Debian GNU/Linux 7(64-bit) | ||
cross_zones: true | ||
register: iso | ||
- name: verify test download iso idempotence | ||
assert: | ||
that: | ||
- iso is not changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso" | ||
- iso.cross_zones == true | ||
|
||
- name: test update iso in check mode | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
display_text: "{{ cs_resource_prefix }}-iso display_text" | ||
url: "{{ cs_iso_url }}" | ||
os_type: CentOS 7 | ||
cross_zones: true | ||
register: iso | ||
check_mode: true | ||
- name: verify test update iso in check mode | ||
assert: | ||
that: | ||
- iso is changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso" | ||
- iso.cross_zones == true | ||
|
||
- name: test update iso | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
display_text: "{{ cs_resource_prefix }}-iso display_text" | ||
url: "{{ cs_iso_url }}" | ||
os_type: CentOS 7 | ||
cross_zones: true | ||
register: iso | ||
- name: verify test update iso | ||
assert: | ||
that: | ||
- iso is changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso display_text" | ||
- iso.cross_zones == true | ||
|
||
- name: test update iso idempotence | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
display_text: "{{ cs_resource_prefix }}-iso display_text" | ||
url: "{{ cs_iso_url }}" | ||
os_type: CentOS 7 | ||
cross_zones: true | ||
register: iso | ||
- name: verify test update iso idempotence | ||
assert: | ||
that: | ||
- iso is not changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso display_text" | ||
- iso.cross_zones == true | ||
|
||
- name: test remove iso in check mode | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
state: absent | ||
cross_zones: true | ||
register: iso | ||
check_mode: true | ||
- name: verify test remove iso in check mode | ||
assert: | ||
that: | ||
- iso is changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso display_text" | ||
- iso.cross_zones == true | ||
|
||
- name: test remove iso | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
state: absent | ||
cross_zones: true | ||
register: iso | ||
- name: verify test remove iso | ||
assert: | ||
that: | ||
- iso is changed | ||
- iso.name == cs_resource_prefix + "-iso" | ||
- iso.display_text == cs_resource_prefix + "-iso display_text" | ||
- iso.cross_zones == true | ||
|
||
- name: test remove iso idempotence | ||
ngine_io.cloudstack.iso: | ||
name: "{{ cs_resource_prefix }}-iso" | ||
state: absent | ||
cross_zones: true | ||
register: iso | ||
- name: verify test remove iso idempotence | ||
assert: | ||
that: | ||
- iso is not changed |
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 @@ | ||
--- | ||
cs_iso_url: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.6.0-amd64-netinst.iso |