Skip to content

Instantly share code, notes, and snippets.

@aschweer
Created November 17, 2016 23:01
Show Gist options
  • Save aschweer/e521f1831fe874bc3f19a40c395eb513 to your computer and use it in GitHub Desktop.
Save aschweer/e521f1831fe874bc3f19a40c395eb513 to your computer and use it in GitHub Desktop.
Changes to vagrant-dspace
diff --git a/Vagrantfile b/Vagrantfile
index 344d84d..5d696a7 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -67,6 +67,14 @@ Vagrant.configure("2") do |config|
# configure a private network and set this guest's IP to 192.168.50.2
config.vm.network "private_network", ip: CONF['ip_address']
+ # Bugfix for "Cable connected: off"
+ config.vm.provider :virtualbox do |vm|
+ vm.customize [
+ "modifyvm", :id,
+ "--cableconnected1", "on",
+ ]
+ end
+
# 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:[port]" will access port 8080 on the VM.
@@ -182,7 +190,7 @@ Vagrant.configure("2") do |config|
# Check if a test SSH connection to GitHub succeeds or fails (on every vagrant up)
# This sets a Puppet Fact named "github_ssh_status" on the VM.
# That fact is then used by 'setup.pp' to determine whether to connect to a Git Repo via SSH or HTTPS (see setup.pp)
- config.vm.provision :shell, :inline => "echo 'Testing SSH connection to GitHub on VM...' && mkdir -p /etc/facter/facts.d/ && ssh -T -q -oStrictHostKeyChecking=no git@github.com; echo github_ssh_status=$? > /etc/facter/facts.d/github_ssh.txt", run: "always"
+ config.vm.provision :shell, :inline => "echo 'Testing SSH connection to GitHub on VM...' && mkdir -p /etc/facter/facts.d/ && echo github_ssh_status=1 > /etc/facter/facts.d/github_ssh.txt", run: "always"
#------------------------
# Provisioning Scripts
diff --git a/config/default.yaml b/config/default.yaml
index c6a32ca..721f7da 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -82,8 +82,8 @@ vm_gui_mode : false
# it will be dynamically changed into the HTTPS GitHub URL (https://github.com/[user]/[proj])
# You may also change "git_repo" to an HTTPS URL in order to force HTTPS at all times.
# (Changes to these settings require a 'vagrant destroy && vagrant up' to take effect)
-#dspace::git_repo : 'git@github.com:DSpace/DSpace.git'
-#dspace::git_branch : 'master'
+dspace::git_repo : 'https://github.com/DSpace/DSpace.git'
+dspace::git_branch : 'dspace-5_x'
#-------------------------------
# DSpace Administrative Account
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment