Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tfhartmann
Created February 12, 2014 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfhartmann/8961004 to your computer and use it in GitHub Desktop.
Save tfhartmann/8961004 to your computer and use it in GitHub Desktop.
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