get rid of builddep
This commit is contained in:
parent
6dc52c169e
commit
90cc951753
4 changed files with 4 additions and 38 deletions
|
@ -1,2 +1,3 @@
|
|||
class { 'apt': }
|
||||
apt::builddep{ 'glusterfs-server': }
|
||||
package{ 'glusterfs-server':
|
||||
install_options => 'build-dep',
|
||||
}
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
# builddep.pp
|
||||
|
||||
define apt::builddep() {
|
||||
include apt::update
|
||||
|
||||
exec { "apt-builddep-${name}":
|
||||
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
|
||||
logoutput => 'on_failure',
|
||||
require => Exec['apt_update'],
|
||||
}
|
||||
|
||||
# Need anchor to provide containment for dependencies.
|
||||
anchor { "apt::builddep::${name}":
|
||||
require => Class['apt::update'],
|
||||
}
|
||||
}
|
|
@ -35,6 +35,6 @@
|
|||
}
|
||||
],
|
||||
"dependencies": [
|
||||
{"name":"puppetlabs/stdlib","version_requirement":">= 2.2.1"}
|
||||
{"name":"puppetlabs/stdlib","version_requirement":">= 4.5.0"}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
require 'spec_helper'
|
||||
describe 'apt::builddep', :type => :define do
|
||||
|
||||
let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
|
||||
let(:title) { 'my_package' }
|
||||
|
||||
describe "defaults" do
|
||||
it { should contain_exec("apt-builddep-my_package").that_requires('Exec[apt_update]').with({
|
||||
'command' => "/usr/bin/apt-get -y --force-yes build-dep my_package",
|
||||
'logoutput' => 'on_failure'
|
||||
})
|
||||
}
|
||||
it { should contain_anchor("apt::builddep::my_package").with({
|
||||
'require' => 'Class[Apt::Update]',
|
||||
})
|
||||
}
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in a new issue