Get rid of release
This commit is contained in:
parent
8cc7d40dd9
commit
0809774006
3 changed files with 0 additions and 38 deletions
|
@ -1,14 +0,0 @@
|
|||
# release.pp
|
||||
|
||||
class apt::release (
|
||||
$release_id
|
||||
) {
|
||||
$root = $apt::params::root
|
||||
|
||||
file { "${root}/apt.conf.d/01release":
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => '0644',
|
||||
content => template('apt/_header.erb', 'apt/release.erb'),
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
require 'spec_helper'
|
||||
describe 'apt::release', :type => :class do
|
||||
let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
|
||||
let (:title) { 'my_package' }
|
||||
|
||||
let :param_set do
|
||||
{ :release_id => 'precise' }
|
||||
end
|
||||
|
||||
let (:params) { param_set }
|
||||
|
||||
it { should contain_class("apt::params") }
|
||||
|
||||
it {
|
||||
should contain_file("/etc/apt/apt.conf.d/01release").with({
|
||||
"mode" => "0644",
|
||||
"owner" => "root",
|
||||
"group" => "root",
|
||||
"content" => /APT::Default-Release "#{param_set[:release_id]}";/
|
||||
})
|
||||
}
|
||||
end
|
||||
|
|
@ -1 +0,0 @@
|
|||
APT::Default-Release "<%= @release_id %>";
|
Loading…
Reference in a new issue