Add css and js.php to vagrant. You need a Puppet training, guys!

This commit is contained in:
Thomas Gelf 2014-03-04 15:22:37 +00:00
parent af7ca57b41
commit a404b62cdb
4 changed files with 31 additions and 0 deletions

View File

@ -1,6 +1,7 @@
RewriteEngine on
RewriteBase /icingaweb
RewriteRule ^css/icinga.css css.php
RewriteRule ^js/icinga.min.js js.php
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

View File

@ -0,0 +1,8 @@
<?php
use Icinga\Application\EmbeddedWeb;
use Icinga\Web\StyleSheet;
require_once '/vagrant/library/Icinga/Application/EmbeddedWeb.php';
EmbeddedWeb::start('/etc/icingaweb');
Stylesheet::send();

View File

@ -0,0 +1,8 @@
<?php
use Icinga\Application\EmbeddedWeb;
use Icinga\Web\JavaScript;
require_once '/vagrant/library/Icinga/Application/EmbeddedWeb.php';
$app = EmbeddedWeb::start('/etc/icingaweb');
JavaScript::sendMinified();

View File

@ -605,6 +605,20 @@ file { '/var/www/html/icingaweb/index.php':
require => File['/var/www/html/icingaweb']
}
file { '/var/www/html/icingaweb/js.php':
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icingaweb/js.php',
owner => 'apache',
group => 'apache',
require => File['/var/www/html/icingaweb']
}
file { '/var/www/html/icingaweb/css.php':
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icingaweb/css.php',
owner => 'apache',
group => 'apache',
require => File['/var/www/html/icingaweb']
}
file { '/var/www/html/icingaweb/.htaccess':
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess',
owner => 'apache',