Browse Source

Correct Undefined variable

Diego Abelenda 7 years ago
parent
commit
eb3c68e36f

+ 1 - 0
roles/openshift_node_group/defaults/main.yml

@@ -47,3 +47,4 @@ openshift_service_type_dict:
   origin: origin
   openshift-enterprise: atomic-openshift
 openshift_service_type: "{{ openshift_service_type_dict[openshift_deployment_type] }}"
+openshift_node_group_use_persistentlocalvolumes: "{{ openshift_persistentlocalstorage_enabled | default(False) | bool }}"

+ 1 - 1
roles/openshift_node_group/templates/node-config.yaml.j2

@@ -50,7 +50,7 @@ kubeletArguments:
   - "{{ openshift_node_group_labels | join(',') }}"
   enable-controller-attach-detach:
   - 'true'
-{% if openshift_node_use_persistentlocalvolumes | bool %}
+{% if openshift_node_group_use_persistentlocalvolumes | bool %}
   feature-gates:
   - PersistentLocalVolumes=true
 {% endif %}

+ 6 - 5
roles/openshift_persistentlocalstorage/README.md

@@ -9,11 +9,12 @@ Requirements
 Role Variables
 --------------
 
-| Name                           | Default value      |                                                                           |
-|--------------------------------|--------------------|---------------------------------------------------------------------------|
-| persistentlocalstorage_project | local-storage      | The namespace where the Persistent Local Volume Provider will be deployed |
-| persistentlocalstorage_classes | []                 | Storage classes that will be created                                      |
-| persistentlocalstorage_path    | /mnt/local-storage | Path on the hosts that will be used as base for the local storage classes |
+| Name                                      | Default value                                            |                                                                           |
+|-------------------------------------------|----------------------------------------------------------|---------------------------------------------------------------------------|
+| persistentlocalstorage_project            | local-storage                                            | The namespace where the Persistent Local Volume Provider will be deployed |
+| persistentlocalstorage_classes            | []                                                       | Storage classes that will be created                                      |
+| persistentlocalstorage_path               | /mnt/local-storage                                       | Path on the hosts that will be used as base for the local storage classes |
+| persistentlocalstorage_provisionner_image | quay.io/external_storage/local-volume-provisioner:v1.0.1 | Docker image for the persistent storage volume provisionner               |
 
 Dependencies
 ------------