Puppet: Use /vagrant directory to deliver web files

Apache uses now /vagrant/public instead of /var/www/html
symlinks.

fixes #6421
This commit is contained in:
Marius Hein 2014-06-06 10:48:22 +02:00
parent e01629fe0b
commit 58b509b8ee
2 changed files with 3 additions and 48 deletions

View File

@ -1,4 +1,6 @@
<Directory "/var/www/html/icingaweb">
Alias /icingaweb /vagrant/public
<Directory "/vagrant/public/">
Options FollowSymLinks
AllowOverride None
Order allow,deny

View File

@ -716,54 +716,7 @@ exec { 'populate-icinga_web-mysql-db':
require => [ Exec['create-mysql-icinga_web-db'], Cmmi['icinga-web'] ]
}
#
# Development environment (Feature #5554)
#
file { '/var/www/html/icingaweb':
ensure => 'directory',
owner => 'apache',
group => 'apache'
}
file { '/var/www/html/icingaweb/css':
ensure => 'link',
target => '/vagrant/public/css',
owner => 'apache',
group => 'apache',
}
file { '/var/www/html/icingaweb/svg':
ensure => 'link',
target => '/vagrant/public/svg',
owner => 'apache',
group => 'apache',
}
file { '/var/www/html/icingaweb/img':
ensure => 'link',
target => '/vagrant/public/img',
owner => 'apache',
group => 'apache',
}
file { '/var/www/html/icingaweb/js':
ensure => 'link',
target => '/vagrant/public/js',
owner => 'apache',
group => 'apache',
}
file { '/var/www/html/icingaweb/index.php':
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icingaweb/index.php',
owner => 'apache',
group => 'apache',
}
file { '/var/www/html/icingaweb/js.php':
ensure => absent,
}
file { '/var/www/html/icingaweb/css.php':
ensure => absent,
}