Sha256: 81f9e330de4e0c08591443c133fd0747cecbf7c46ff26351ceeccf354e8ed49c

Contents?: true

Size: 655 Bytes

Versions: 11

Compression:

Stored size: 655 Bytes

Contents

module VagrantPlugins
  module CFEngine
    module Cap
      module Debian
        module CFEngineInstall
          def self.cfengine_install(machine, config)
            machine.communicate.tap do |comm|
              comm.sudo("mkdir -p #{File.dirname(config.deb_repo_file)} && /bin/echo #{config.deb_repo_line} > #{config.deb_repo_file}")
              comm.sudo("GPGFILE=`tempfile`; wget -O $GPGFILE #{config.repo_gpg_key_url} && apt-key add $GPGFILE; rm -f $GPGFILE")

              comm.sudo("apt-get update")
              comm.sudo("apt-get install -y #{config.package_name}")
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 8 versions & 4 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/bundler/gems/vagrant-1e28f1ac31e7/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tnargav-1.3.6 plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tnargav-1.3.3 plugins/provisioners/cfengine/cap/debian/cfengine_install.rb