parent
69400ce671
commit
008d51034d
|
@ -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
|
|
@ -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']
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
error_reporting = E_ALL | E_STRICT
|
||||
display_errors = On
|
||||
display_startup_errors = On
|
||||
html_errors = On
|
Loading…
Reference in New Issue