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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e7491b0c4b2992dae7ade5f077601a535d1f6cc
4
- data.tar.gz: 725e456d10915f66b61e001498f17e2eba9d35c2
3
+ metadata.gz: 97245a178061a0a5f47c97221bc6dd77d9efd98d
4
+ data.tar.gz: cefca355df1a52e3739c2504d6268946030ae9d8
5
5
  SHA512:
6
- metadata.gz: f90b4f48a7edf6da19389c5597b4dbe9287ff4da25ed4fa45524871630ed52e13ff6d7cae14f909b40388e47f914d25368989fe1b97150076c183f88102b3858
7
- data.tar.gz: cffa40c55024ccb1caeac2260f4866e2458ca1a3346b5e7e43cbc967edd6b8292581ea17216047c6bedb0568b15666943415945c19cc0a0a9937bd2d5af744b3
6
+ metadata.gz: 38df028c26933c086215df8f489d637a96b60748f361937f730996a9e02958a2d98f243c1471267b6ff7683069f301f4cf4888b96eee9c2e2c12e407fc84da65
7
+ data.tar.gz: 8e0c2965c9062d8a27a632f4485c89186bdbcc8fe539649782a78c66d5297893dad0dbf0c4b5a001669792231849455db8f77aa5a578f943f8a3fd6055dc1e6d
@@ -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",
@@ -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: "#{Dir.home}/.vagrant.d/gems/gems/vagrant-junos-#{VagrantPlugins::GuestJunos::VERSION}/templates")
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: "#{Dir.home}/.vagrant.d/gems/gems/vagrant-junos-#{VagrantPlugins::GuestJunos::VERSION}/templates")
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: "#{Dir.home}/.vagrant.d/gems/gems/vagrant-junos-#{VagrantPlugins::GuestJunos::VERSION}/templates")
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: "#{Dir.home}/.vagrant.d/gems/gems/vagrant-junos-#{VagrantPlugins::GuestJunos::VERSION}/templates")
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
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  # Junos guest gem + plugin version
3
3
  module GuestJunos
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
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.0
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-03-25 00:00:00.000000000 Z
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.2.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