2015-01-13 22:45:01 +00:00
|
|
|
require_relative "../../omnibus"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Chef
|
|
|
|
module Cap
|
|
|
|
module OmniOS
|
|
|
|
module ChefInstall
|
2017-06-14 10:34:52 +00:00
|
|
|
def self.chef_install(machine, project, version, channel, omnibus_url, options = {})
|
2015-11-19 22:57:01 +00:00
|
|
|
su = machine.config.solaris.suexec_cmd
|
2015-01-13 22:45:01 +00:00
|
|
|
|
2015-11-19 22:57:01 +00:00
|
|
|
machine.communicate.execute("#{su} pkg list --no-refresh web/curl > /dev/null 2>&1 || pkg install -q --accept web/curl")
|
2015-01-13 22:45:01 +00:00
|
|
|
|
2017-06-14 10:34:52 +00:00
|
|
|
command = Omnibus.sh_command(project, version, channel, omnibus_url, options)
|
2015-11-19 22:57:01 +00:00
|
|
|
machine.communicate.execute("#{su} #{command}")
|
2015-01-13 22:45:01 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|