Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add EVS apimon playbooks for different disk types #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions playbooks/scenario3c_evs_az_SAS.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

# Scenario to test EVS deployment in different AZs
#
- name: Scenario 3c - Storage SAS per AZ
hosts: localhost
vars:
prefix: scenario3c-
tasks:
- set_fact:
prefix: "{{ (prefix + ( lookup('env', 'TASK_EXECUTOR_JOB_ID') | default(99999999 | random | to_uuid | hash('md5'), true) ) ) }}"

- set_fact:
test_volume_name: "{{ (prefix + '-test_volume_apimon') }}"

- block:

- name: Get Availability zones
opentelekomcloud.cloud.availability_zone_info:
register: azs

- name: "Create SAS Volume in AZs"
include_role:
name: volume_create_delete
vars:
volume_name: "{{ (item['name'] + '.' + test_volume_name) }}"
availability_zone: "{{ item['name'] }}"
volume_type: "SAS"
size: 10
display_name: "{{ volume_name }}"
loop: "{{ azs['availability_zones'] }}"
31 changes: 31 additions & 0 deletions playbooks/scenario3d_evs_az_SATA.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

# Scenario to test EVS deployment in different AZs
#
- name: Scenario 3d - Storage SATA per AZ
hosts: localhost
vars:
prefix: scenario3d-
tasks:
- set_fact:
prefix: "{{ (prefix + ( lookup('env', 'TASK_EXECUTOR_JOB_ID') | default(99999999 | random | to_uuid | hash('md5'), true) ) ) }}"

- set_fact:
test_volume_name: "{{ (prefix + '-test_volume_apimon') }}"

- block:

- name: Get Availability zones
opentelekomcloud.cloud.availability_zone_info:
register: azs

- name: "Create SATA Volume in AZs"
include_role:
name: volume_create_delete
vars:
volume_name: "{{ (item['name'] + '.' + test_volume_name) }}"
availability_zone: "{{ item['name'] }}"
volume_type: "SATA"
size: 10
display_name: "{{ volume_name }}"
loop: "{{ azs['availability_zones'] }}"
31 changes: 31 additions & 0 deletions playbooks/scenario3e_evs_az_SSD.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

# Scenario to test EVS deployment in different AZs
#
- name: Scenario 3e - Storage SSD per AZ
hosts: localhost
vars:
prefix: scenario3e-
tasks:
- set_fact:
prefix: "{{ (prefix + ( lookup('env', 'TASK_EXECUTOR_JOB_ID') | default(99999999 | random | to_uuid | hash('md5'), true) ) ) }}"

- set_fact:
test_volume_name: "{{ (prefix + '-test_volume_apimon') }}"

- block:

- name: Get Availability zones
opentelekomcloud.cloud.availability_zone_info:
register: azs

- name: "Create SSD Volume in AZs"
include_role:
name: volume_create_delete
vars:
volume_name: "{{ (item['name'] + '.' + test_volume_name) }}"
availability_zone: "{{ item['name'] }}"
volume_type: "SSD"
size: 10
display_name: "{{ volume_name }}"
loop: "{{ azs['availability_zones'] }}"
1 change: 1 addition & 0 deletions roles/volume_create_delete/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
openstack.cloud.volume:
state: present
availability_zone: "{{ availability_zone | default(omit) }}"
volume_type: "{{ volume_type }}"
size: 10
display_name: "{{ volume_name }}"
tags:
Expand Down