Defined Type: storm::storage_root_dir
- Defined in:
-
manifests/storage_root_dir.pp
Summary
Check if a storage root directory path exists. If not, a new directory is created with 755 as permissions and the defined owner and group.
Overview
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'manifests/storage_root_dir.pp', line 18
define storm::storage_root_dir (
String $path,
String $owner,
String $group,
) {
exec { "${title}_create_root_directory":
command => "/bin/mkdir -p ${path}",
unless => "/bin/test -d ${path}",
creates => $path,
}
exec { "${title}_set_ownership_on_root_directory":
command => "/bin/chown ${owner}:${group} ${path}",
require => Exec["${title}_create_root_directory"],
}
exec { "${title}_set_permissions_on_root_directory":
command => "/bin/chmod 755 ${path}",
require => Exec["${title}_set_ownership_on_root_directory"],
}
}
|