Sha256: 7b21eb1e7d8cc358f3632534a5b2fe2c1352ab74a5bc4df8455cbb7a99e984bb
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "tknerr/managed-server-dummy" <% if config[:provisioners].include? 'shell' -%> <% config[:shell_paths].each do |path| -%> config.vm.provision 'shell', path: '<%= path %>' <% end -%> <% end -%> <% if config[:provisioners].include? 'puppet' -%> config.vm.provision 'puppet' do |puppet| <% if config[:puppet_hiera] -%> puppet.hiera_config_path = 'hiera.yaml' <% end -%> <% if config[:puppet_librarian_puppet] -%> puppet.module_path = 'modules' <% end -%> end <% end -%> <% if config[:communicator] == 'winrm' -%> config.vm.communicator = '<%= config[:communicator] %>' config.vm.winrm.username = '<%= config[:winrm_username] %>' config.vm.winrm.password = '<%= config[:winrm_password] %>' <% end -%> instances = File.readlines('Catfishfile.lock').map(&:chomp) instances.each do |instance| config.vm.define "#{instance}" do |box| box.vm.provider :managed do |managed, override| managed.server = instance <% if config[:communicator] == 'ssh' -%> override.ssh.username = '<%= config[:ssh_username] %>' override.ssh.private_key_path = '<%= config[:ssh_private_key_path] %>' <% end -%> end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catfish-0.0.5 | lib/catfish/templates/Vagrantfile.tt |