diff options
author | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-08 17:57:53 +0000 |
---|---|---|
committer | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-08 17:57:53 +0000 |
commit | 90dab4fda523eef3e941e7599d705c178c5d5c06 (patch) | |
tree | 41602d6bb5c291df830caf7296d7efbec8b6bb2e /manifests/defines | |
parent | a73085c7e09db81adceb789efce6e561162583c7 (diff) | |
download | puppet-common-90dab4fda523eef3e941e7599d705c178c5d5c06.tar.gz puppet-common-90dab4fda523eef3e941e7599d705c178c5d5c06.tar.bz2 |
restructure puppet_install
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@191 f03ff2f1-f02d-0410-970d-b9634babeaa1
Diffstat (limited to 'manifests/defines')
-rw-r--r-- | manifests/defines/puppet_install.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/defines/puppet_install.pp b/manifests/defines/puppet_install.pp index 5f4d62d..b80fee2 100644 --- a/manifests/defines/puppet_install.pp +++ b/manifests/defines/puppet_install.pp @@ -2,6 +2,18 @@ # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> # See LICENSE for the full license granted to you. +# prepare directories to drop various puppet enhancements +file { + [ + "${rubysitedir}", "${rubysitedir}/puppet", + "${rubysitedir}/puppet/provider", + "${rubysitedir}/puppet/provider/user", + "${rubysitedir}/puppet/provider/group" + ]: + ensure => directory, + mode => 0755, owner => root, group => root, +} + define puppet::function($source) { file { "${rubysitedir}/puppet/parser/functions/${name}.rb": @@ -17,3 +29,11 @@ define puppet::fact($source) { mode => 755, owner => root, group => root, } } + +define puppet::provider($source) { + file { + "${rubysitedir}/puppet/provider/${name}.rb": + source => $source, + mode => 755, owner => root, group => root, + } +} |