-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'internal/main'
- Loading branch information
Showing
68 changed files
with
2,912 additions
and
602 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
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,85 @@ | ||
--- | ||
- name: "Playbook to run end-to-end test for all CRAIG templates" | ||
hosts: localhost | ||
vars_files: ../template-test/vars/vars.yml | ||
tasks: | ||
- name: Generate random suffix for schematics workspace/action names | ||
set_fact: | ||
suffix: "{{lookup('community.general.random_string', special=false, length=4)}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "from-scratch" | ||
action_name: "from-scratch-{{suffix}}" | ||
workspace_name: "from-scratch-{{suffix}}" | ||
tf_var_prefix: "from-scratch" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "mixed" | ||
action_name: "mixed-{{suffix}}" | ||
workspace_name: "mixed-{{suffix}}" | ||
tf_var_prefix: "mixed" | ||
tf_var_ssh_key: "{{mixed}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "vsi" | ||
action_name: "vsi-{{suffix}}" | ||
workspace_name: "vsi-{{suffix}}" | ||
tf_var_prefix: "vsi" | ||
tf_var_ssh_key: "{{vsi}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "vsi-edge" | ||
action_name: "vsi-edge-{{suffix}}" | ||
workspace_name: "vsi-edge-{{suffix}}" | ||
tf_var_prefix: "vsi-edge" | ||
tf_var_ssh_key: "{{vsi_edge}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "quick-start-power" | ||
action_name: "quick-{{suffix}}" | ||
workspace_name: "quick-{{suffix}}" | ||
tf_var_prefix: "quick" | ||
tf_var_ssh_key: "{{quick_start}}" | ||
- name: "Wait 30 minutes before executing the remaining templates" | ||
hosts: localhost | ||
tasks: | ||
- ansible.builtin.pause: | ||
minutes: 30 | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "power-vs-sap-hana" | ||
action_name: "sap-hana-{{suffix}}" | ||
workspace_name: "sap-hana-{{suffix}}" | ||
tf_var_prefix: "sap-hana" | ||
tf_var_ssh_key: "{{sap_hana}}" | ||
tf_var_power_ssh_key: "{{sap_hana_power}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "oracle-rac" | ||
action_name: "oracle-rac-{{suffix}}" | ||
workspace_name: "oracle-rac-{{suffix}}" | ||
tf_var_prefix: "oracle-rac" | ||
tf_var_ssh_key: "{{oracle_rac}}" | ||
tf_var_power_ssh_key: "{{oracle_rac_power}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "oracle-si" | ||
action_name: "oracle-si-{{suffix}}" | ||
workspace_name: "oracle-si-{{suffix}}" | ||
tf_var_prefix: "oracle-si" | ||
tf_var_ssh_key: "{{oracle_si}}" | ||
tf_var_power_ssh_key: "{{oracle_si_power}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "power-vs-poc" | ||
action_name: "poc-{{suffix}}" | ||
workspace_name: "poc-{{suffix}}" | ||
tf_var_prefix: "power-poc" | ||
tf_var_ssh_key: "{{poc}}" | ||
tf_var_power_ssh_key: "{{poc_power}}" | ||
- import_playbook: ../template-test/test-inside-action.yml | ||
vars: | ||
template: "vpnaas" | ||
action_name: "vpnaas-{{suffix}}" | ||
workspace_name: "vpnaas-{{suffix}}" | ||
tf_var_prefix: "vpn-test" |
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 |
---|---|---|
|
@@ -8,4 +8,5 @@ | |
headers: | ||
Authorization: Bearer {{token.json.access_token}} | ||
status_code: 202 | ||
timeout: 500 | ||
register: action_result |
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
status_code: 200 | ||
dest: "{{playbook_dir}}/{{template}}.tar" | ||
timeout: 500 | ||
delay: 60 | ||
retries: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
override_craig: | ||
atracker: | ||
enabled: false | ||
type: cos | ||
name: atracker | ||
target_name: atracker-cos | ||
bucket: atracker-bucket | ||
add_route: true | ||
cos_key: cos-bind-key | ||
locations: | ||
- global | ||
- us-south | ||
instance: false | ||
plan: lite | ||
resource_group: | ||
archive: false | ||
transit_gateways: | ||
- name: transit-gateway | ||
resource_group: service-rg | ||
global: false | ||
connections: [] | ||
use_data: false | ||
prefix_filters: [] | ||
gre_tunnels: [] | ||
crns: | ||
classic: false | ||
clusters: [] | ||
vsi: | ||
- kms: kms | ||
encryption_key: vsi-volume-key | ||
image: ibm-ubuntu-22-04-1-minimal-amd64-1 | ||
profile: cx2-4x8 | ||
name: management-server | ||
security_groups: | ||
- management-vsi | ||
ssh_keys: | ||
- ssh-key | ||
subnets: | ||
- vsi-zone-1 | ||
- vsi-zone-2 | ||
- vsi-zone-3 | ||
vpc: management | ||
vsi_per_subnet: 1 | ||
resource_group: management-rg | ||
override_vsi_name: | ||
user_data: | ||
network_interfaces: [] | ||
volumes: [] | ||
image_name: | ||
enable_floating_ip: false | ||
primary_interface_ip_spoofing: false | ||
use_variable_names: false | ||
snapshot: | ||
use_snapshot: false |
Oops, something went wrong.