-
Notifications
You must be signed in to change notification settings - Fork 29
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
Use candlepin::repo in testing with a version fact #244
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 |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
ensure => installed, | ||
} | ||
|
||
class { 'candlepin::repo': | ||
version => pick(fact('candlepin_version'), 'nightly'), | ||
} | ||
|
||
if $facts['os']['selinux']['enabled'] { | ||
# Workaround for https://github.com/theforeman/puppet-candlepin/issues/188 | ||
package { 'pki-core': | ||
|
@@ -15,15 +19,6 @@ | |
} | ||
} | ||
|
||
# Defaults to staging, for release, use | ||
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 think this was a time when nightly was broken for a long time, so we switched to staging and forgot to change it back. 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. Yes - and this effectively switches it back. |
||
# $baseurl = "https://yum.theforeman.org/katello/nightly/candlepin/el${major}/x86_64/" | ||
$baseurl = "http://koji.katello.org/releases/yum/katello-nightly/candlepin/el${major}/x86_64/" | ||
|
||
yumrepo { 'candlepin': | ||
baseurl => $baseurl, | ||
gpgcheck => 0, | ||
} | ||
|
||
# Needed as a workaround for idempotency | ||
if $facts['os']['selinux']['enabled'] { | ||
package { 'candlepin-selinux': | ||
|
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.
FYI: https://github.com/theforeman/puppet-pulpcore/pull/309/files#diff-b1bbc4d50c1c098ca18224cbc9519ad646dcc5e3dd912edf55610ab5bba3566e is how I want to use this.
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.
That context helps.