3fc347a536
And invoke it correctly on static.o.o. Change-Id: Ic4699828500f4acf4af60248ba87200c0e703fc6 Reviewed-on: https://review.openstack.org/11496 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
51 lines
968 B
Puppet
51 lines
968 B
Puppet
class openstack_project::static() {
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [22, 80, 443]
|
|
}
|
|
|
|
class { 'jenkins::jenkinsuser':
|
|
ssh_key => $openstack_project::jenkins_ssh_key
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
}
|