Merge "Add mirror.<region>.openstack.org"
This commit is contained in:
commit
b6c922c8ee
@ -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`
|
||||
|
@ -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"
|
||||
|
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