Add mirror.<region>.openstack.org

This patch creates a new manifest for unified infra mirrors,
which will act as read-only AFS nodes that host our mirror
data. These mirrors will, once validated and provisioned, replace
the existing pypi mirrors in infra under a new, more generic,
hostname.

This patch is only intended to create the AFS read-only slave.
Apache hosting will be added in subsequent patches.

Change-Id: I9a2bf596cf47bffad5d6a5fd0da3c571fa266013
This commit is contained in:
James E. Blair 2016-01-20 15:11:24 -08:00 committed by Michael Krotscheck
parent dc4f086eef
commit c009700ca4
3 changed files with 28 additions and 2 deletions

View File

@ -15,7 +15,7 @@ At a Glance
* http://logs.openstack.org
* http://docs-draft.openstack.org
* http://status.openstack.org
* http://pypi.openstack.org
* http://mirror.openstack.org
* http://specs.openstack.org
:Puppet:
* :file:`modules/openstack_project/manifests/static.pp`

View File

@ -535,7 +535,24 @@ node 'mirror-update.openstack.org' {
}
}
# Machines in each region to run PyPI mirrors.
# Machines in each region to serve AFS mirrors.
# Node-OS: trusty
node /^mirror\..*\.openstack\.org$/ {
$group = "mirror"
class { 'openstack_project::server':
iptables_public_tcp_ports => [22, 80],
sysadmins => hiera('sysadmins', []),
afs => true,
}
class { 'openstack_project::mirror':
vhost_name => $::fqdn,
require => Class['Openstack_project::Server'],
}
}
# Legacy machines in each region to run pypi package mirrors.
# Node-OS: precise
node /^pypi\..*\.openstack\.org$/ {
$group = "pypi"

View File

@ -0,0 +1,9 @@
# == Class: openstack_project::mirror
#
class openstack_project::mirror (
$vhost_name = $::fqdn,
) {
$mirror_root = '/afs/openstack.org/mirror'
}