Sha256: 307650c07b96d5620bfe96976a8e61878eb25dcabf469e97a1ec868a3961d60b

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 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

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/provisioners/chef/cap/omnios/chef_install.rb