Switch from jeepyb to pypi-mirror
We've got a new mirror building project called pypi-mirror. In addition to the old behavior, it also now creates wheels and uploads them. Use it. Change-Id: Ic63a2e11ba60e1d99809a8a38f7a27072a34b0c2
This commit is contained in:
		@@ -25,8 +25,6 @@ class openstack_project::mirror_slave (
 | 
			
		||||
    python3 => $python3,
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  include jeepyb
 | 
			
		||||
 | 
			
		||||
  file { '/home/jenkins/.ssh/id_rsa':
 | 
			
		||||
    owner   => 'jenkins',
 | 
			
		||||
    group   => 'jenkins',
 | 
			
		||||
@@ -73,4 +71,23 @@ class openstack_project::mirror_slave (
 | 
			
		||||
    require => File['/home/jenkins/pypimirror/etc'],
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  file { '/opt/jeepyb':
 | 
			
		||||
    ensure => absent,
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  vcsrepo { '/opt/pypi-mirror':
 | 
			
		||||
    ensure   => latest,
 | 
			
		||||
    provider => git,
 | 
			
		||||
    revision => 'master',
 | 
			
		||||
    source   => 'https://git.openstack.org/openstack-infra/pypi-mirror',
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  exec { 'install_pypi_mirror' :
 | 
			
		||||
    command     => 'pip install .',
 | 
			
		||||
    cwd         => '/opt/pypi-mirror',
 | 
			
		||||
    path        => '/usr/local/bin:/bin:/usr/bin',
 | 
			
		||||
    refreshonly => true,
 | 
			
		||||
    subscribe   => Vcsrepo['/opt/pypi-mirror'],
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user