Sha256: 898ea9338673ea9cc10b8bef16d48fadfd9aea30f349e0827166aa3b8ea0cc3c
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "tknerr/managed-server-dummy" <% config[:provisioners].each do |provisioner| -%> <% if provisioner == 'shell' -%> <% config[:shell_paths].each do |path| -%> config.vm.provision 'shell', path: '<%= path %>' <% end -%> <% end -%> <% end -%> instances = File.readlines('Catfishfile.lock').map(&:chomp) instances.each do |instance| next if instance.start_with? '#' config.vm.define "#{instance}" do |box| box.vm.provider :managed do |managed, override| managed.server = instance override.ssh.username = '<%= config[:ssh_username] %>' override.ssh.private_key_path = '<%= config[:ssh_private_key_path] %>' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catfish-0.0.2 | lib/catfish/templates/Vagrantfile.tt |