Sha256: 21123054d12ef88e07990effb6702bd808bc7d36a5656eb3ef5cc556fdcd18fa

Contents?: true

Size: 1.93 KB

Versions: 18

Compression:

Stored size: 1.93 KB

Contents

require "vagrant"

module VagrantPlugins
  module DockerProvisioner
    class Plugin < Vagrant.plugin("2")
      name "docker"
      description <<-DESC
      Provides support for provisioning your virtual machines with
      Docker images and containers.
      DESC

      config(:docker, :provisioner) do
        require_relative "config"
        Config
      end

      guest_capability("debian", "docker_install") do
        require_relative "cap/debian/docker_install"
        Cap::Debian::DockerInstall
      end

      guest_capability("debian", "docker_start_service") do
        require_relative "cap/debian/docker_start_service"
        Cap::Debian::DockerStartService
      end

      guest_capability("fedora", "docker_install") do
        require_relative "cap/fedora/docker_install"
        Cap::Fedora::DockerInstall
      end

      guest_capability("redhat", "docker_install") do
        require_relative "cap/redhat/docker_install"
        Cap::Redhat::DockerInstall
      end

      guest_capability("redhat", "docker_start_service") do
        require_relative "cap/redhat/docker_start_service"
        Cap::Redhat::DockerStartService
      end

      guest_capability("linux", "docker_installed") do
        require_relative "cap/linux/docker_installed"
        Cap::Linux::DockerInstalled
      end

      guest_capability("linux", "docker_configure_vagrant_user") do
        require_relative "cap/linux/docker_configure_vagrant_user"
        Cap::Linux::DockerConfigureVagrantUser
      end

      guest_capability("linux", "docker_daemon_running") do
        require_relative "cap/linux/docker_daemon_running"
        Cap::Linux::DockerDaemonRunning
      end

      guest_capability("windows", "docker_daemon_running") do
        require_relative "cap/windows/docker_daemon_running"
        Cap::Windows::DockerDaemonRunning
      end

      provisioner(:docker) do
        require_relative "provisioner"
        Provisioner
      end
    end
  end
end

Version data entries

18 entries across 14 versions & 2 rubygems

Version Path
vagrant-unbundled-2.2.7.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.6.2 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.6.1 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.6.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.5.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.4.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.3.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.2.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.2.0.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.1.4.0 plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.1.2.0 plugins/provisioners/docker/plugin.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/docker/plugin.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/docker/plugin.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/docker/plugin.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/docker/plugin.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/docker/plugin.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/provisioners/docker/plugin.rb
vagrant-unbundled-2.1.1.0 plugins/provisioners/docker/plugin.rb