Vagrant: Add missing manifest finalize.sh

refs #4385
This commit is contained in:
Eric Lippmann 2013-07-22 17:24:56 +02:00
parent 69400ce671
commit 008d51034d
3 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,17 @@
#!/bin/bash
installJquery () {
# The npm module jquery won't install via puppet because of an mysterious error
# when node-gyp rebuilding the dependent contextify module
if [ ! -d /usr/lib/node_modules/jquery ]; then
npm install --silent -g jquery
fi
}
mountIcinga2webConfd () {
# Remount /vagrant/config with appropriate permissions since the group apache is missing initially
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=775,fmode=775 v-icinga2web-conf.d /vagrant/config
}
installJquery
mountIcinga2webConfd

View File

@ -8,13 +8,25 @@
#
# Requires:
#
# apache
#
# Sample Usage:
#
# include php
#
class php {
include apache
package { 'php':
ensure => installed
ensure => installed,
require => Package['apache'],
notify => Service['apache']
}
file { '/etc/php.d/error_reporting.ini':
content => template('php/error_reporting.ini.erb'),
require => Package['php'],
notify => Service['apache']
}
}

View File

@ -0,0 +1,4 @@
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
html_errors = On