Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

ubellavance
Copy link

@ubellavance ubellavance commented Apr 23, 2018

For #66

@kallies
Copy link
Contributor

kallies commented Apr 24, 2018

I'd appreciate a datatype String and @param description.

@ubellavance
Copy link
Author

Sorry, I'm unfortunately stuck in Puppet 3 world, so I wouldn't know how to add those 2 things. I guess that this would be the first location to see datatypes because it's currently compatible with 3.8.

@kallies
Copy link
Contributor

kallies commented Apr 24, 2018

Sting would be wrong anyway, just add the @param repo_scl [Boolean]

@@ -169,4 +170,10 @@
}
}

if $repo_scl {
::rhsm::repo { "rhel-server-rhscl-${::operatingsystemmajrelease}-rpms":
Copy link
Contributor

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.

Copy link
Author

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?

Copy link
Contributor

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:

class profiles::rhsm {
  include ::rhsm
  rhsm::repo { "rhel-server-rhscl-${::operatingsystemmajrelease}-rpms"
}

if you need to pass config by hiera data a new $repos rhsm class parameter might be good.

class rhsm(
  ...
  Optional[Array[String]] $repos = undef,
  ...
) {
  ...
  repos.each do |String repo| {
    ::rhsm::repo { $repo: }
  }
}

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.

@@ -169,4 +170,10 @@
}
}

if $repo_scl {
::rhsm::repo { "rhel-server-rhscl-${::operatingsystemmajrelease}-rpms":
require => Exec['RHSM-register'],
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Author

Choose a reason for hiding this comment

The 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.

@kallies
Copy link
Contributor

kallies commented Oct 4, 2018

Obsolted by #78

@kallies
Copy link
Contributor

kallies commented Apr 9, 2019

@ubellavance would you mind closing this PR/issue, too?

@vox-pupuli-tasks
Copy link

Dear @ubellavance, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

2 similar comments
@vox-pupuli-tasks
Copy link

Dear @ubellavance, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @ubellavance, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @ubellavance, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @ubellavance, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@bastelfreak
Copy link
Member

Hi,
I'm going to close this PR due to inactivity. Please reopen and rebase it if you're still interested in it.

@bastelfreak bastelfreak closed this Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants