forked from puppetlabs/puppetlabs-puppet_agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for Debian 6 and 7, and Ubuntu 12.04, 14.04, and 14.10.
- Loading branch information
Michael Smith
committed
Jun 5, 2015
1 parent
51087f0
commit 503bb2f
Showing
10 changed files
with
222 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class puppet_agent::osfamily::debian { | ||
include apt | ||
|
||
apt::source { 'pc1_repo': | ||
location => 'http://apt.puppetlabs.com', | ||
repos => 'PC1', | ||
key => { | ||
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', | ||
'server' => 'pgp.mit.edu', | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'spec_helper' | ||
|
||
describe 'puppet_agent::osfamily::debian' do | ||
let(:facts) {{ | ||
:lsbdistid => 'Debian', | ||
:osfamily => 'Debian', | ||
:lsbdistcodename => 'wheezy', | ||
:operatingsystem => 'Debian', | ||
:architecture => 'foo', | ||
}} | ||
|
||
it { is_expected.to contain_class('apt') } | ||
|
||
it { is_expected.to contain_apt__source('pc1_repo').with({ | ||
'location' => 'http://apt.puppetlabs.com', | ||
'repos' => 'PC1', | ||
'key' => { | ||
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', | ||
'server' => 'pgp.mit.edu', | ||
}, | ||
}) } | ||
end |
Oops, something went wrong.