From d8ac4de367a04728813564f3f7ed3a365f2050bc Mon Sep 17 00:00:00 2001 From: david Date: Wed, 1 Aug 2007 11:25:27 +0000 Subject: added local override for modules_dir and use it for ntp git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@140 f03ff2f1-f02d-0410-970d-b9634babeaa1 --- manifests/defines/modules_dir.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 manifests/defines/modules_dir.pp (limited to 'manifests/defines') 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 +# 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; + } +} -- cgit v1.2.3