Class: Packer::Provisioner::Puppet::Masterless

Inherits:
Packer::Provisioner::Puppet show all
Defined in:
lib/packer/provisioners/puppet/masterless.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

#initializeMasterless

Returns a new instance of Masterless.



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

def initialize
  super
  self.data['type'] = PUPPET_MASTERLESS
  self.add_required(['manifest_file'])
end

Instance Method Details

#execute_command(command) ⇒ Object



18
19
20
# File 'lib/packer/provisioners/puppet/masterless.rb', line 18

def execute_command(command)
  self.__add_string('execute_command', command)
end

#facter(facts) ⇒ Object



22
23
24
# File 'lib/packer/provisioners/puppet/masterless.rb', line 22

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

#hiera_config_path(path) ⇒ Object



26
27
28
# File 'lib/packer/provisioners/puppet/masterless.rb', line 26

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

#manifest_dir(path) ⇒ Object



30
31
32
# File 'lib/packer/provisioners/puppet/masterless.rb', line 30

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

#manifest_file(filename) ⇒ Object



14
15
16
# File 'lib/packer/provisioners/puppet/masterless.rb', line 14

def manifest_file(filename)
  self.__add_string('manifest_file', filename)
end

#module_paths(paths) ⇒ Object



34
35
36
# File 'lib/packer/provisioners/puppet/masterless.rb', line 34

def module_paths(paths)
  self.__add_array_of_strings('module_paths',paths)
end

#prevent_sudo(flag) ⇒ Object



38
39
40
# File 'lib/packer/provisioners/puppet/masterless.rb', line 38

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

#staging_directory(dirname) ⇒ Object



42
43
44
# File 'lib/packer/provisioners/puppet/masterless.rb', line 42

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