diff --git a/modules/elastic_recheck/manifests/init.pp b/modules/elastic_recheck/manifests/init.pp
index 5c8908a8b3..2609216a56 100644
--- a/modules/elastic_recheck/manifests/init.pp
+++ b/modules/elastic_recheck/manifests/init.pp
@@ -62,14 +62,6 @@ class elastic_recheck (
require => User['recheck'],
}
- file { '/var/lib/elastic-recheck':
- ensure => directory,
- mode => '0755',
- owner => 'recheck',
- group => 'recheck',
- require => User['recheck'],
- }
-
file { '/var/log/elastic-recheck':
ensure => directory,
mode => '0755',
diff --git a/modules/openstack_project/manifests/static.pp b/modules/openstack_project/manifests/static.pp
index f97e077bf0..c4d766b45a 100644
--- a/modules/openstack_project/manifests/static.pp
+++ b/modules/openstack_project/manifests/static.pp
@@ -8,7 +8,7 @@ class openstack_project::static (
$releasestatus_prvkey_contents = '',
$releasestatus_pubkey_contents = '',
$releasestatus_gerrit_ssh_key = '',
- $er_state_dir = '/var/lib/elastic-recheck',
+ $er_state_dir = '/srv/static/status/elastic-recheck',
) {
class { 'openstack_project::server':
@@ -343,6 +343,25 @@ class openstack_project::static (
require => Class['pip'],
}
+ file { '/srv/static/status/elastic-recheck':
+ ensure => directory,
+ owner => 'recheck',
+ group => 'recheck',
+ require => User['recheck'],
+ }
+
+ file { '/srv/static/status/elastic-recheck/index.html':
+ ensure => present,
+ source => 'puppet:///modules/openstack_project/elastic-recheck/elastic-recheck.html',
+ require => File['/srv/static/status/elastic-recheck'],
+ }
+
+ file { '/srv/static/status/elastic-recheck/elastic-recheck.js':
+ ensure => present,
+ source => 'puppet:///modules/openstack_project/elastic-recheck/elastic-recheck.js',
+ require => File['/srv/static/status/elastic-recheck'],
+ }
+
cron { 'elastic-recheck':
user => 'recheck',
minute => '*/15',
diff --git a/modules/openstack_project/templates/status.vhost.erb b/modules/openstack_project/templates/status.vhost.erb
index edfae6e73b..96d434e83c 100644
--- a/modules/openstack_project/templates/status.vhost.erb
+++ b/modules/openstack_project/templates/status.vhost.erb
@@ -38,22 +38,6 @@ NameVirtualHost <%= vhost_name %>:<%= port %>
allow from all
- # Sample elastic-recheck config file, adjust prefixes
- # per your local configuration
- Alias /elastic-recheck /usr/local/share/elastic-recheck
-
- Options FollowSymlinks
- AllowOverride None
- Require all granted
-
-
- Alias /elastic-recheck/data /var/lib/elastic-recheck
-
- Options FollowSymlinks
- AllowOverride None
- Require all granted
-
-
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= name %>_access.log combined