Skip to content

Commit

Permalink
Merge pull request #434 from sensu/feature/new-repos
Browse files Browse the repository at this point in the history
Update package repository URLs
  • Loading branch information
jlambert121 committed Jan 13, 2016
2 parents 553994f + 95cf9eb commit 9bc7f4a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@

# [*repo_key_id*]
# String. The apt GPG key id
# Default: 8911D8FF37778F24B4E726A218609E3D7580C77F
# Default: EE15CFF6AB6E4E290FDAB681A20F259AEB9C94BB
#
# [*repo_key_source*]
# String. URL of the apt GPG key
# Default: http://repos.sensuapp.org/apt/pubkey.gpg
# Default: http://repositories.sensuapp.org/apt/pubkey.gpg
#
# [*client*]
# Boolean. Include the sensu client
Expand Down Expand Up @@ -281,8 +281,8 @@
$enterprise_dashboard_version = 'latest',
$repo = 'main',
$repo_source = undef,
$repo_key_id = '8911D8FF37778F24B4E726A218609E3D7580C77F',
$repo_key_source = 'http://repos.sensuapp.org/apt/pubkey.gpg',
$repo_key_id = 'EE15CFF6AB6E4E290FDAB681A20F259AEB9C94BB',
$repo_key_source = 'http://repositories.sensuapp.org/apt/pubkey.gpg',
$enterprise_repo_key_id = '910442FF8781AFD0995D14B311AB27E8C3FE3269',
$client = true,
$server = false,
Expand Down
2 changes: 1 addition & 1 deletion manifests/repo/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if $sensu::repo_source {
$url = $sensu::repo_source
} else {
$url = 'http://repos.sensuapp.org/apt'
$url = 'http://repositories.sensuapp.org/apt'
}

apt::source { 'sensu':
Expand Down
4 changes: 2 additions & 2 deletions manifests/repo/yum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
$url = $sensu::repo_source
} else {
$url = $sensu::repo ? {
'unstable' => "http://repos.sensuapp.org/yum-unstable/el/\$basearch/",
default => "http://repos.sensuapp.org/yum/el/\$basearch/"
'unstable' => "http://repositories.sensuapp.org/yum-unstable/\$basearch/",
default => "http://repositories.sensuapp.org/yum/\$basearch/"
}
}

Expand Down
14 changes: 7 additions & 7 deletions spec/classes/sensu_package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
context 'default' do
it { should contain_apt__source('sensu').with(
:ensure => 'present',
:location => 'http://repos.sensuapp.org/apt',
:location => 'http://repositories.sensuapp.org/apt',
:release => 'sensu',
:repos => 'main',
:include => { 'src' => false },
:key => { 'id' => '8911D8FF37778F24B4E726A218609E3D7580C77F', 'source' => 'http://repos.sensuapp.org/apt/pubkey.gpg' },
:key => { 'id' => 'EE15CFF6AB6E4E290FDAB681A20F259AEB9C94BB', 'source' => 'http://repositories.sensuapp.org/apt/pubkey.gpg' },
:before => 'Package[sensu]'
) }
end
Expand All @@ -91,7 +91,7 @@
it { should contain_apt__source('sensu').with( :location => 'http://repo.mydomain.com/apt') }

it { should_not contain_apt__key('sensu').with(
:key => { 'id' => '8911D8FF37778F24B4E726A218609E3D7580C77F', 'source' => 'http://repo.mydomain.com/apt/pubkey.gpg' }
:key => { 'id' => 'EE15CFF6AB6E4E290FDAB681A20F259AEB9C94BB', 'source' => 'http://repo.mydomain.com/apt/pubkey.gpg' }
) }
end

Expand All @@ -108,8 +108,8 @@
it { should contain_apt__source('sensu').with_ensure('absent') }

it { should_not contain_apt__key('sensu').with(
:key => '8911D8FF37778F24B4E726A218609E3D7580C77F',
:key_source => 'http://repos.sensuapp.org/apt/pubkey.gpg'
:key => 'EE15CFF6AB6E4E290FDAB681A20F259AEB9C94BB',
:key_source => 'http://repositories.sensuapp.org/apt/pubkey.gpg'
) }

it { should contain_package('sensu').with( :require => nil ) }
Expand All @@ -127,15 +127,15 @@
context 'default' do
it { should contain_yumrepo('sensu').with(
:enabled => 1,
:baseurl => 'http://repos.sensuapp.org/yum/el/$basearch/',
:baseurl => 'http://repositories.sensuapp.org/yum/$basearch/',
:gpgcheck => 0,
:before => 'Package[sensu]'
) }
end

context 'unstable repo' do
let(:params) { { :repo => 'unstable' } }
it { should contain_yumrepo('sensu').with(:baseurl => 'http://repos.sensuapp.org/yum-unstable/el/$basearch/' )}
it { should contain_yumrepo('sensu').with(:baseurl => 'http://repositories.sensuapp.org/yum-unstable/$basearch/' )}
end

context 'override repo url' do
Expand Down

0 comments on commit 9bc7f4a

Please sign in to comment.