vagrant-dns-server 0.4.2 → 0.4.3
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 +8 -8
- data/Gemfile.lock +1 -1
- data/README.md +34 -5
- data/lib/vagrant-dns-server.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTdhNDM3NzMyYTQzMDhjMTQ2ZTQ4NWJhMWVlZDBhYTgwYjdhMGRlZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDFlYjI2NWUzZjk5YjljMjE1Zjc3MjQ1OTYxODM1YWJmN2EwZDFjMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzQ0YjQwNDZmZWNiOGI1YTA0ZDU0MWFlZjhjYzlkZmVhNTc1ZDI3ZWNiZGNm
|
10
|
+
YWNmYTg2MGUxYWI2NmE2ZDAzMzgxYzM3MGU4MjNhYmZkOTEwNmE2NjNlZmUz
|
11
|
+
ZjFkNjNlN2JlNDM0MWUzZjczYzZjNDM0NjljM2U4N2U3MzIwYzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzJhODM2ZWY2ZjkxZTBmNWQxNGVkZDYzZmNjM2MyOWJlZGNlYzNjMDMxYTZk
|
14
|
+
YzBiYjk5MmY4ODI0NDk4MmQ1Y2RmZDQ2OTk4YzAyZDRkMmIyM2M5NWZhYWQ5
|
15
|
+
OWM4ZWFiZDRhMjU2OTc5MzcyNGU2YTY2MzEyZDgwYjA4MjEwZGE=
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -12,17 +12,46 @@ Follow [this](https://www.youtube.com/watch?v=6GFobNDvwpI) this demo to see it i
|
|
12
12
|
# Install
|
13
13
|
|
14
14
|
```bash
|
15
|
-
|
16
|
-
|
15
|
+
$ sudo aptitude install libzmq1 libzmq-dev
|
16
|
+
$ vagrant plugin install vagrant-dns-server
|
17
|
+
# dns server
|
18
|
+
$ gem install vagrant_dns_server
|
19
|
+
|
17
20
|
```
|
18
21
|
|
19
22
|
# Usage
|
20
23
|
|
21
|
-
|
24
|
+
DNS server side:
|
25
|
+
```bash
|
26
|
+
# generate configuration
|
27
|
+
$ rvmsudo vagrant_dns server
|
28
|
+
$ cat ~/.vagrant_dns.yaml
|
29
|
+
---
|
30
|
+
upstream_dns: 8.8.8.8
|
31
|
+
zmq_url: tcp://127.0.0.1:7005
|
32
|
+
|
33
|
+
# change dns setting to point to localhost
|
34
|
+
$ cat /etc/resolv.conf
|
35
|
+
nameserver 127.0.0.1
|
36
|
+
search local
|
37
|
+
```
|
22
38
|
|
23
|
-
|
39
|
+
Once the plugin is installed only vagrant up is required to register local ip address:
|
24
40
|
|
25
|
-
|
41
|
+
```ruby
|
42
|
+
Vagrant.configure("2") do |config|
|
43
|
+
|
44
|
+
config.vm.define :ubuntu do |ubuntu|
|
45
|
+
ubuntu.vm.box = 'ubuntu-13.04_puppet-3.3.1'
|
46
|
+
ubuntu.vm.hostname = 'ubunt-redis.local'
|
47
|
+
ubuntu.vm.network :forwarded_port, guest: 6379, host: 6379
|
48
|
+
ubuntu.vm.network :private_network, ip: "192.168.2.25"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
```
|
53
|
+
# Developing
|
54
|
+
ts recommended to have RVM installed, currently ruby 1.9.3 is used (see .ruby files)
|
26
55
|
|
27
56
|
```bash
|
28
57
|
$ git clone git://github.com/narkisr/vagrant-dns-server.git
|
data/lib/vagrant-dns-server.rb
CHANGED
@@ -19,7 +19,7 @@ module VagrantDnsServer
|
|
19
19
|
|
20
20
|
|
21
21
|
action_hook(:vagrant_dns_plugin) do |hook|
|
22
|
-
hook.after(::Vagrant::Action::Builtin::Provision, VagrantDns::Middleware::Update)
|
22
|
+
# hook.after(::Vagrant::Action::Builtin::Provision, VagrantDns::Middleware::Update)
|
23
23
|
hook.after(VagrantPlugins::ProviderVirtualBox::Action::Boot, VagrantDns::Middleware::Update)
|
24
24
|
end
|
25
25
|
|
data/lib/version.rb
CHANGED