Sha256: beba0c76f4fd5ee2c6b5c9b4d3264c6a5cfe349e14f4a567a87d32a2d2e99bd5

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 Bytes

Contents

require_relative "../../omnibus"

module VagrantPlugins
  module Chef
    module Cap
      module OmniOS
        module ChefInstall
          def self.chef_install(machine, version, prerelease, download_path)
            su_cmd = machine.config.solaris.suexec_cmd

            machine.communicate.execute("#{su_cmd} pkg list --no-refresh web/curl > /dev/null 2>&1 || pkg install -q --accept web/curl")

            command = VagrantPlugins::Chef::Omnibus.build_command(version, prerelease, download_path)
            machine.communicate.execute(su_cmd + ' ' + command)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/provisioners/chef/cap/omnios/chef_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/provisioners/chef/cap/omnios/chef_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/provisioners/chef/cap/omnios/chef_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/provisioners/chef/cap/omnios/chef_install.rb