diff --git a/manifests/params.pp b/manifests/params.pp index c2e0bd45..22eedba5 100755 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -197,7 +197,7 @@ # repo_opt to specify install_options for docker package if $::operatingsystem == 'RedHat' { - $repo_opt = '--enablerepo=rhel7-extras' + $repo_opt = '--enablerepo=rhel-7-server-extras-rpms' } elsif $::operatingsystem == 'CentOS' { $repo_opt = '--enablerepo=extras' } else { diff --git a/spec/classes/docker_spec.rb b/spec/classes/docker_spec.rb index 75c43034..bb62bab1 100755 --- a/spec/classes/docker_spec.rb +++ b/spec/classes/docker_spec.rb @@ -382,8 +382,9 @@ 'ensure' => 'present', 'source' => 'https://get.docker.com/rpm/1.7.0/centos-7/RPMS/x86_64/docker-engine-1.7.0-1.el7.x86_64.rpm', 'name' => 'docker-engine', - 'install_options' => /--enablerepo/ + 'install_options' => '--enablerepo=rhel-7-server-extras-rpms' ) + end end