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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjU4MTNmNmY3YWYwNWI3Yzk1NTFhMTM5NzY0YzExM2NlMzFkZjc1YQ==
4
+ YTdhNDM3NzMyYTQzMDhjMTQ2ZTQ4NWJhMWVlZDBhYTgwYjdhMGRlZQ==
5
5
  data.tar.gz: !binary |-
6
- N2Y1Yzk0NzgyODRjN2MyNTE3N2Y0MTA0NGU0NDYyYzRkYTM3ZDJhNw==
6
+ NDFlYjI2NWUzZjk5YjljMjE1Zjc3MjQ1OTYxODM1YWJmN2EwZDFjMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmM5ODQzMDQ1YWYyYWRmYTVjMjI1ZjQ5MWU2OGIxZjZhOTVmMWFmZWZiYzk5
10
- MTY4MGU3MTJlYmMyYTczNjc2YzZjZjdhZTUzZjE5YWM5ZTg5YzI2YWQzNzI3
11
- OTg3NjE4OGM1M2U2NDU4ODU0N2RlYjE5NDhhMTJkYjQ3ZmU3MTE=
9
+ YzQ0YjQwNDZmZWNiOGI1YTA0ZDU0MWFlZjhjYzlkZmVhNTc1ZDI3ZWNiZGNm
10
+ YWNmYTg2MGUxYWI2NmE2ZDAzMzgxYzM3MGU4MjNhYmZkOTEwNmE2NjNlZmUz
11
+ ZjFkNjNlN2JlNDM0MWUzZjczYzZjNDM0NjljM2U4N2U3MzIwYzQ=
12
12
  data.tar.gz: !binary |-
13
- NGRlYTljOTM3MDAyYTllMzQ5YmNiY2JiMTViZjk2YzI2NThjYjY1YWRmYTBi
14
- ZTQwMWE2MDg2YTA2NGI3MzIyZTczNzBkZDBjZmM1MmJjOGU0ZjEyYTExMGI0
15
- Yjk2ZTcwNTlhYmFmOTAxYmQ2NzZjNGU2NmMwYzY4YmE2MDMyNjk=
13
+ MzJhODM2ZWY2ZjkxZTBmNWQxNGVkZDYzZmNjM2MyOWJlZGNlYzNjMDMxYTZk
14
+ YzBiYjk5MmY4ODI0NDk4MmQ1Y2RmZDQ2OTk4YzAyZDRkMmIyM2M5NWZhYWQ5
15
+ OWM4ZWFiZDRhMjU2OTc5MzcyNGU2YTY2MzEyZDgwYjA4MjEwZGE=
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- vagrant-dns-server (0.4.2)
16
+ vagrant-dns-server (0.4.3)
17
17
  em-zeromq
18
18
  log4r
19
19
  moneta
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
- $ sudo aptitude install libzmq1 libzmq-dev
16
- $ vagrant plugin install vagrant-dns-server
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
- TBD
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
- # Developing
39
+ Once the plugin is installed only vagrant up is required to register local ip address:
24
40
 
25
- Its recommended to have RVM installed, currently ruby 1.9.3 is used (see .ruby files)
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module VagrantDns
2
- VERSION='0.4.2'
2
+ VERSION='0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dns-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronen Narkis