From a404b62cdbdb59b09cc312831c06163485408acb Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 4 Mar 2014 15:22:37 +0000 Subject: [PATCH] Add css and js.php to vagrant. You need a Puppet training, guys! --- .../files/var/www/html/icingaweb/.htaccess | 1 + .../files/var/www/html/icingaweb/css.php | 8 ++++++++ .../files/var/www/html/icingaweb/js.php | 8 ++++++++ .vagrant-puppet/manifests/default.pp | 14 ++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 .vagrant-puppet/files/var/www/html/icingaweb/css.php create mode 100644 .vagrant-puppet/files/var/www/html/icingaweb/js.php diff --git a/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess b/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess index c750090e2..6420d1c75 100644 --- a/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess +++ b/.vagrant-puppet/files/var/www/html/icingaweb/.htaccess @@ -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 diff --git a/.vagrant-puppet/files/var/www/html/icingaweb/css.php b/.vagrant-puppet/files/var/www/html/icingaweb/css.php new file mode 100644 index 000000000..08bc86017 --- /dev/null +++ b/.vagrant-puppet/files/var/www/html/icingaweb/css.php @@ -0,0 +1,8 @@ + 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',