Add node definition for static.openstack.org.
Add node definition for static.openstack.org and create first simple implementation of what the static.openstack.org host would look like. Change-Id: I04952154246c4985e7ff44909e892918a1336fba Reviewed-on: https://review.openstack.org/11193 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
6735167be7
commit
fcabaaae2c
@ -96,6 +96,11 @@ node 'puppet-dashboard.openstack.org' {
|
||||
}
|
||||
}
|
||||
|
||||
# A machine to serve static content.
|
||||
node 'static.openstack.org' {
|
||||
include openstack_project::static
|
||||
}
|
||||
|
||||
# A bare machine, but with a jenkins user
|
||||
node /^.*\.template\.openstack\.org$/ {
|
||||
include openstack_project::slave_template
|
||||
|
47
modules/openstack_project/manifests/static.pp
Normal file
47
modules/openstack_project/manifests/static.pp
Normal file
@ -0,0 +1,47 @@
|
||||
class openstack_project::static
|
||||
{
|
||||
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [22, 80, 443]
|
||||
}
|
||||
|
||||
include apache
|
||||
|
||||
apache::vhost { 'tarballs.openstack.org':
|
||||
port => 80,
|
||||
priority => '50',
|
||||
docroot => '/srv/static/tarballs',
|
||||
require => File['/srv/static/tarballs'],
|
||||
}
|
||||
|
||||
apache::vhost { 'ci.openstack.org':
|
||||
port => 80,
|
||||
priority => '50',
|
||||
docroot => '/srv/static/ci',
|
||||
require => File['/srv/static/ci'],
|
||||
}
|
||||
|
||||
apache::vhost { 'logs.openstack.org':
|
||||
port => 80,
|
||||
priority => '50',
|
||||
docroot => '/srv/static/logs',
|
||||
require => File['/srv/static/logs'],
|
||||
}
|
||||
|
||||
file { '/srv/static':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
file { '/srv/static/tarballs':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
file { '/srv/static/ci':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
file { '/srv/static/logs':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user