Browse Source

Support azure for management storage class

Arun Babu Neelicattu 7 years ago
parent
commit
876f5f00d2

File diff suppressed because it is too large
+ 1 - 1
roles/openshift_management/README.md


+ 2 - 2
roles/openshift_management/defaults/main.yml

@@ -48,8 +48,8 @@ openshift_management_storage_class: nfs
 #   configured the required inventory parameters for your cloud
 #   provider
 #
-#   Ensure 'openshift_cloudprovider_kind' is defined (aws or gce) and
-#   that the applicable cloudprovider parameters are provided.
+#   Ensure 'openshift_cloudprovider_kind' is defined (aws, azure or gce)
+#   and that the applicable cloudprovider parameters are provided.
 
 #---------------------------------------------------------------------
 # STORAGE - NFS OPTIONS

+ 1 - 1
roles/openshift_management/tasks/storage/storage.yml

@@ -1,3 +1,3 @@
 ---
 - include_tasks: nfs.yml
-  when: not (openshift_cloudprovider_kind is defined and (openshift_cloudprovider_kind == 'aws' or openshift_cloudprovider_kind == 'gce'))
+  when: not (openshift_cloudprovider_kind | default('none') in ['aws', 'azure', 'gce'])

+ 3 - 3
roles/openshift_management/tasks/validate.yml

@@ -49,13 +49,13 @@
 - name: Validate Cloud Provider storage class
   assert:
     that:
-      - openshift_cloudprovider_kind == 'aws' or openshift_cloudprovider_kind == 'gce'
+      - openshift_cloudprovider_kind in ['aws','azure','gce']
     msg: |
       openshift_management_storage_class is 'cloudprovider' but you have an
       invalid kind defined, '{{ openshift_cloudprovider_kind }}'. See
       'openshift_cloudprovider_kind' in the example inventories for
       the required parameters for your selected cloud
-      provider. Working providers: 'aws' and 'gce'.
+      provider. Working providers: 'aws', 'azure' and 'gce'.
   when:
     - openshift_management_storage_class == 'cloudprovider'
     - openshift_cloudprovider_kind is defined
@@ -70,7 +70,7 @@
       required. Search the example inventories for
       'openshift_cloudprovider_kind'. The required parameters for your
       selected cloud provider must be defined in your inventory as
-      well. Working providers: 'aws' and 'gce'.
+      well. Working providers: 'aws', 'azure' and 'gce'.
   when:
     - openshift_management_storage_class == 'cloudprovider'