Add Mockery when provisioning vagrant

resolves #5623
This commit is contained in:
Johannes Meyer 2014-04-15 10:07:48 +02:00
parent 8e4b47d6e1
commit f209393711
2 changed files with 16 additions and 3 deletions

View File

@ -712,3 +712,7 @@ file { '/etc/icingaweb/dashboard/dashboard.ini':
owner => 'apache',
group => 'apache',
}
pear::package { 'deepend/Mockery':
channel => 'pear.survivethedeepend.com'
}

View File

@ -28,14 +28,23 @@ define pear::package(
$require_ = Class['pear']
}
if $channel {
exec { "pear discover ${channel}":
command => "sudo pear channel-discover ${channel}",
unless => "pear channel-info ${channel}",
require => $require_,
before => Exec["pear install ${name}"]
}
}
exec { "pear install ${name}":
command => "pear install --alldeps ${channel}",
creates => "/usr/bin/${name}",
command => "pear install --alldeps ${name}",
unless => "pear list ${name}",
require => $require_
}
exec { "pear upgrade ${name}":
command => "pear upgrade ${channel}",
command => "pear upgrade ${name}",
require => Exec["pear install ${name}"]
}
}