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

Each entry in /etc/rhsm/rhsm.conf should be a configurable param #11

Closed
bbriggs opened this issue Jul 22, 2016 · 4 comments
Closed

Each entry in /etc/rhsm/rhsm.conf should be a configurable param #11

bbriggs opened this issue Jul 22, 2016 · 4 comments

Comments

@bbriggs
Copy link
Contributor

bbriggs commented Jul 22, 2016

No description provided.

@tux-o-matic
Copy link
Contributor

Some of those settings (like cert path) might be hardcoded in RedHat/YUM so I'm not sure there is value in making everything configurable in it.
I can see a potential for things like check intervals.

@kallies
Copy link
Contributor

kallies commented Sep 12, 2017

@bbriggs what usecase do you have in mind? Depending on this I see (at least) four options

  • Using puppetlabs-inifile and use a hash to add configuration parameters (additional dependency)
  • Update the template to support more/all parameters (see subscription-manager config --help)
  • Use subscription-manager config as a provider instead of the static rhsm.conf (may be overkill though)
  • Use a hash for each section (rhsm, server, ...)

@bbriggs
Copy link
Contributor Author

bbriggs commented Sep 13, 2017

You know, I opened this over a year and a half ago so I don't really remember exactly anymore. I do remember having to fight with RHSM and add an extra tweak to the file with an additional manifest to make it work like I needed it, but that feels like it was in another life now ;)

@kallies
Copy link
Contributor

kallies commented Sep 13, 2017

I just compared an RHSM and an Satellite 6 registered host. The main differences I see there are

[rhsm]
baseurl = https://SATELLITESERVER/pulp/repos

full_refresh_on_yum = 1
repo_ca_cert = %(ca_cert_dir)skatello-server-ca.pem

[server]
hostname = SATELLITESERVER
prefix = /rhsm

Most of it is set by katello-ca-consumer-latest.noarch.rpm. This RPM contains a script with the Katallo certificates, parameters for rhsm.conf and the config-filename:

  • KATELLO_SERVER (hostname)
  • KATELLO_SERVER_CA_CERT (file part of repo_ca_cert)
  • KATELLO_DEFAULT_CA_CERT (file with certificate put to ca_cert_dir)
  • KATELLO_CERT_DIR (ca_cert_dir)
  • PORT (port)
  • PREFIX (prefix)
  • CFG (Config-Filename, /etc/rhsm/rhsm.conf)
  • CA_TRUST_ANCHORS (anchors folder for update-ca-trust, /etc/pki/ca-trust/source/anchors)
  • BASEURL (pulp repositories, different for atomic machines: .../pulp/ostree/web/, default ../pulp/repos)

kallies added a commit to kallies/puppet-rhsm that referenced this issue Sep 14, 2017
Configurable parameters are needed when using Red Hat Satellite 6 or SAM, voxpupuli#11
kallies added a commit to kallies/puppet-rhsm that referenced this issue Sep 15, 2017
kallies added a commit to kallies/puppet-rhsm that referenced this issue Sep 20, 2017
Configurable parameters are needed when using Red Hat Satellite 6 or SAM, voxpupuli#11
kallies pushed a commit to kallies/puppet-rhsm that referenced this issue Sep 22, 2017
Update rhsm.conf template (5.15.1) and add configurable params

Add parameter for adding a ca_cert file as described in voxpupuli#11
cegeka-jenkins pushed a commit to cegeka/puppet-rhsm that referenced this issue Dec 11, 2017
Configurable parameters are needed when using Red Hat Satellite 6 or SAM, voxpupuli#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants