vagrant-guest-openwrt 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/History.txt +4 -0
- data/Vagrantfile +4 -1
- data/lib/openwrt/vagrant/cap/change_host_name.rb +7 -1
- data/lib/openwrt/version.rb +1 -1
- metadata +1 -2
- data/Gemfile.lock +0 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e19de37a5561f9efbac8c0e40b5d09dce9429aa7
|
4
|
+
data.tar.gz: c2ef4b7642c18fe8fb4b255189c486c9b5bd5c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ddd6f3a3d5ee80a8dfc57404d87fad23589e62c954c46196b8e96b5683f57601463bc5fb112ede6aea2563356aea29c40b92dcdac48eba396a27883714cca2
|
7
|
+
data.tar.gz: 6f6a521aee76c5bc9d3969b3f449c04587993970e846128190699615f46caf82bf45ec26902ef3ee747b4c7dc6a0ff21d73717cf4946d9df58b161587ebebbc3
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/Vagrantfile
CHANGED
@@ -5,12 +5,15 @@
|
|
5
5
|
VAGRANTFILE_API_VERSION = "2"
|
6
6
|
|
7
7
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
8
|
-
config.vm.box = "
|
8
|
+
config.vm.box = "Adam/OpenWrt-AA"
|
9
9
|
config.vm.guest = "openwrt"
|
10
10
|
config.ssh.shell = "ash" # bash is the default, openwrt uses ash
|
11
11
|
config.ssh.private_key_path = "vagrant.private.key"
|
12
12
|
config.vm.synced_folder ".", "/vagrant", :disabled => true # no guest additions of vmware tools. No sharing
|
13
13
|
|
14
|
+
#Testing the plugin
|
15
|
+
config.vm.hostname="OpenWrtAA"
|
16
|
+
|
14
17
|
#You can configure networks here for the Virtuliser, however the plugin has not implemented it for OpenWRT yet.
|
15
18
|
#You will need to edit /etc/config/network manually
|
16
19
|
end
|
@@ -3,7 +3,13 @@ module VagrantPlugins
|
|
3
3
|
module Cap
|
4
4
|
class ChangeHostName
|
5
5
|
def self.change_host_name(machine, name)
|
6
|
-
|
6
|
+
begin
|
7
|
+
machine.communicate.execute("sudo uci set system.@system[0].hostname=\"#{name}\"")
|
8
|
+
machine.communicate.execute("sudo uci commit")
|
9
|
+
rescue IOError
|
10
|
+
# Ignore, this probably means connection closed because it
|
11
|
+
# shut down.
|
12
|
+
end
|
7
13
|
end
|
8
14
|
end
|
9
15
|
end
|
data/lib/openwrt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-guest-openwrt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Mills
|
@@ -48,7 +48,6 @@ files:
|
|
48
48
|
- .gitattributes
|
49
49
|
- .gitignore
|
50
50
|
- Gemfile
|
51
|
-
- Gemfile.lock
|
52
51
|
- History.txt
|
53
52
|
- Manifest.txt
|
54
53
|
- README.md
|
data/Gemfile.lock
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/mitchellh/vagrant.git
|
3
|
-
revision: 6977e93ba98fd19112b1fed74dafb8619f581984
|
4
|
-
tag: v1.5.1
|
5
|
-
specs:
|
6
|
-
vagrant (1.5.1)
|
7
|
-
bundler (~> 1.5.2)
|
8
|
-
childprocess (~> 0.5.0)
|
9
|
-
erubis (~> 2.7.0)
|
10
|
-
i18n (~> 0.6.0)
|
11
|
-
listen (~> 2.4.0)
|
12
|
-
log4r (~> 1.1.9, < 1.1.11)
|
13
|
-
net-scp (~> 1.1.0)
|
14
|
-
net-ssh (>= 2.6.6, < 2.8.0)
|
15
|
-
rb-kqueue (~> 0.2.0)
|
16
|
-
wdm (~> 0.1.0)
|
17
|
-
|
18
|
-
PATH
|
19
|
-
remote: .
|
20
|
-
specs:
|
21
|
-
vagrant-guest-openwrt (0.0.1)
|
22
|
-
|
23
|
-
GEM
|
24
|
-
remote: https://rubygems.org/
|
25
|
-
specs:
|
26
|
-
celluloid (0.15.2)
|
27
|
-
timers (~> 1.1.0)
|
28
|
-
childprocess (0.5.2)
|
29
|
-
ffi (~> 1.0, >= 1.0.11)
|
30
|
-
erubis (2.7.0)
|
31
|
-
ffi (1.9.3-x86-mingw32)
|
32
|
-
i18n (0.6.9)
|
33
|
-
listen (2.4.1)
|
34
|
-
celluloid (>= 0.15.2)
|
35
|
-
rb-fsevent (>= 0.9.3)
|
36
|
-
rb-inotify (>= 0.9)
|
37
|
-
log4r (1.1.10)
|
38
|
-
net-scp (1.1.2)
|
39
|
-
net-ssh (>= 2.6.5)
|
40
|
-
net-ssh (2.7.0)
|
41
|
-
rb-fsevent (0.9.4)
|
42
|
-
rb-inotify (0.9.3)
|
43
|
-
ffi (>= 0.5.0)
|
44
|
-
rb-kqueue (0.2.2)
|
45
|
-
ffi (>= 0.5.0)
|
46
|
-
timers (1.1.0)
|
47
|
-
wdm (0.1.0)
|
48
|
-
|
49
|
-
PLATFORMS
|
50
|
-
x86-mingw32
|
51
|
-
|
52
|
-
DEPENDENCIES
|
53
|
-
vagrant!
|
54
|
-
vagrant-guest-openwrt!
|