vagrant-hitch 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/vagrant-hitch.rb CHANGED
@@ -45,9 +45,8 @@ module VagrantHitch
45
45
  config.vm.box_url = node_config['vbox_url']
46
46
 
47
47
  # Configure Hostname
48
- if node_config.has_key?('hostname')
49
- config.vm.host_name = node_config['hostname']
50
- end
48
+ hostname = node_config.has_key?('orgname') ? "#{profile.to_s}.#{node_config['orgname']}" : "#{profile.to_s}.vagrant"
49
+ config.vm.host_name = hostname
51
50
 
52
51
  if node_config.has_key?('guest')
53
52
  config.vm.guest = node_config['guest']
@@ -114,6 +113,7 @@ module VagrantHitch
114
113
 
115
114
  config.vm.provision :puppet_server do |puppet|
116
115
  puppet.puppet_server = node_config['puppet_server']['server']
116
+ puppet.puppet_node = hostname
117
117
 
118
118
  # Setup Puppet Graphing
119
119
  if node_config['puppet_server']['options'].include?('--graph')
@@ -15,5 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
16
  gem.name = "vagrant-hitch"
17
17
  gem.require_paths = ["lib"]
18
- gem.version = "0.0.5"
18
+ gem.version = "0.0.6"
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: