vagrant-hostmanager-ext 1.8.7.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/CHANGELOG.md +67 -0
- data/Gemfile +9 -0
- data/LICENSE +373 -0
- data/README.md +236 -0
- data/Rakefile +12 -0
- data/lib/vagrant-hostmanager-ext.rb +1 -0
- data/lib/vagrant-hostmanager.rb +14 -0
- data/lib/vagrant-hostmanager/action.rb +31 -0
- data/lib/vagrant-hostmanager/action/update_all.rb +52 -0
- data/lib/vagrant-hostmanager/action/update_guest.rb +31 -0
- data/lib/vagrant-hostmanager/action/update_host.rb +30 -0
- data/lib/vagrant-hostmanager/command.rb +44 -0
- data/lib/vagrant-hostmanager/config.rb +95 -0
- data/lib/vagrant-hostmanager/errors.rb +6 -0
- data/lib/vagrant-hostmanager/hosts_file/updater.rb +238 -0
- data/lib/vagrant-hostmanager/plugin.rb +44 -0
- data/lib/vagrant-hostmanager/provisioner.rb +24 -0
- data/lib/vagrant-hostmanager/util.rb +14 -0
- data/lib/vagrant-hostmanager/version.rb +5 -0
- data/locales/en.yml +11 -0
- data/test/Vagrantfile +42 -0
- data/test/test.sh +14 -0
- data/vagrant-hostmanager.gemspec +22 -0
- metadata +102 -0
data/test/Vagrantfile
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
if Gem::Version.new(::Vagrant::VERSION) < Gem::Version.new('1.5')
|
5
|
+
Vagrant.require_plugin('vagrant-hostmanager')
|
6
|
+
end
|
7
|
+
|
8
|
+
Vagrant.configure('2') do |config|
|
9
|
+
|
10
|
+
if ENV.key? 'VAGRANT_BOX'
|
11
|
+
config.vm.box = ENV['VAGRANT_BOX']
|
12
|
+
else
|
13
|
+
config.vm.box = 'precise64'
|
14
|
+
config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box'
|
15
|
+
end
|
16
|
+
|
17
|
+
config.hostmanager.enabled = true
|
18
|
+
config.hostmanager.manage_host = true
|
19
|
+
config.hostmanager.manage_guest = true
|
20
|
+
|
21
|
+
config.vm.define :server1 do |server|
|
22
|
+
server.vm.hostname = 'fry'
|
23
|
+
server.vm.network :private_network, :ip => '10.0.5.2'
|
24
|
+
server.hostmanager.aliases = %w(test-alias)
|
25
|
+
end
|
26
|
+
|
27
|
+
config.vm.define :server2 do |server|
|
28
|
+
server.vm.hostname = 'bender'
|
29
|
+
server.vm.network :private_network, :ip => '10.0.5.3'
|
30
|
+
end
|
31
|
+
|
32
|
+
config.vm.define :server3 do |server|
|
33
|
+
server.vm.hostname = 'leena'
|
34
|
+
server.vm.network :private_network, :ip => '10.0.5.4'
|
35
|
+
server.vm.provision :hostmanager
|
36
|
+
end
|
37
|
+
|
38
|
+
config.vm.define :server4 do |server|
|
39
|
+
server.vm.hostname = 'scruffy'
|
40
|
+
server.vm.provision :hostmanager
|
41
|
+
end
|
42
|
+
end
|
data/test/test.sh
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'vagrant-hostmanager/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |gem|
|
8
|
+
gem.name = 'vagrant-hostmanager-ext'
|
9
|
+
gem.version = VagrantPlugins::HostManager::VERSION
|
10
|
+
gem.authors = ['Shawn Dahlen','Seth Reeser']
|
11
|
+
gem.email = ['shawn@dahlen.me','info@devopsgroup.io']
|
12
|
+
gem.description = %q{A Vagrant plugin that manages the /etc/hosts file within a multi-machine environment}
|
13
|
+
gem.summary = gem.description
|
14
|
+
gem.license = 'MIT'
|
15
|
+
|
16
|
+
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ['lib']
|
19
|
+
|
20
|
+
gem.add_development_dependency 'bundler', '~> 1.3'
|
21
|
+
gem.add_development_dependency 'rake'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vagrant-hostmanager-ext
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.8.7.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shawn Dahlen
|
8
|
+
- Seth Reeser
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.3'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.3'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
description: A Vagrant plugin that manages the /etc/hosts file within a multi-machine
|
43
|
+
environment
|
44
|
+
email:
|
45
|
+
- shawn@dahlen.me
|
46
|
+
- info@devopsgroup.io
|
47
|
+
executables: []
|
48
|
+
extensions: []
|
49
|
+
extra_rdoc_files: []
|
50
|
+
files:
|
51
|
+
- ".gitignore"
|
52
|
+
- CHANGELOG.md
|
53
|
+
- Gemfile
|
54
|
+
- LICENSE
|
55
|
+
- README.md
|
56
|
+
- Rakefile
|
57
|
+
- lib/vagrant-hostmanager-ext.rb
|
58
|
+
- lib/vagrant-hostmanager.rb
|
59
|
+
- lib/vagrant-hostmanager/action.rb
|
60
|
+
- lib/vagrant-hostmanager/action/update_all.rb
|
61
|
+
- lib/vagrant-hostmanager/action/update_guest.rb
|
62
|
+
- lib/vagrant-hostmanager/action/update_host.rb
|
63
|
+
- lib/vagrant-hostmanager/command.rb
|
64
|
+
- lib/vagrant-hostmanager/config.rb
|
65
|
+
- lib/vagrant-hostmanager/errors.rb
|
66
|
+
- lib/vagrant-hostmanager/hosts_file/updater.rb
|
67
|
+
- lib/vagrant-hostmanager/plugin.rb
|
68
|
+
- lib/vagrant-hostmanager/provisioner.rb
|
69
|
+
- lib/vagrant-hostmanager/util.rb
|
70
|
+
- lib/vagrant-hostmanager/version.rb
|
71
|
+
- locales/en.yml
|
72
|
+
- test/Vagrantfile
|
73
|
+
- test/test.sh
|
74
|
+
- vagrant-hostmanager.gemspec
|
75
|
+
homepage:
|
76
|
+
licenses:
|
77
|
+
- MIT
|
78
|
+
metadata: {}
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.3.1
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.5.1
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: A Vagrant plugin that manages the /etc/hosts file within a multi-machine
|
99
|
+
environment
|
100
|
+
test_files:
|
101
|
+
- test/Vagrantfile
|
102
|
+
- test/test.sh
|