Skip to content

Commit 669893a

Browse files
committed
fix(Vagrantfile): require user-data when provisioning
1 parent 07ce655 commit 669893a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ Vagrant.configure("2") do |config|
123123
s.args = ["/tmp/vagrantfile-user-data", $num_instances]
124124
end
125125
config.vm.provision :shell, :inline => "mv /tmp/vagrantfile-user-data /var/lib/coreos-vagrant/", :privileged => true
126+
else
127+
config.vm.provision :shell do |s|
128+
s.inline = "echo \"File not found: #{CLOUD_CONFIG_PATH}\" &&" +
129+
"echo \"Run 'make discovery-url' first to create user-data.\" && exit 1"
130+
end
126131
end
127132

128133
end

0 commit comments

Comments
 (0)