vagrant-junos 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Vagrantfile +1 -0
- data/lib/vagrant-junos.rb +7 -7
- data/lib/vagrant-junos/cap/change_host_name.rb +1 -1
- data/lib/vagrant-junos/cap/configure_networks.rb +1 -1
- data/lib/vagrant-junos/cap/insert_public_key.rb +1 -1
- data/lib/vagrant-junos/cap/remove_public_key.rb +1 -1
- data/lib/vagrant-junos/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97245a178061a0a5f47c97221bc6dd77d9efd98d
|
4
|
+
data.tar.gz: cefca355df1a52e3739c2504d6268946030ae9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38df028c26933c086215df8f489d637a96b60748f361937f730996a9e02958a2d98f243c1471267b6ff7683069f301f4cf4888b96eee9c2e2c12e407fc84da65
|
7
|
+
data.tar.gz: 8e0c2965c9062d8a27a632f4485c89186bdbcc8fe539649782a78c66d5297893dad0dbf0c4b5a001669792231849455db8f77aa5a578f943f8a3fd6055dc1e6d
|
data/Vagrantfile
CHANGED
@@ -26,6 +26,7 @@ Vagrant.configure(2) do |config|
|
|
26
26
|
config.vm.hostname = 'vagrant-junos-test'
|
27
27
|
config.vm.network "private_network",
|
28
28
|
ip: "192.168.33.10",
|
29
|
+
netmask: "255.255.252.0",
|
29
30
|
virtualbox__intnet: "teststatic"
|
30
31
|
config.vm.network "private_network",
|
31
32
|
type: "dhcp",
|
data/lib/vagrant-junos.rb
CHANGED
@@ -10,15 +10,15 @@ module VagrantPlugins
|
|
10
10
|
# This communicates with the BSD shell of Junos,
|
11
11
|
# which matches other Vagrant guest plugin behavior.
|
12
12
|
module GuestJunos
|
13
|
+
# This returns the path to the source of this plugin.
|
14
|
+
#
|
15
|
+
# @return [Pathname]
|
16
|
+
def self.source_root
|
17
|
+
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
18
|
+
end
|
19
|
+
|
13
20
|
lib_path = Pathname.new(File.expand_path('../vagrant-junos', __FILE__))
|
14
21
|
autoload :Action, lib_path.join('action')
|
15
22
|
autoload :Errors, lib_path.join('errors')
|
16
23
|
end
|
17
|
-
|
18
|
-
# This returns the path to the source of this plugin.
|
19
|
-
#
|
20
|
-
# @return [Pathname]
|
21
|
-
def self.source_root
|
22
|
-
@source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
23
|
-
end
|
24
24
|
end
|
@@ -16,7 +16,7 @@ module VagrantPlugins
|
|
16
16
|
# render template, based on Vagrantfile, and upload
|
17
17
|
hostname_module = TemplateRenderer.render('guest/junos/hostname',
|
18
18
|
name: name,
|
19
|
-
template_root: "#{
|
19
|
+
template_root: "#{VagrantPlugins::GuestJunos.source_root}/templates")
|
20
20
|
upload(machine, hostname_module, '/mfs/tmp/set_hostname')
|
21
21
|
|
22
22
|
# set up us the Junos interfaces
|
@@ -19,7 +19,7 @@ module VagrantPlugins
|
|
19
19
|
# render template based on Vagrantfile, and upload
|
20
20
|
network_module = TemplateRenderer.render('guest/junos/network',
|
21
21
|
options: networks,
|
22
|
-
template_root: "#{
|
22
|
+
template_root: "#{VagrantPlugins::GuestJunos.source_root}/templates")
|
23
23
|
upload(machine, network_module, '/mfs/tmp/network')
|
24
24
|
deploy(machine)
|
25
25
|
end
|
@@ -17,7 +17,7 @@ module VagrantPlugins
|
|
17
17
|
# render public key junos conf template, based on Vagrantfile, and upload
|
18
18
|
public_key_module = TemplateRenderer.render('guest/junos/public_key',
|
19
19
|
contents: contents,
|
20
|
-
template_root: "#{
|
20
|
+
template_root: "#{VagrantPlugins::GuestJunos.source_root}/templates")
|
21
21
|
upload(machine, public_key_module, '/mfs/tmp/set_public_key')
|
22
22
|
|
23
23
|
# set up us root's public key
|
@@ -17,7 +17,7 @@ module VagrantPlugins
|
|
17
17
|
# remove vagrant insecure public key (or anything called)
|
18
18
|
public_key_module = TemplateRenderer.render('guest/junos/remove_public_key',
|
19
19
|
contents: contents,
|
20
|
-
template_root: "#{
|
20
|
+
template_root: "#{VagrantPlugins::GuestJunos.source_root}/templates")
|
21
21
|
upload(machine, public_key_module, '/mfs/tmp/delete_public_key')
|
22
22
|
|
23
23
|
# delete a public key for root
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-junos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Deatherage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.4.5.1
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: A Vagrant plugin for Junos guests, e.g. Firefly Perimeter
|