mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 02:45:01 +01:00
Allow customising the base URL of the Yum repository
Some people might have private mirrors of the repository and would rather to install the software from there.
This commit is contained in:
parent
14a3988eb8
commit
4a0d31fbf0
2 changed files with 21 additions and 2 deletions
|
@ -9,7 +9,24 @@ describe 'hashi_stack::repo' do
|
|||
when 'Debian'
|
||||
it { is_expected.to contain_apt__source('HashiCorp') }
|
||||
when 'RedHat'
|
||||
it { is_expected.to contain_yumrepo('HashiCorp') }
|
||||
it {
|
||||
is_expected.to contain_yumrepo('HashiCorp').with(
|
||||
baseurl: 'https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable',
|
||||
)
|
||||
}
|
||||
context "with custom Yum base url" do
|
||||
let(:params) do
|
||||
{
|
||||
rpm_base: 'https://somewhere.else'
|
||||
}
|
||||
end
|
||||
|
||||
it {
|
||||
is_expected.to contain_yumrepo('HashiCorp').with(
|
||||
baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable',
|
||||
)
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue