Issue #20946 has been reported by Jan  Doleschal.

----------------------------------------
Feature #20946: ENC should instantiate defines
https://projects.puppetlabs.com/issues/20946

* Author: Jan  Doleschal
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
It would be great if Puppets ENC could instantiate defines. A simple example:

site.pp
        cleanup_2::cleanup {"/var/log/php/":
                matches => "*", 
                recurse => false, 
                size    => "300m", 
                age             => "6w",
                rmdirs  => false,
        }
        cleanup_2::cleanup {"/appserver/mapbender/log/":
                matches => "*", 
                recurse => true, 
                size    => "100m", 
                age             => "2w",
                rmdirs  => false,
        }
cleanup_2/init.pp

class cleanup_2 { 

define cleanup ($matches, $age, $size, $recurse, $rmdirs) {
        tidy {"$name":
                matches => $matches, 
                age             => $age, 
                size    => $size, 
                recurse => $recurse, 
                backup  => false,
                rmdirs  => $rmdirs, 
                type => mtime;
        }
}
}

This can not be done with the current ENC, you just can add one define to a 
node... .



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to