Hi,
I want to write a function for Puppet that check if package already
defined, I saw in this group to do:
define safepackage ( $ensure = present ) {
if !defined(Package[$title]) {
package { $title: ensure => $ensure }
}
}
In which file I need put this function so all other modules can access it?
because I'm getting 'unknown function...' error.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/0e57cb54-13e1-4a40-8853-fc5f1e95e4b2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.