define profiles::mounts::instance ( String $what, String $where = $name, Array[String] $options = [], ) { file { $where: ensure => directory, } systemd_mount { $where: what => $what, where => $where, wantedBy => 'remote-fs.target', automount => true, require => File[$where], options => $options, } }