Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
vagrantfile: update for vagrant-ignition 0.0.2
Browse files Browse the repository at this point in the history
Vagrant-ignition 0.0.2 has some breaking changes. This updates the
Vagrantfile to be compatible with those changes
  • Loading branch information
Alexander Pavel committed Aug 1, 2017
1 parent b12b30d commit 29b611d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,8 @@ Follow the [Enable Remote API instructions][coreos-enabling-port-forwarding] to
Then you can then use the `docker` command from your local shell by setting `DOCKER_HOST`:

export DOCKER_HOST=tcp://localhost:2375

## Troubleshooting
If vagrant fails to run successfully, first make sure that the latest version of the coreos-vagrant project has been downloaded, then run
`vagrant destroy -f` to remove old machines, `vagrant box update` to update the OS box, and `vagrant plugin update vagrant-ignition` to
update the ignition plugin. If the problems persist after that, please report bugs at https://issues.coreos.com.
3 changes: 1 addition & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ Vagrant.configure("2") do |config|

config.vm.provider :virtualbox do |vb|
config.ignition.hostname = vm_name
config.ignition.config_vmdk = File.join(File.dirname(__FILE__), "config" + i.to_s + ".vmdk")
config.ignition.config_img = "config" + i.to_s + ".img"
config.ignition.drive_name = "config" + i.to_s
# when the ignition config doesn't exist, the plugin automatically generates a very basic Ignition with the ssh key
# and previously specified options (ip and hostname). Otherwise, it appends those to the provided config.ign below
if File.exist?(IGNITION_CONFIG_PATH)
Expand Down

0 comments on commit 29b611d

Please sign in to comment.