diff options
author | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-01 11:25:27 +0000 |
---|---|---|
committer | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-01 11:25:27 +0000 |
commit | d8ac4de367a04728813564f3f7ed3a365f2050bc (patch) | |
tree | 9634842a4517e2004205924bdedf961f39d141f8 /manifests | |
parent | e95d077173e662da9fbe5a4efbb8993c29c38c5a (diff) | |
download | puppet-common-d8ac4de367a04728813564f3f7ed3a365f2050bc.tar.gz puppet-common-d8ac4de367a04728813564f3f7ed3a365f2050bc.tar.bz2 |
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
Diffstat (limited to 'manifests')
-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; + } +} |