-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Added SCL repo support #67
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 |
---|---|---|
|
@@ -73,7 +73,8 @@ | |
$full_refresh_on_yum = 0, | ||
$package_ensure = 'latest', | ||
$repo_extras = false, | ||
$repo_optional = false | ||
$repo_optional = false, | ||
$repo_scl = false, | ||
) { | ||
|
||
if ($rh_user == undef and $rh_password == undef) and ($org == undef and $activationkey == undef) { | ||
|
@@ -169,4 +170,10 @@ | |
} | ||
} | ||
|
||
if $repo_scl { | ||
::rhsm::repo { "rhel-server-rhscl-${::operatingsystemmajrelease}-rpms": | ||
require => Exec['RHSM-register'], | ||
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. maybe the defined type rhsm::repo should take care about ordering of the resource itself instead of having each caller adding manual dependencies? 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. It makes sense, but I would have no idea of how to do it, unfortunately. |
||
} | ||
} | ||
|
||
} |
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.
mirrored/cloned channels provided by redhat satellite or other tools might not use this repo name.
what if redhat decides to change channel names as they did for example with oracle jre/jdk channels?
I think the boolean param thing is not a good way to provide options for these additional channels.
the rhsm module should not try to guess repo names.
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.
I agree, but is there a way to get the same result, using a manifest or hiera, without having to change the module?
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.
@ubellavance I don't know your puppet setup. if you go with the roles/profiles pattern:
if you need to pass config by hiera data a new
$repos
rhsm class parameter might be good.as per #66 (comment) - the code depends on if puppet3 server needs to be supported or not (this code is not puppet3 server compatible)
if the
rhsm::repo
supports params, then the$repos
param maybe should not be an array but an hash with support for the params of rhsm::repo.