From ca03e1f3c9f65c50f17bcdcaedfee30bd8729f2e Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 28 Aug 2017 15:14:40 +0200 Subject: [PATCH] add a vagrant directory --- .../default/virtualbox/action_provision | 1 + .../default/virtualbox/action_set_name | 1 + .../machines/default/virtualbox/creator_uid | 1 + .../.vagrant/machines/default/virtualbox/id | 1 + .../machines/default/virtualbox/index_uuid | 1 + .../machines/default/virtualbox/private_key | 27 +++++++ .../default/virtualbox/synced_folders | 1 + vagrant/webtech/Vagrantfile | 72 +++++++++++++++++++ vagrant/webtech/bootstrap.sh | 3 + 9 files changed, 108 insertions(+) create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/action_provision create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/action_set_name create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/creator_uid create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/id create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/index_uuid create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/private_key create mode 100644 vagrant/webtech/.vagrant/machines/default/virtualbox/synced_folders create mode 100644 vagrant/webtech/Vagrantfile create mode 100644 vagrant/webtech/bootstrap.sh diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/action_provision b/vagrant/webtech/.vagrant/machines/default/virtualbox/action_provision new file mode 100644 index 0000000..24b9026 --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/action_provision @@ -0,0 +1 @@ +1.5:59196ade-8d6d-414e-9803-84ceeb7bffe8 \ No newline at end of file diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/action_set_name b/vagrant/webtech/.vagrant/machines/default/virtualbox/action_set_name new file mode 100644 index 0000000..33d4062 --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/action_set_name @@ -0,0 +1 @@ +1503757949 \ No newline at end of file diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/creator_uid b/vagrant/webtech/.vagrant/machines/default/virtualbox/creator_uid new file mode 100644 index 0000000..e37d32a --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/creator_uid @@ -0,0 +1 @@ +1000 \ No newline at end of file diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/id b/vagrant/webtech/.vagrant/machines/default/virtualbox/id new file mode 100644 index 0000000..574be8c --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/id @@ -0,0 +1 @@ +59196ade-8d6d-414e-9803-84ceeb7bffe8 \ No newline at end of file diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/index_uuid b/vagrant/webtech/.vagrant/machines/default/virtualbox/index_uuid new file mode 100644 index 0000000..81a05f3 --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/index_uuid @@ -0,0 +1 @@ +84a7ea016bff42d6a81f0e24e28c5803 \ No newline at end of file diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/private_key b/vagrant/webtech/.vagrant/machines/default/virtualbox/private_key new file mode 100644 index 0000000..99fa1c8 --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/private_key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAmaCHhayjEjIDSfuFK/YVpOcFdbGKdCaQAUS8EQcfbT7o4Ns6 +Yq3dYitvqeC73Hda1neGEIa6EjRAUXeL4b0RAw2R0wSexwmM4levWa6A3/4LtD1i +jxVyDgI834Ime2TEk7pHf3s0v5fThB1/eS5qGeCqC3nNfZxpXKLeAl+oCUesGMgd +lr5hZ/Dr78hFKKeOKCXtgp+NIxokRgWgicrnwTlaSRuWVf8zSZo6h6hG4bqMAOjR +6/duTLe2YusAvWedPJyJ7dQIge9gO9a1skhfVlk8p0Mnt0qeK2zNHKk4M8dNTUVG +dAVpPaTU2oSGkKjJkf1MbUm4ArKgRAboA8K+FQIDAQABAoIBAEU/c/cQU00vWAYw +Jt4jBayYKgDcL2G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/FYP68uDnIap8sLtaUhFQsnO9zVVR +27P3obOh1LLuzeS6Uy5CjE2lP/S7ESZjXxnH1o7ng1VI40Rj6c8nVG7EFoPg9UIy +y/nJebdpad9gjAwJn4P9fx+vf1rvj9Q0iH0VKELGCNBqMVGB8liHEg== +-----END RSA PRIVATE KEY----- diff --git a/vagrant/webtech/.vagrant/machines/default/virtualbox/synced_folders b/vagrant/webtech/.vagrant/machines/default/virtualbox/synced_folders new file mode 100644 index 0000000..249ce58 --- /dev/null +++ b/vagrant/webtech/.vagrant/machines/default/virtualbox/synced_folders @@ -0,0 +1 @@ +{"rsync":{"/vagrant":{"type":"rsync","guestpath":"/vagrant","hostpath":"/home/andreas/git_repos/ibz_repos/ibz/vagrant/webtech","disabled":false,"__vagrantfile":true,"owner":"vagrant","group":"vagrant"}},"virtualbox":{"/var/www/html":{"guestpath":"/var/www/html","hostpath":"/home/andreas/git_repos/ibz_repos/ibz/web/1_sem","disabled":false,"__vagrantfile":true}}} \ No newline at end of file diff --git a/vagrant/webtech/Vagrantfile b/vagrant/webtech/Vagrantfile new file mode 100644 index 0000000..73401a7 --- /dev/null +++ b/vagrant/webtech/Vagrantfile @@ -0,0 +1,72 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# All Vagrant configuration is done below. The "2" in Vagrant.configure +# configures the configuration version (we support older styles for +# backwards compatibility). Please don't change it unless you know what +# you're doing. +Vagrant.configure("2") do |config| + # The most common configuration options are documented and commented below. + # For a complete reference, please see the online documentation at + # https://docs.vagrantup.com. + + # Every Vagrant development environment requires a box. You can search for + # boxes at https://atlas.hashicorp.com/search. + config.vm.box = "debian-VAGRANTSLASH-stretch64" + + # Disable automatic box update checking. If you disable this, then + # boxes will only be checked for updates when the user runs + # `vagrant box outdated`. This is not recommended. + # config.vm.box_check_update = false + + # Create a forwarded port mapping which allows access to a specific port + # within the machine from a port on the host machine. In the example below, + # accessing "localhost:8080" will access port 80 on the guest machine. + config.vm.network "forwarded_port", guest: 80, host: 8080 + + # Create a private network, which allows host-only access to the machine + # using a specific IP. + # config.vm.network "private_network", ip: "192.168.33.10" + + # Create a public network, which generally matched to bridged network. + # Bridged networks make the machine appear as another physical device on + # your network. + # config.vm.network "public_network" + + # Share an additional folder to the guest VM. The first argument is + # the path on the host to the actual folder. The second argument is + # the path on the guest to mount the folder. And the optional third + # argument is a set of non-required options. + config.vm.synced_folder "/home/andreas/git_repos/ibz_repos/ibz/web/1_sem/", "/var/www/html" + + # Provider-specific configuration so you can fine-tune various + # backing providers for Vagrant. These expose provider-specific options. + # Example for VirtualBox: + # + # config.vm.provider "virtualbox" do |vb| + # # Display the VirtualBox GUI when booting the machine + # vb.gui = true + # + # # Customize the amount of memory on the VM: + # vb.memory = "1024" + # end + # + # View the documentation for the provider you are using for more + # information on available options. + + # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies + # such as FTP and Heroku are also available. See the documentation at + # https://docs.vagrantup.com/v2/push/atlas.html for more information. + # config.push.define "atlas" do |push| + # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME" + # end + + # Enable provisioning with a shell script. Additional provisioners such as + # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the + # documentation for more information about their specific syntax and use. + config.vm.provision "shell", inline: <<-SHELL + apt-get update + apt-get install -y apache2 + SHELL + +end diff --git a/vagrant/webtech/bootstrap.sh b/vagrant/webtech/bootstrap.sh new file mode 100644 index 0000000..4010cc7 --- /dev/null +++ b/vagrant/webtech/bootstrap.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +apt-get update +apt-get install -y apache2