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

Problem getting RedHat extras repo on workstations #193

Closed
vrmerlin opened this issue Mar 14, 2018 · 4 comments
Closed

Problem getting RedHat extras repo on workstations #193

vrmerlin opened this issue Mar 14, 2018 · 4 comments
Milestone

Comments

@vrmerlin
Copy link

What you expected to happen?

I've grabbed the master branch with fix #168. However, when I tried it, it still doesn't work on my system.

What happened?

I get the error:

Error: Execution of '/bin/yum -d 0 -e 0 -y --enablerepo=rhel-7-server-extras-rpms install docker-ce' returned 1: Error getting repository data for rhel-7-server-extras-rpms, repository not found

How to reproduce it?

My system is a workstation, not a server. The fix for #168 seems to only work on servers. Try doing a docker installation on a RedHat workstation to reproduce.

Anything else we need to know?

My yum list of repos contains the following:

!rhel-7-workstation-extras-rpms/x86_64 Red Hat Enterprise Linux 7 Workstation - Extras (RPMs) enabled: 34

Versions:

$ puppet --version
5.3.5
$ docker version
(doesn't get installed)
$ facter os
{
  architecture => "x86_64",
  distro => {
    codename => "Maipo",
    description => "Red Hat Enterprise Linux Workstation release 7.4 (Maipo)",
    id => "RedHatEnterpriseWorkstation",
    release => {
      full => "7.4",
      major => "7",
      minor => "4"
    },
    specification => ":core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch"
  },
  family => "RedHat",
  hardware => "x86_64",
  name => "RedHat",
  release => {
    full => "7.4",
    major => "7",
    minor => "4"
  },
  selinux => {
    enabled => false
  }
}
$ puppet module list
/etc/puppetlabs/code/environments/production/modules (no modules installed)
/etc/puppetlabs/code/modules (no modules installed)
/opt/puppetlabs/puppet/modules (no modules installed)

@davejrt
Copy link
Contributor

davejrt commented Mar 15, 2018

@vrmerlin the module does not currently support workstations. You can override repo_opt param in your node definition to change the repo name in this case.

We're happy to review a PR from the community to support it.

@vrmerlin
Copy link
Author

I guess I'm not sure what you mean by how i would override repo_opt in my node definition. Is there an example someplace?

I'll play around with putting a PR together, but I'm not sure yet how to tell the difference between a workstation and a server (e.g. "facter" doesn't contain the word "workstation" anywhere).

@davejrt
Copy link
Contributor

davejrt commented Mar 15, 2018

In the setup portion of the readme it provides an example of how to override the default repo options.

Could you update your initial post with your manifest?

In your case I would suspect that something like this would do the trick

node docker_host {

  class { 'docker':
    repo_opt => 'rhel-7-workstation-extras-rpms',
  }
}

@vrmerlin
Copy link
Author

Close! Here's what worked:

repo_opt => '--enablerepo=rhel-7-workstation-extras-rpms',

Thanks!

@davejrt davejrt closed this as completed Mar 18, 2018
@MWilsonPuppet MWilsonPuppet added this to the V2.0.0 milestone Jul 17, 2018
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