Get rid of release

This commit is contained in:
Morgan Haskel 2015-02-15 10:54:33 -08:00
parent 8cc7d40dd9
commit 0809774006
3 changed files with 0 additions and 38 deletions

View file

@ -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'),
}
}

View file

@ -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

View file

@ -1 +0,0 @@
APT::Default-Release "<%= @release_id %>";