Sha256: b28772e6388e73e2fbc2dafac4c2e3a67d86eeaad18fcdcebf66d7e08adefb97

Contents?: true

Size: 643 Bytes

Versions: 41

Compression:

Stored size: 643 Bytes

Contents

require_relative "../../omnibus"

module VagrantPlugins
  module Chef
    module Cap
      module Redhat
        module ChefInstall
          def self.chef_install(machine, project, version, channel, omnibus_url, options = {})
            machine.communicate.sudo <<-EOH.gsub(/^ {14}/, '')
              if command -v dnf; then
                dnf -y install curl
              else
                yum -y install curl
              fi
            EOH

            command = Omnibus.sh_command(project, version, channel, omnibus_url, options)
            machine.communicate.sudo(command)
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 37 versions & 5 rubygems

Version Path
vagrant-unbundled-1.9.8.1 plugins/provisioners/chef/cap/redhat/chef_install.rb