Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check the diffs. I'm lazy.

  • Loading branch information...
commit ba48800bd8d40f63997cb1b16ee7961feea7eb57 1 parent 89ffd7f
@uberj authored
View
BIN  glaspot/manifests/.init.pp.swp
Binary file not shown
View
34 glaspot/manifests/evnet.pp
@@ -3,22 +3,24 @@
#
class evnet () {
- file { '/home/glaspot/evnet/':
- ensure => directory,
- mode => 0640,
- owner => glaspot,
- require => User['glaspot'],
- }
+ define install(){
+ file { '/home/glaspot/evnet/':
+ ensure => directory,
+ mode => 0640,
+ owner => glaspot,
+ require => User['glaspot'],
+ }
- git::clone { "evnet":
- source => "https://github.com/rep/evnet.git",
- localtree => "/home/glaspot/",
- }
+ git::clone { "evnet":
+ source => "https://github.com/rep/evnet.git",
+ localtree => "/home/glaspot/",
+ }
- exec { 'evnet install':
- path => ['/usr/bin'],
- cwd => "/home/glaspot/evnet/",
- command => "python setup.py build && python setup.py install",
- require => Git::Clone['evnet'],
- }
+ exec { 'evnet install':
+ path => ['/usr/bin'],
+ cwd => "/home/glaspot/evnet/",
+ command => "python setup.py build && python setup.py install",
+ require => Git::Clone['evnet'],
+ }
+ {
}
View
3  glaspot/manifests/init.pp
@@ -30,4 +30,7 @@
port => "9090",
require => File['/home/glaspot/glaspot/'],
}
+
+ php_apd::install { "apd": }
+ glaspot::evnet::install { "evnet install": }
}
View
BIN  php_apd/manifests/.init.pp.swp
Binary file not shown
View
55 php_apd/manifests/init.pp
@@ -1,32 +1,35 @@
# 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"
+ define install (
+ $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}",
+ 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}",
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.