Remove circular pip dependency in pypi mirror.
Instead, create a dependency in the script that requires pip so that it's clear why pip is included. Change-Id: I063e622836d6a0c62cc77d8527bef3cf93657648 Reviewed-on: https://review.openstack.org/15044 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
512a3303a8
commit
186ee20ab3
@ -16,12 +16,6 @@ class pypimirror(
|
|||||||
ensure => 'present'
|
ensure => 'present'
|
||||||
}
|
}
|
||||||
|
|
||||||
package { 'pip':
|
|
||||||
ensure => present,
|
|
||||||
provider => 'pip',
|
|
||||||
require => Class[pip]
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/usr/local/mirror_scripts':
|
file { '/usr/local/mirror_scripts':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
@ -63,7 +57,8 @@ class pypimirror(
|
|||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
content => template('pypimirror/run-mirror.sh.erb'),
|
content => template('pypimirror/run-mirror.sh.erb'),
|
||||||
require => File['/usr/local/mirror_scripts'],
|
require => [File['/usr/local/mirror_scripts'],
|
||||||
|
Class[pip]],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/usr/local/mirror_scripts/run_mirror.py':
|
file { '/usr/local/mirror_scripts/run_mirror.py':
|
||||||
|
Loading…
Reference in New Issue
Block a user