Class: ConfigBuilder::Model::Provisioner::PuppetServer

Inherits:
Base
  • Object
show all
Defined in:
lib/config_builder/model/provisioner/puppet_server.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#attrs=, #call, def_model_attribute, model_attributes, new_from_hash

Instance Attribute Details

#node_nameString

Returns:

  • (String)


10
11
12
# File 'lib/config_builder/model/provisioner/puppet_server.rb', line 10

def node_name
  @node_name
end

#optionsString

Returns:

  • (String)


14
15
16
# File 'lib/config_builder/model/provisioner/puppet_server.rb', line 14

def options
  @options
end

#puppet_serverString

Returns:

  • (String)


6
7
8
# File 'lib/config_builder/model/provisioner/puppet_server.rb', line 6

def puppet_server
  @puppet_server
end

Instance Method Details

#to_procObject



16
17
18
19
20
21
22
23
24
# File 'lib/config_builder/model/provisioner/puppet_server.rb', line 16

def to_proc
  Proc.new do |vm_config|
    vm_config.provision :puppet_server do |puppet_config|
      with_attr(:puppet_server) { |val| puppet_config.puppet_server = val }
      with_attr(:node_name)     { |val| puppet_config.node_name     = val }
      with_attr(:options)       { |val| puppet_config.options       = val }
    end
  end
end