Skip to content

Commit

Permalink
Merge pull request #150 from syseleven/fix_repo_url_and_key
Browse files Browse the repository at this point in the history
fixes repo url and key
  • Loading branch information
bastelfreak committed Jan 18, 2019
2 parents 92965e1 + 890148e commit 313ffb6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Expand Up @@ -74,10 +74,9 @@ with:
This will run the tests on an Ubuntu 12.04 virtual machine. You can also
run the integration tests against Centos 6.5 with.

RS_SET=centos-64-x64 bundle exec rake acceptances
RS_SET=centos-64-x64 bundle exec rake acceptance

If you don't want to have to recreate the virtual machine every time you
can use `BEAKER_DESTROY=no` and `BEAKER_PROVISION=no`. On the first run you will
at least need `BEAKER_PROVISION` set to yes (the default). The Vagrantfile
for the created virtual machines will be in `.vagrant/beaker_vagrant_fies`.

12 changes: 6 additions & 6 deletions manifests/install.pp
Expand Up @@ -74,12 +74,12 @@
class { '::apt': }
}
apt::source { 'grafana':
location => "https://packagecloud.io/grafana/${::grafana::repo_name}/debian",
release => 'stretch',
location => 'https://packages.grafana.com/oss/deb',
release => $grafana::repo_name,
repos => 'main',
key => {
'id' => '418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB',
'source' => 'https://packagecloud.io/gpg.key',
'id' => '4E40DDF6D76E284A4A6780E48C8C34C524098CB6',
'source' => 'https://packages.grafana.com/gpg.key',
},
before => Package[$::grafana::package_name],
}
Expand All @@ -99,9 +99,9 @@
if ( $::grafana::manage_package_repo ){
yumrepo { 'grafana':
descr => 'grafana repo',
baseurl => "https://packagecloud.io/grafana/${::grafana::repo_name}/el/${::operatingsystemmajrelease}/\$basearch",
baseurl => 'https://packages.grafana.com/oss/rpm',
gpgcheck => 1,
gpgkey => 'https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana',
gpgkey => 'https://packages.grafana.com/gpg.key',
enabled => 1,
before => Package[$::grafana::package_name],
}
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/grafana_spec.rb
Expand Up @@ -105,7 +105,7 @@
when 'Debian'
describe 'install apt repo dependencies first' do
it { is_expected.to contain_class('apt') }
it { is_expected.to contain_apt__source('grafana').with(release: 'stretch', repos: 'main', location: 'https://packagecloud.io/grafana/stable/debian') }
it { is_expected.to contain_apt__source('grafana').with(release: 'stable', repos: 'main', location: 'https://packages.grafana.com/oss/deb') }
it { is_expected.to contain_apt__source('grafana').that_comes_before('Package[grafana]') }
end

Expand All @@ -118,7 +118,7 @@
end
when 'RedHat'
describe 'yum repo dependencies first' do
it { is_expected.to contain_yumrepo('grafana').with(baseurl: 'https://packagecloud.io/grafana/stable/el/' + facts[:operatingsystemmajrelease] + '/$basearch', gpgkey: 'https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana', enabled: 1) }
it { is_expected.to contain_yumrepo('grafana').with(baseurl: 'https://packages.grafana.com/oss/rpm', gpgkey: 'https://packages.grafana.com/gpg.key', enabled: 1) }
it { is_expected.to contain_yumrepo('grafana').that_comes_before('Package[grafana]') }
end

Expand Down

0 comments on commit 313ffb6

Please sign in to comment.