diff options
Diffstat (limited to 'manifests/defines')
-rw-r--r-- | manifests/defines/modules_dir.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/defines/modules_dir.pp b/manifests/defines/modules_dir.pp new file mode 100644 index 0000000..7f59c60 --- /dev/null +++ b/manifests/defines/modules_dir.pp @@ -0,0 +1,20 @@ +# common/manifests/defines/modules_dir.pp -- create a default directory +# for storing module specific information +# +# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> +# See LICENSE for the full license granted to you. + +# Usage: +# modules_dir { ["common", "common/dir1", "common/dir2" ]: } +define modules_dir ( + $mode = 0755, $owner = root, $group = root + ) +{ + file { + "/var/lib/puppet/modules/${name}": + source => [ "puppet://$servername/${name}/modules_dir", "puppet://$servername/common/empty"], + checksum => mtime, + recurse => true, purge => true, force => true, + mode => $mode, owner => $owner, group => $group; + } +} |