mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
e1c35c457d
commit
00d3110b95
@ -1,23 +0,0 @@
|
|||||||
# Class: perl
|
|
||||||
#
|
|
||||||
# This class installs perl.
|
|
||||||
#
|
|
||||||
# Sample Usage:
|
|
||||||
#
|
|
||||||
# include perl
|
|
||||||
#
|
|
||||||
class perl {
|
|
||||||
$perl = 'perl-5.20.0'
|
|
||||||
$perlDir = '/opt/perl'
|
|
||||||
|
|
||||||
cmmi { $perl:
|
|
||||||
url => "http://www.cpan.org/src/5.0/${perl}.tar.gz",
|
|
||||||
output => "${perl}.tar.gz",
|
|
||||||
creates => $perlDir,
|
|
||||||
configure_command => 'sh ./Configure',
|
|
||||||
flags => "-des -Dprefix=${perlDir}",
|
|
||||||
} -> file { '/usr/local/bin/perl':
|
|
||||||
ensure => link,
|
|
||||||
target => "${perlDir}/bin/perl",
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user