Make local volume provisioner dir mode a variable (#4821)

* Make local volume provisioner dir mode a variable

I need to change this for Nagios monitoring. Others may
need to as well. Had to close previous commits, sorry for
the spam.

* Make local volume provisioner dir mode a variable

I need to change this for Nagios monitoring. Others may
need to as well. Had to close previous commits, sorry for
the spam.
This commit is contained in:
Frank Ritchie 2019-06-06 07:36:14 -04:00 committed by Kubernetes Prow Robot
parent 4afbf51d32
commit ab6f0012cc
3 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@
state: directory
owner: root
group: root
mode: 0700
mode: "{{ local_volume_provisioner_directory_mode }}"
delegate_to: "{{ item[0] }}"
with_nested:
- "{{ groups['k8s-cluster'] }}"

View file

@ -69,7 +69,7 @@
state: directory
owner: root
group: root
mode: 0700
mode: "{{ local_volume_provisioner_directory_mode }}"
with_items: "{{ local_volume_provisioner_storage_classes.keys() | list }}"
when:
- inventory_hostname in groups['k8s-cluster']

View file

@ -279,6 +279,7 @@ registry_enabled: false
metrics_server_enabled: false
enable_network_policy: true
local_volume_provisioner_enabled: "{{ local_volumes_enabled | default('false') }}"
local_volume_provisioner_directory_mode: 0700
persistent_volumes_enabled: false
cephfs_provisioner_enabled: false
rbd_provisioner_enabled: false