Created
February 12, 2014 17:59
-
-
Save tfhartmann/8961004 to your computer and use it in GitHub Desktop.
Puppet Definition for perl module packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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