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:
parent
dc4f086eef
commit
c009700ca4
@ -15,7 +15,7 @@ At a Glance
|
|||||||
* http://logs.openstack.org
|
* http://logs.openstack.org
|
||||||
* http://docs-draft.openstack.org
|
* http://docs-draft.openstack.org
|
||||||
* http://status.openstack.org
|
* http://status.openstack.org
|
||||||
* http://pypi.openstack.org
|
* http://mirror.openstack.org
|
||||||
* http://specs.openstack.org
|
* http://specs.openstack.org
|
||||||
:Puppet:
|
:Puppet:
|
||||||
* :file:`modules/openstack_project/manifests/static.pp`
|
* :file:`modules/openstack_project/manifests/static.pp`
|
||||||
|
@ -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-OS: precise
|
||||||
node /^pypi\..*\.openstack\.org$/ {
|
node /^pypi\..*\.openstack\.org$/ {
|
||||||
$group = "pypi"
|
$group = "pypi"
|
||||||
|
9
modules/openstack_project/manifests/mirror.pp
Normal file
9
modules/openstack_project/manifests/mirror.pp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# == Class: openstack_project::mirror
|
||||||
|
#
|
||||||
|
class openstack_project::mirror (
|
||||||
|
$vhost_name = $::fqdn,
|
||||||
|
) {
|
||||||
|
|
||||||
|
$mirror_root = '/afs/openstack.org/mirror'
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user