aboutsummaryrefslogtreecommitdiffstats
path: root/modules/concat/manifests/setup.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-09 11:18:38 +0000
committerMichael Scherer <misc@mageia.org>2011-01-09 11:18:38 +0000
commit0e351d3ab799d85d16c0ee926bbc05a530247664 (patch)
tree468c818d3211c9bb75bc51fc62851486f5efd89c /modules/concat/manifests/setup.pp
parent96c7d73390935a5950161af190b691615a6c9d06 (diff)
downloadpuppet-0e351d3ab799d85d16c0ee926bbc05a530247664.tar
puppet-0e351d3ab799d85d16c0ee926bbc05a530247664.tar.gz
puppet-0e351d3ab799d85d16c0ee926bbc05a530247664.tar.bz2
puppet-0e351d3ab799d85d16c0ee926bbc05a530247664.tar.xz
puppet-0e351d3ab799d85d16c0ee926bbc05a530247664.zip
move concat to external ( taken from the web )
Diffstat (limited to 'modules/concat/manifests/setup.pp')
-rw-r--r--modules/concat/manifests/setup.pp36
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/concat/manifests/setup.pp b/modules/concat/manifests/setup.pp
deleted file mode 100644
index 9676fb66..00000000
--- a/modules/concat/manifests/setup.pp
+++ /dev/null
@@ -1,36 +0,0 @@
-# Sets up the concat system.
-#
-# $concatdir should point to a place where you wish the fragments to
-# live. This should not be somewhere like /tmp since ideally these files
-# should not be deleted ever, puppet should always manage them
-#
-# $puppetversion should be either 24 or 25 to enable a 24 compatible
-# mode, in 24 mode you might see phantom notifies this is a side effect
-# of the method we use to clear the fragments directory.
-#
-# The regular expression below will try to figure out your puppet version
-# but this code will only work in 0.24.8 and newer.
-#
-# It also copies out the concatfragments.sh file to /usr/local/bin
-class concat::setup {
- $concatdir = "/var/lib/puppet/concat"
- $majorversion = regsubst($puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1')
-
- file{"/usr/local/bin/concatfragments.sh":
- owner => root,
- group => root,
- mode => 755,
- source => $majorversion ? {
- 24 => "puppet:///concat/concatfragments.sh",
- default => "puppet:///modules/concat/concatfragments.sh"
- };
-
- $concatdir:
- ensure => directory,
- owner => root,
- group => root,
- mode => 755;
- }
-}
-
-# vi:tabstop=4:expandtab:ai