Created
July 20, 2014 16:58
-
-
Save astockwell/c3f45be9288cd9b5a5f0 to your computer and use it in GitHub Desktop.
Vagrantfile to extract data table from Microsoft Access to CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
$script = <<SCRIPT | |
apt-get update | |
apt-get install -q -y wget make libtool automake autoconf bison flex unixodbc git mdbtools | |
cd /vagrant | |
echo "Get a copy of the MDB file and run 'vagrant ssh -c 'mdb-export /vagrant/database.mdb table_name > /vagrant/table_name.csv''" | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.box = "Puppetlabs Ubuntu 12.04.2 x86_64, VBox 4.2.10, No Puppet or Chef" | |
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box" | |
config.vm.provision :shell, :inline => $script | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment