Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Puppet Definition for perl module packages
So first I create a definition in a manifest called perl_modules.pp in the root of my module like this:
define radiator::perl_modules() {
package { "perl-$name": ensure => 'installed', before => Package['Radiator'] }
}
Then call the definition in packages.pp
class radiator::packages {
package { 'Radiator': }
radiator::perl_modules {
[ 'DBD-MySQL',
'LDAP',
'Socket6',
'Net-SSLeay',
'SOAP-Lite',
'Digest-Perl-MD5',
'Digest-MD4',
'Digest-HMAC',
'Digest-SHA1',
#'Class-Inspector',
'URI',
'HTML-Tagset',
'TimeDate',
'Crypt-SSLeay',
'DBI',
'Compress-Zlib',
#'XML-NamespaceSupport',
'Convert-ASN1',
'HTML-Parser',
'version',
'MailTools',
'Convert-BinHex',
'MIME-tools',
#'String-CRC32',
'XML-Simple',
#'XML-SAX',
'libwww-perl' ]:
#'MIME-Lite',
#'IO-Socket-SSL',
#'IO-stringy']:
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.