Add entry for new PyPI mirrors
We want to actually run PyPI mirrors on a per-region basis. To do that, we need to configure machines to run such things. Change-Id: I96955d78783c0db31ace52146834f4e6b8e1fde4
This commit is contained in:
parent
f2e542afa7
commit
23dff8a2c6
@ -384,6 +384,14 @@ node /^git\d+\.openstack\.org$/ {
|
||||
}
|
||||
}
|
||||
|
||||
# Machines in each region to run PyPI mirrors.
|
||||
# Node-OS: precise
|
||||
node /^pypi\..*\.openstack\.org$/ {
|
||||
class { 'openstack_project::pypi':
|
||||
sysadmins => hiera('sysadmins', []),
|
||||
}
|
||||
}
|
||||
|
||||
# A machine to run ODSREG in preparation for summits.
|
||||
# Node-OS: precise
|
||||
node 'summit.openstack.org' {
|
||||
|
16
modules/openstack_project/manifests/pypi.pp
Normal file
16
modules/openstack_project/manifests/pypi.pp
Normal file
@ -0,0 +1,16 @@
|
||||
# == Class: openstack_project::pypi
|
||||
#
|
||||
class openstack_project::pypi (
|
||||
$vhost_name = $::fqdn,
|
||||
$sysadmins = [],
|
||||
) {
|
||||
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [22, 80],
|
||||
sysadmins => $sysadmins,
|
||||
}
|
||||
|
||||
class { 'openstack_project::pypi_mirror':
|
||||
vhost_name => $vhost_name,
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user