Skip to content

Commit

Permalink
webgrind xdebug config
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Dec 3, 2012
1 parent ce8d466 commit 1a1f3b7
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
include solr
include drush
include phpmyadmin
include webgrind

# build basic drupal site
drupal::nginx::vhost { "drupaldefault":
Expand Down
16 changes: 16 additions & 0 deletions modules/webgrind/manifests/config.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
*
* Set up xdebug cong for webgrind
*
*/
class webgrind::config {

file { "webgrind.ini":
ensure => file,
path => "/etc/php5/conf.d/webgrind.ini",
require => Class["phpfpm::extensions::xdebug"],
notify => [Class["phpfpm::service"], Class["nginx::service"]],
content => template("webgrind/webgrind.ini.erb")
}

}
10 changes: 10 additions & 0 deletions modules/webgrind/manifests/init.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
*
* Install and config git
*
*/
class webgrind {

include webgrind::install, webgrind::config

}
8 changes: 8 additions & 0 deletions modules/webgrind/manifests/install.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
*
* Nothing special, just a basic version of git
*
*/
class webgrind::install {

}
4 changes: 4 additions & 0 deletions modules/webgrind/templates/webgrind.ini.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/tmp"
xdebug.profiler_append=0
xdebug.profiler_output_name = "cachegrind.out.%t.%p"

0 comments on commit 1a1f3b7

Please sign in to comment.