Sha256: 90e9b1335a8eed20b56173f22e2e311f694f5d9477d6a471c8047746bfd6f179
Contents?: true
Size: 995 Bytes
Versions: 2
Compression:
Stored size: 995 Bytes
Contents
# define the machine name config.vm.define "<%= machine_name %>" do |<%= machine_name %>| <%= machine_name %>.vm.box_url = "<%= basebox_path %>" <%= machine_name %>.vm.box = "<%= box_name %>" <%= ssh_specifics -%> <%= machine_name %>.vm.provider :<%= provider %> do |<%= provider %>| <%= provider_specifics -%> end <%= networks_array -%> <%= sync_folders_array -%> <%= ports_array -%> # provisioning tasks = JSON.parse(<%= tasks_array %>) tasks.each { |task| if task["type"] == "chef_client" || task["type"] == "chef_solo" <%= machine_name %>.omnibus.chef_version = :latest end <%= machine_name %>.vm.provision "#{task["type"]}" do |provisioner| task.each do |key, value| next if key == "type" provisioner.send("#{key}=", value) end end } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zergrush_vagrant-0.0.3 | resources/machine.template |
zergrush_vagrant-0.0.2 | resources/machine.template |