Sha256: 18a7013b929e3202e3a6dabd0ade10fdeb7939ab79e68604f428b88effcaca9a

Contents?: true

Size: 1.33 KB

Versions: 12

Compression:

Stored size: 1.33 KB

Contents

# @see http://docs.vagrantup.com/v2/provisioning/puppet_apply.html
class ConfigBuilder::Model::Provisioner::Puppet < ConfigBuilder::Model::Base

  # @!attribute [rw] manifests_path
  #   @return [String] The path to the puppet manifests.
  attr_accessor :manifests_path

  # @!attribute [rw] manifest_file
  #   @return [String] The name of the manifest to apply
  attr_accessor :manifest_file

  # @!attribute [rw] module_path
  #   @return [String] A colon separated set of filesystem paths for Puppet
  attr_accessor :module_path

  # @!attribute [rw] facter
  #   @return [Hash] A hash of values to use as facts
  attr_accessor :facter

  # @!attribute [rw] options
  #   @return [String] An arbitrary set of arguments for the `puppet` command
  attr_accessor :options

  def to_proc
    Proc.new do |vm_config|
      vm_config.provision :puppet do |puppet_config|
        with_attr(:manifests_path) { |val| puppet_config.manifests_path = val }
        with_attr(:manifest_file)  { |val| puppet_config.manifest_file  = val }
        with_attr(:module_path)    { |val| puppet_config.module_path    = val }
        with_attr(:facter)         { |val| puppet_config.facter         = val }
        with_attr(:options)        { |val| puppet_config.options        = val }
      end
    end
  end

  ConfigBuilder::Model::Provisioner.register('puppet', self)
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
vagrant-config_builder-0.14.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.13.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-masonry-0.13.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.12.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.11.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.10.1 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.10.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.9.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.8.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.7.1 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.7.0 lib/config_builder/model/provisioner/puppet.rb
vagrant-config_builder-0.6.0 lib/config_builder/model/provisioner/puppet.rb