restructure puppet_install

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@191 f03ff2f1-f02d-0410-970d-b9634babeaa1
This commit is contained in:
david 2007-08-08 17:57:53 +00:00
parent a73085c7e0
commit 90dab4fda5
2 changed files with 22 additions and 7 deletions

View file

@ -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,
}
}

View file

@ -10,16 +10,11 @@ file {
source => "puppet://$servername/common/modules/",
recurse => true, purge => true, force => true,
mode => 0755, owner => root, group => root;
# prepare directories to drop various puppet enhancements
[ "$rubysitedir/puppet", "$rubysitedir/facter" ]:
ensure => directory,
mode => 0755, owner => root, group => root;
}
class common::puppetmaster {
file {
"$rubysitedir/puppet/parser":
"${rubysitedir}/puppet/parser":
ensure => directory,
mode => 0755, owner => root, group => root;
"$rubysitedir/puppet/parser/functions":