parent
8e4b47d6e1
commit
f209393711
|
@ -712,3 +712,7 @@ file { '/etc/icingaweb/dashboard/dashboard.ini':
|
|||
owner => 'apache',
|
||||
group => 'apache',
|
||||
}
|
||||
|
||||
pear::package { 'deepend/Mockery':
|
||||
channel => 'pear.survivethedeepend.com'
|
||||
}
|
||||
|
|
|
@ -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}"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue