Skip to content

Commit

Permalink
prepare vagrant for OpenVAS scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
asura-asp committed Sep 10, 2015
1 parent 21d1e43 commit 87f6b1e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder "../app", "/var/www/dropper/app"
config.vm.network "forwarded_port", guest: 80, host: 8088
config.vm.network :forwarded_port, guest: 443, host: 7088
config.vm.network :forwarded_port, guest: 9392, host: 9392

config.vm.provision "shell" do |s|
s.path = "bootstrap.sh"
Expand Down
2 changes: 1 addition & 1 deletion vagrant/apache-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

# Possible values: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
LogLevel warn

ServerAdmin webmaster@localhost
ErrorLog ${APACHE_LOG_DIR}/error.log
Expand Down
2 changes: 1 addition & 1 deletion vagrant/apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Expand Down
25 changes: 18 additions & 7 deletions vagrant/bootstrap_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,24 @@ function configure_base() {
}

function install_utils() {
cp $SHARED_FOLDER/aliases /home/vagrant/.bash_aliases
cp $SHARED_FOLDER/aliases /root/.bash_aliases
cp $SHARED_FOLDER/vimrc /home/vagrant/.vimrc
cp $SHARED_FOLDER/vimrc /root/.vimrc
apt-get install -y \
vim \
ack-grep
cp $SHARED_FOLDER/dot_files/aliases /home/vagrant/.bash_aliases
cp $SHARED_FOLDER/dot_files/aliases /root/.bash_aliases

cp $SHARED_FOLDER/dot_files/vimrc /home/vagrant/.vimrc
cp $SHARED_FOLDER/dot_files/vimrc /root/.vimrc

cp $SHARED_FOLDER/dot_files/sqliterc /home/vagrant/.sqliterc
cp $SHARED_FOLDER/dot_files/sqliterc /root/.sqliterc

apt-get install -y vim ack-grep
}

function install_redis() {

}

function install_openvas() {

}

function install_apache_for_python() {
Expand Down

0 comments on commit 87f6b1e

Please sign in to comment.