Permalink
Browse files

Added bootstrap.sh. Still in beta.

I might have to break away from the stand alone model and use the client/server
features.
  • Loading branch information...
1 parent 7a3c1d0 commit 8be675446e36054d8784e67f51136610c7ad6c1a @uberj committed Dec 4, 2011
Showing with 24 additions and 10 deletions.
  1. +16 −6 evnet/manifests/install.pp
  2. +7 −0 glaspot/bootstrap.sh
  3. +0 −3 glaspot/manifests/install.pp
  4. +1 −1 php_apd/manifests/install.pp
View
@@ -2,25 +2,35 @@
# basedir = where to keep the evnet library files.
class evnet::install ( $basedir = "opt" ){
-
+
+ package { "git":
+ ensure => present,
+ before => Git::Clone['evnet'],
+ }
+
package { "python-openssl":
ensure => present,
before => Exec["evnet install"],
}
-
+
+ package { "python-dev":
+ ensure => present,
+ before => Exec["evnet install"],
+ }
+
file { "/${basedir}/evnet/":
ensure => directory,
mode => 0640,
- owner => glaspot,
- require => User["glaspot"],
+ owner => root,
+ group => root,
}
git::clone { "evnet":
+
source => "https://github.com/rep/evnet.git",
localtree => "/${basedir}",
- require => User["glaspot"],
}
-
+
Exec { path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" }
exec { "evnet install":
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Bootstrap a VM to be a glaspot honeypot.
+puppet_modules="/vagrant/puppet-modules"
+aptitude -y install puppet
+echo "modulepath = $puppet_modules" >> /etc/puppet/puppet.conf
+puppet apply -e "include glaspot"
@@ -7,9 +7,6 @@
ensure => installed,
}
- package { "python-dev":
- ensure => installed,
- }
package { "python-chardet":
ensure => installed,
}
@@ -13,7 +13,7 @@
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",
+ source => "puppet:///modules/php_apd/files/apd_1.0.1_i386.deb",
}
#zend_extension=/usr/lib/php5/20090626+lfs/apd.so
#apd.statement=1

0 comments on commit 8be6754

Please sign in to comment.