Class: Packer::Provisioner::Puppet::Server

Inherits:
Packer::Provisioner::Puppet show all
Defined in:
lib/packer/provisioners/puppet/server.rb

Constant Summary

Constants inherited from Packer::Provisioner

ANSIBLE, CHEF_CLIENT, CHEF_SOLO, FILE, Packer::Provisioner::POWERSHELL, Packer::Provisioner::PUPPET_MASTERLESS, Packer::Provisioner::PUPPET_SERVER, SALT, SHELL, VALID_PROVISIONER_TYPES, WINDOWS_RESTART, WINDOWS_SHELL

Instance Attribute Summary

Attributes inherited from DataObject

#data, #key_dependencies, #required

Instance Method Summary collapse

Methods inherited from Packer::Provisioner

#except, get_provisioner, #only, #override, #pause_before, types

Methods inherited from DataObject

#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_ints, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_json, #__add_string, #__exclusive_key_error, #add_key_dependencies, #add_required, #deep_copy, #validate, #validate_key_dependencies, #validate_required

Constructor Details

#initializeServer

Returns a new instance of Server.



8
9
10
11
# File 'lib/packer/provisioners/puppet/server.rb', line 8

def initialize
  super
  self.data['type'] = PUPPET_SERVER
end

Instance Method Details

#client_cert_path(path) ⇒ Object



13
14
15
# File 'lib/packer/provisioners/puppet/server.rb', line 13

def client_cert_path(path)
  self.__add_string('client_cert_path', path)
end

#client_private_key_path(path) ⇒ Object



17
18
19
# File 'lib/packer/provisioners/puppet/server.rb', line 17

def client_private_key_path(path)
  self.__add_string('client_private_key_path', path)
end

#facter(facts) ⇒ Object



21
22
23
# File 'lib/packer/provisioners/puppet/server.rb', line 21

def facter(facts)
  self.__add_hash('facter', facts)
end

#options(opts) ⇒ Object



25
26
27
# File 'lib/packer/provisioners/puppet/server.rb', line 25

def options(opts)
  self.__add_string('options', opts)
end

#prevent_sudo(flag) ⇒ Object



29
30
31
# File 'lib/packer/provisioners/puppet/server.rb', line 29

def prevent_sudo(flag)
  self.__add_boolean('prevent_sudo', flag)
end

#puppet_node(nodename) ⇒ Object



33
34
35
# File 'lib/packer/provisioners/puppet/server.rb', line 33

def puppet_node(nodename)
  self.__add_string('puppet_node', nodename)
end

#puppet_server(servername) ⇒ Object



37
38
39
# File 'lib/packer/provisioners/puppet/server.rb', line 37

def puppet_server(servername)
  self.__add_string('puppet_server', servername)
end

#staging_directory(dirname) ⇒ Object



41
42
43
# File 'lib/packer/provisioners/puppet/server.rb', line 41

def staging_directory(dirname)
  self.__add_string('staging_directory', dirname)
end