Browse Source

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.
pull/4849/head
Frank Ritchie 5 years ago
committed by Kubernetes Prow Robot
parent
commit
ab6f0012cc
3 changed files with 3 additions and 2 deletions
  1. 2
      roles/kubernetes-apps/external_provisioner/local_volume_provisioner/tasks/main.yml
  2. 2
      roles/kubernetes/preinstall/tasks/0050-create_directories.yml
  3. 1
      roles/kubespray-defaults/defaults/main.yaml

2
roles/kubernetes-apps/external_provisioner/local_volume_provisioner/tasks/main.yml

@ -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'] }}"

2
roles/kubernetes/preinstall/tasks/0050-create_directories.yml

@ -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']

1
roles/kubespray-defaults/defaults/main.yaml

@ -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

Loading…
Cancel
Save