Created
May 17, 2014 09:20
-
-
Save noisy/98a6d5d9ccbaf39799ae to your computer and use it in GitHub Desktop.
This file contains hidden or 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 -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise32" | |
| config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
| config.vm.network "private_network", type: "dhcp" | |
| config.ssh.forward_agent = true | |
| config.ssh.private_key_path = [ '~/.vagrant.d/insecure_private_key', '~/.ssh/id_rsa' ] | |
| # add dev.spistresci.pl to the list of known_hosts | |
| config.vm.provision :shell do |shell| | |
| shell.inline = "mkdir $1 && touch $2 && ssh-keyscan -H $3 >> $2 && chmod 600 $2" | |
| shell.args = %q{/root/.ssh /root/.ssh/known_hosts "dev.spistresci.pl"} | |
| end | |
| config.vm.provision :shell, :path => "init.sh" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment