vagrant-guest-omnios 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ vagrant-guest-omnios
2
+ ========================
3
+
4
+ A Vagrant 1.2.x plugin to provide support for the OmniOS operating system.
5
+
6
+ This code is an unaltered fork of the omnios plugin by mitchellh at
7
+ https://github.com/mitchellh/vagrant/blob/master/plugins/guests/omnios/plugin.rb on June 24, 2013 at 4d26f01b7bc586ee2f558c8c32b9c1e4fe65713b .
8
+
9
+ See LICENSE.
@@ -0,0 +1 @@
1
+ require_relative 'vagrant-guest-omnios/plugin'
@@ -0,0 +1,17 @@
1
+ module VagrantPlugins
2
+ module GuestOmniOS
3
+ module Cap
4
+ class ChangeHostName
5
+ def self.change_host_name(machine, name)
6
+ su_cmd = machine.config.solaris.suexec_cmd
7
+
8
+ # Only do this if the hostname is not already set
9
+ if !machine.communicate.test("#{su_cmd} hostname | grep '#{name}'")
10
+ machine.communicate.execute("#{su_cmd} sh -c \"echo '#{name}' > /etc/nodename\"")
11
+ machine.communicate.execute("#{su_cmd} hostname #{name}")
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,11 @@
1
+ require "vagrant"
2
+
3
+ module VagrantPlugins
4
+ module GuestOmniOS
5
+ class Guest < Vagrant.plugin("2", :guest)
6
+ def detect?(machine)
7
+ machine.communicate.test("cat /etc/release | grep -i OmniOS")
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,20 @@
1
+ require "vagrant"
2
+
3
+ module VagrantPlugins
4
+ module GuestOmniOS
5
+ class Plugin < Vagrant.plugin("2")
6
+ name "OmniOS guest."
7
+ description "OmniOS guest support."
8
+
9
+ guest("omnios", "solaris") do
10
+ require File.expand_path("../guest", __FILE__)
11
+ Guest
12
+ end
13
+
14
+ guest_capability("omnios", "change_host_name") do
15
+ require_relative "cap/change_host_name"
16
+ Cap::ChangeHostName
17
+ end
18
+ end
19
+ end
20
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-guest-omnios
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mitchell Hashimoto
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Vagrant 1.2x plugin to provide guest support for omnios (interim prior
15
+ to core support), yep.
16
+ email: info@hashicorp.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - lib/vagrant-guest-omnios.rb
23
+ - lib/vagrant-guest-omnios/guest.rb
24
+ - lib/vagrant-guest-omnios/cap/change_host_name.rb
25
+ - lib/vagrant-guest-omnios/plugin.rb
26
+ homepage: http://github.com/clintoncwolfe/vagrant-guest-omnios
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project: vagrant-guest-omnios
46
+ rubygems_version: 1.8.24
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: Vagrant 1.2x plugin to provide guest support for omnios (interim prior to
50
+ core support)
51
+ test_files: []