mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
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
|
RewriteEngine on
|
||||||
RewriteBase /icingaweb
|
RewriteBase /icingaweb
|
||||||
RewriteRule ^css/icinga.css css.php
|
RewriteRule ^css/icinga.css css.php
|
||||||
|
RewriteRule ^js/icinga.min.js js.php
|
||||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
|
8
.vagrant-puppet/files/var/www/html/icingaweb/css.php
Normal file
8
.vagrant-puppet/files/var/www/html/icingaweb/css.php
Normal 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();
|
8
.vagrant-puppet/files/var/www/html/icingaweb/js.php
Normal file
8
.vagrant-puppet/files/var/www/html/icingaweb/js.php
Normal 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();
|
@ -605,6 +605,20 @@ file { '/var/www/html/icingaweb/index.php':
|
|||||||
require => File['/var/www/html/icingaweb']
|
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':
|
file { '/var/www/html/icingaweb/.htaccess':
|
||||||
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess',
|
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess',
|
||||||
owner => 'apache',
|
owner => 'apache',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user