Skip to content

Commit

Permalink
Added bootstrap.sh. Still in beta.
Browse files Browse the repository at this point in the history
I might have to break away from the stand alone model and use the client/server
features.
  • Loading branch information
uberj committed Dec 4, 2011
1 parent 7a3c1d0 commit 8be6754
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
22 changes: 16 additions & 6 deletions evnet/manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
7 changes: 7 additions & 0 deletions glaspot/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 0 additions & 3 deletions glaspot/manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
ensure => installed,
}

package { "python-dev":
ensure => installed,
}
package { "python-chardet":
ensure => installed,
}
Expand Down
2 changes: 1 addition & 1 deletion php_apd/manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8be6754

Please sign in to comment.