add defines to install facts and functions; try it in ldap module
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@175 f03ff2f1-f02d-0410-970d-b9634babeaa1
This commit is contained in:
parent
8c60b89c05
commit
5c3b366b7b
1 changed files with 22 additions and 0 deletions
22
manifests/defines/puppet_install.pp
Normal file
22
manifests/defines/puppet_install.pp
Normal file
|
@ -0,0 +1,22 @@
|
|||
# puppet_install.pp -- install puppet functions and facter facts
|
||||
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
|
||||
# See LICENSE for the full license granted to you.
|
||||
|
||||
define puppet::function($source) {
|
||||
$destination = $type ? {
|
||||
"fact" => "${rubysitedir}/facter/${name}.rb",
|
||||
}
|
||||
file {
|
||||
"${rubysitedir}/puppet/parser/functions/${name}.rb":
|
||||
source => $source,
|
||||
mode => 755, owner => root, group => root,
|
||||
}
|
||||
}
|
||||
|
||||
define puppet::fact($source) {
|
||||
file {
|
||||
"${rubysitedir}/facter/${name}.rb":
|
||||
source => $source,
|
||||
mode => 755, owner => root, group => root,
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue