lib/kontena/machine/vagrant/master_provisioner.rb in kontena-cli-0.10.3 vs lib/kontena/machine/vagrant/master_provisioner.rb in kontena-cli-0.11.0

- old
+ new

@@ -19,10 +19,12 @@ def run!(opts) name = generate_name version = opts[:version] memory = opts[:memory] || 1024 auth_server = opts[:auth_server] + vault_secret = opts[:vault_secret] + vault_iv = opts[:vault_iv] vagrant_path = "#{Dir.home}/.kontena/vagrant_master/" if Dir.exist?(vagrant_path) abort("Oops... cannot create Kontena Master! You can run only one Kontena Master with Vagrant".colorize(:red)) end FileUtils.mkdir_p(vagrant_path) @@ -32,9 +34,11 @@ vars = { name: name, version: version, memory: memory, auth_server: auth_server, + vault_secret: vault_secret, + vault_iv: vault_iv, cloudinit: "#{vagrant_path}/cloudinit.yml" } vagrant_data = erb(File.read(template), vars) cloudinit = erb(File.read(cloudinit_template), vars) File.write("#{vagrant_path}/Vagrantfile", vagrant_data)