puppetlabs / puppetlabs-docker

The Puppet Docker repository
Apache License 2.0
91 stars 309 forks source link

How do I install docker via YUM provider, not RPM? from private repositories on centos #498

Closed thatsk closed 2 years ago

thatsk commented 5 years ago

What you expected to happen?

Install docker ce packages via puppet

What happened?

not able to see any error and it can't install docker

How to reproduce it?

profile::yum::extra_repo_hash:
  docker:
    baseurl: "http://test/pulp/repos/docker/"
    descr: "Docker Repo for stable packages "
    enabled: 1
    gpgcheck: 0
    name: docker

'docker::compose': present
'docker::compose::version': 1.19.0
'docker::ip_forward': false
'docker::version': 18.09.1-3.el7
'docker::manage_package': false
'docker::docker_ce_package_name': 'docker-ce'

'docker::labels':
  - stage=development

'docker::registry_auth::registries':
  'test':
    password: test
    username: build

docker::run_instance::instance:
  memcached:
    image: 'test'
    ensure: present
    net: host
    command: '-c 2048'
## Anything else we need to know?

## Versions:
<!-- Please paste in the output of these commands-->

$ puppet --version 4.10.12

$ facter os { architecture => "x86_64", family => "RedHat", hardware => "x86_64", name => "CentOS", release => { full => "7.6.1810", major => "7", minor => "6" }, selinux => { enabled => false } }

thatsk commented 5 years ago

Is anyone can help?

davejrt commented 5 years ago

What version of the module are you using? The package provider on redhat/centos defaults to yum here https://github.com/puppetlabs/puppetlabs-docker/blob/3772c5b5bb1640184e8c4f8ae91c34683ae6ccc6/manifests/install.pp#L57

thatsk commented 5 years ago
 🐋⎈cat Puppetfile  | grep -A4 docker
mod 'puppetlabs-docker', '3.5.0'
davejrt commented 5 years ago

If you run puppet with --debug --verbose what do you see in the logs?

If you run yum list docker-ce on the host is the package available?

thatsk commented 5 years ago

root@node: ~# yum list docker-ce
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
Available Packages
docker-ce.x86_64                                     3:18.09.6-3.el7                                      docker```
thatsk commented 5 years ago

all goes good but its not able to install the package rest of things it will do. instead of installing docker-ce package

github-actions[bot] commented 2 years ago

This issue has been marked as stale because it has been open for a while and has had no recent activity. If this issue is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.