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:
Monty Taylor 2014-09-04 09:46:59 -07:00 committed by Jeremy Stanley
parent f2e542afa7
commit 23dff8a2c6
2 changed files with 24 additions and 0 deletions

View File

@ -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' {

View 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,
}
}