-
Notifications
You must be signed in to change notification settings - Fork 15
Customize the yum repository #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,10 @@ | |
# [*rpm_repo*] | ||
# OpenDaylight CentOS CBS repo to install RPM from (opendaylight-4-testing, | ||
# opendaylight-40-release, ...). | ||
# [*baseurl*] | ||
# The Yum repository URL that holds the OpenDaylight RPM | ||
# [*rpm_repo_gpgcheck*] | ||
# Enable or disable GPG check for the RPM repository | ||
# [*deb_repo*] | ||
# OpenDaylight Launchpad PPA repo to install .deb from (ppa:odl-team/boron, | ||
# ppa:odl-team/carbon, ...). | ||
|
@@ -44,6 +48,8 @@ | |
$odl_rest_port = $::opendaylight::params::odl_rest_port, | ||
$odl_bind_ip = $::opendaylight::params::odl_bind_ip, | ||
$rpm_repo = $::opendaylight::params::rpm_repo, | ||
$baseurl = "http://cbs.centos.org/repos/nfv7-${rpm_repo}/\$basearch/os/", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this will work. rpm_repo is always reading the one inherited from params because the rpm_repo you are overriding in this class hasn't been parsed yet. So it is never using the value you pass to rpm_repo. One option is to just make baseurl a separate param that is inherited, like this: params.pp: Then the user is responsible to override baseurl as well as rpm_repo if they want to change how the repo is created. |
||
$rpm_repo_gpgcheck = $::opendaylight::params::rpm_repo_gpgcheck, | ||
$deb_repo = $::opendaylight::params::deb_repo, | ||
$log_levels = $::opendaylight::params::log_levels, | ||
$enable_ha = $::opendaylight::params::enable_ha, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For" should not be capitalized