Skip to content

Commit

Permalink
apd mostly written. need to do more testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
uberj committed Nov 30, 2011
1 parent 536cade commit 263c1ba
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Binary file added php_apd/files/apd_1.0.1_i386.deb
Binary file not shown.
32 changes: 32 additions & 0 deletions php_apd/manifests/init.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# I'm pretty much modeling what this guy did: http://lzone.de/node/4

class php_apd {
$php_ini = "/etc/php5/cli/php.ini"
$trace_dir = "/tmp/apd_traces"

package {'php5':
ensure => present,
}

package {'apd':
ensure => present,
provider => dpkg,
#source => "puppet://puppet/php_apd/files/apd_1.0.1_i386.deb",
source => "/etc/puppet/modules/php_apd/files/apd_1.0.1_i386.deb",
}
#zend_extension=/usr/lib/php5/20090626+lfs/apd.so
#apd.statement=1
#apd.tracedir=/tmp/apd-traces
exec { 'zend_extensions':
unless => "/bin/grep zend_extension=/usr/lib/php5/20090626+lfs/apd.so ${php_ini}",
command => "/bin/echo 'zend_extension=/usr/lib/php5/20090626+lfs/apd.so' >> ${php_ini}",
}
exec { 'apd enable':
unless => "/bin/grep apd.statement=1 ${php_ini}",
command => "/bin/echo 'apd.statement=1' >> ${php_ini}",
}
exec { 'tracedir':
unless => "/bin/grep apd.tracedir=${trace_dir} ${php_ini}",
command => "/bin/echo 'apd.tracedir=${trace_dir}' >> ${php_ini}",
}
}

0 comments on commit 263c1ba

Please sign in to comment.