parent
a4d5501de5
commit
bf3c87ede4
|
@ -257,6 +257,22 @@ file { '/etc/profile.d/env.sh':
|
|||
source => 'puppet:////vagrant/.vagrant-puppet/files/etc/profile.d/env.sh'
|
||||
}
|
||||
|
||||
pear::package { 'phpcs':
|
||||
channel => 'PHP_CodeSniffer'
|
||||
include epel
|
||||
|
||||
exec { 'install PHPUnit':
|
||||
command => 'yum -d 0 -e 0 -y --enablerepo=epel install php-phpunit-PHPUnit',
|
||||
unless => 'rpm -qa | grep php-phpunit-PHPUnit',
|
||||
require => Class['epel']
|
||||
}
|
||||
|
||||
exec { 'install PHP CodeSniffer':
|
||||
command => 'yum -d 0 -e 0 -y --enablerepo=epel install php-pear-PHP-CodeSniffer',
|
||||
unless => 'rpm -qa | grep php-pear-PHP-CodeSniffer',
|
||||
require => Class['epel']
|
||||
}
|
||||
|
||||
exec { 'install nodejs':
|
||||
command => 'yum -d 0 -e 0 -y --enablerepo=epel install npm',
|
||||
unless => 'rpm -qa | grep ^npm',
|
||||
require => Class['epel']
|
||||
}
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
# Class: epel
|
||||
#
|
||||
# Configure EPEL repository.
|
||||
#
|
||||
# Parameters:
|
||||
#
|
||||
# Actions:
|
||||
#
|
||||
# Requires:
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
# include epel
|
||||
#
|
||||
class epel {
|
||||
|
||||
yumrepo { 'epel':
|
||||
mirrorlist => "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=${::architecture}",
|
||||
enabled => '0',
|
||||
gpgcheck => '0',
|
||||
descr => "Extra Packages for Enterprise Linux 6 - ${::architecture}"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue