Module: VagrantPlugins::PuppetInstall::Action

Includes:
Vagrant::Action::Builtin
Defined in:
lib/vagrant-puppet-install/action.rb,
lib/vagrant-puppet-install/action/install_puppet.rb,
lib/vagrant-puppet-install/action/read_puppet_version.rb,
lib/vagrant-puppet-install/action/is_running_or_active.rb

Defined Under Namespace

Classes: InstallPuppet, IsRunningOrActive, ReadPuppetVersion

Class Method Summary collapse

Class Method Details

.install_puppet::Vagrant::Action::Builder

Returns:

  • (::Vagrant::Action::Builder)


31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/vagrant-puppet-install/action.rb', line 31

def self.install_puppet
  @install_puppet ||= ::Vagrant::Action::Builder.new.tap do |b|
    b.use ConfigValidate
    b.use Call, IsRunningOrActive do |env1, b2|
      if env1[:result]
        b2.use ReadPuppetVersion
        b2.use InstallPuppet
        b2.use SSHRun
      end
    end
  end
end