2014-10-31 20:06:05 +00:00
|
|
|
require_relative "../../omnibus"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module Chef
|
|
|
|
module Cap
|
|
|
|
module Debian
|
|
|
|
module ChefInstall
|
2017-06-14 10:34:52 +00:00
|
|
|
def self.chef_install(machine, project, version, channel, omnibus_url, options = {})
|
2014-10-31 20:06:05 +00:00
|
|
|
machine.communicate.sudo("apt-get update -y -qq")
|
|
|
|
machine.communicate.sudo("apt-get install -y -qq curl")
|
|
|
|
|
2017-06-14 10:34:52 +00:00
|
|
|
command = Omnibus.sh_command(project, version, channel, omnibus_url, options)
|
2014-10-31 20:06:05 +00:00
|
|
|
machine.communicate.sudo(command)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|