ocf / puppet

Puppet config for OCF servers and lab machines
https://www.ocf.berkeley.edu/
32 stars 71 forks source link

NFS exports file should auto create directories with 750 permission #574

Open Baisang opened 5 years ago

Baisang commented 5 years ago

Right now we don't create directories when we create nfs exports; we should modify https://github.com/ocf/puppet/blob/master/modules/ocf_filehost/manifests/nfs_export.pp to also create the directory with 750 permissions if it does not exist in addition to modifying the exports file.

If we don't create the directory it's very easy to bring down NFS with a puppet run

Baisang commented 5 years ago

maybe something like

file { ${name}
  path => ${name}
  ensure => directory
  mode => 0750
}