Defined Type: smb::mount
- Defined in:
- manifests/mount.pp
Summary
Create an SMB mountpointOverview
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/mount.pp', line 6
define smb::mount (
String $share,
String $options = 'username=NULL,password=NULL',
String $path = $title,
) {
file { $path:
ensure => directory,
}
mount { $path:
ensure => mounted,
device => $share,
atboot => true,
fstype => 'cifs',
options => $options,
dump => '0',
pass => '2',
require => Package['cifs-utils'],
}
}
|