Add css and js.php to vagrant. You need a Puppet training, guys!
This commit is contained in:
parent
af7ca57b41
commit
a404b62cdb
|
@ -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
|
||||
|
|
|
@ -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();
|
|
@ -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();
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue