Install the default zuul status page.

On a zuul server, install the default status page as shipped by
Zuul (and its dependencies).

Remove openstack-specific redirects (hopefully it's been long enough
now).

Change-Id: Idfa2d9a4aa261182d166a36193fe74e1d922bcd9
Reviewed-on: https://review.openstack.org/29262
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2013-05-15 09:57:52 -07:00 committed by Jenkins
parent 999707957c
commit fff4eb63d2
3 changed files with 43 additions and 25 deletions

View File

@ -72,24 +72,4 @@ class openstack_project::zuul_prod(
source => 'puppet:///modules/openstack_project/zuul/scoreboard.html',
require => File['/var/lib/recheckwatch'],
}
file { '/var/lib/zuul/www':
ensure => absent,
recurse => true,
force => true,
}
package { 'libjs-jquery':
ensure => absent,
}
file { '/opt/jquery-visibility':
ensure => absent,
force => true,
}
file { '/opt/jquery-graphite':
ensure => absent,
force => true,
}
}

View File

@ -131,8 +131,6 @@ class zuul (
file { '/var/lib/zuul':
ensure => directory,
owner => 'zuul',
require => User['zuul'],
}
file { '/var/lib/zuul/git':
@ -157,6 +155,48 @@ class zuul (
content => $zuul_ssh_private_key,
}
file { '/var/lib/zuul/www':
ensure => directory,
require => File['/var/lib/zuul'],
}
package { 'libjs-jquery':
ensure => present,
}
file { '/var/lib/zuul/www/jquery.min.js':
ensure => link,
target => '/usr/share/javascript/jquery/jquery.min.js',
require => [File['/var/lib/zuul/www'],
Package['libjs-jquery']],
}
vcsrepo { '/opt/jquery-visibility':
ensure => latest,
provider => git,
revision => 'master',
source => 'https://github.com/mathiasbynens/jquery-visibility.git',
}
file { '/var/lib/zuul/www/jquery-visibility.min.js':
ensure => link,
target => '/opt/jquery-visibility/jquery-visibility.min.js',
require => [File['/var/lib/zuul/www'],
Vcsrepo['/opt/jquery-visibility']],
}
file { '/var/lib/zuul/www/index.html':
ensure => link,
target => '/opt/zuul/etc/status/public_html/index.html',
require => File['/var/lib/zuul/www'],
}
file { '/var/lib/zuul/www/app.js':
ensure => link,
target => '/opt/zuul/etc/status/public_html/app.js',
require => File['/var/lib/zuul/www'],
}
file { '/etc/init.d/zuul':
ensure => present,
owner => 'root',

View File

@ -1,6 +1,6 @@
<VirtualHost <%= scope.lookupvar("::zuul::vhost_name") %>:80>
ServerAdmin <%= scope.lookupvar("::zuul::serveradmin") %>
DocumentRoot /var/www
DocumentRoot /var/lib/zuul/www
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-error.log
@ -9,8 +9,6 @@
CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-access.log combined
RewriteEngine on
RewriteRule ^/$ http://status.openstack.org/zuul/ [R]
RewriteRule ^/zuul/status$ http://status.openstack.org/zuul/ [R]
RewriteRule ^/status.json$ http://127.0.0.1:8001/status.json [P]
Alias /rechecks.html /var/www/recheckwatch/rechecks.html