Skip to content

Commit

Permalink
fix storageclass
Browse files Browse the repository at this point in the history
  • Loading branch information
ebasso committed Jan 13, 2025
1 parent 3cfcdef commit 3f64d64
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/pem_deploy/tasks/04_define_storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
- my_storage_class == ''
- "'scale-cnsa' in my_storage_list"

- name: Check for IBM Fyre StorageClass
ansible.builtin.set_fact:
my_storage_class: "ibm-fyre1"
when:
- my_storage_class is not defined
- "'rook-cephfs' in my_storage_list"

- name: Assert that storage class has been defined
ansible.builtin.assert:
that: my_storage_class is defined and my_storage_class != ""
Expand Down
7 changes: 7 additions & 0 deletions roles/pem_deploy_db2/tasks/03_define_storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@
when:
- my_storage_class == ''
- "'scale-cnsa' in my_storage_list"

- name: Check for IBM Fyre StorageClass
ansible.builtin.set_fact:
my_storage_class: "ibm-fyre1"
when:
- my_storage_class is not defined
- "'rook-cephfs' in my_storage_list"

- name: Assert that storage class has been defined
ansible.builtin.assert:
Expand Down
7 changes: 7 additions & 0 deletions roles/pem_deploy_mq/tasks/03_define_storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
- my_storage_class is not defined
- "'scale-cnsa' in my_storage_list"

- name: Check for IBM Fyre StorageClass
ansible.builtin.set_fact:
my_storage_class: "ibm-fyre1"
when:
- my_storage_class is not defined
- "'rook-cephfs' in my_storage_list"

# 2. Non-Dynamic Provisioning
# -----------------------------------------------------------------------------
# Using pre-created Persistent Volume
Expand Down

0 comments on commit 3f64d64

Please sign in to comment.