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-2.2.0.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.1.4.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.1.2.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.1.1.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.0.4.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.0.3.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-aws-detiber-0.7.2.pre.4 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-aws-detiber-0.7.2.pre.3 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-aws-detiber-0.7.2.pre.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-419afb4dcffe/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.0.2.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.0.1.0 plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-aws-mkubenka-0.7.2.pre.22 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-f3fdbf414272/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-aws-mkubenka-0.7.2.pre.16 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-1ee58c40e3f5/plugins/provisioners/chef/cap/redhat/chef_install.rb
vagrant-unbundled-2.0.0.1 plugins/provisioners/chef/cap/redhat/chef_install.rb