Class: Packer::Provisioner::Chef::Solo
Constant Summary
ANSIBLE, Packer::Provisioner::CHEF_CLIENT, Packer::Provisioner::CHEF_SOLO, FILE, PUPPET_MASTERLESS, PUPPET_SERVER, SALT, SHELL, VALID_PROVISIONER_TYPES
Instance Attribute Summary
Attributes inherited from DataObject
#data, #required
Instance Method Summary
collapse
#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_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_string, #__exclusive_key_error, #add_required, #deep_copy, #validate
Constructor Details
#initialize ⇒ Solo
Returns a new instance of Solo.
9
10
11
12
13
|
# File 'lib/packer/provisioners/chef/solo.rb', line 9
def initialize
super
self.data['type'] = CHEF_SOLO
self.add_required([])
end
|
Instance Method Details
#config_template(filename) ⇒ Object
15
16
17
|
# File 'lib/packer/provisioners/chef/solo.rb', line 15
def config_template(filename)
self.__add_string('config_template', filename)
end
|
#cookbook_paths(paths) ⇒ Object
19
20
21
|
# File 'lib/packer/provisioners/chef/solo.rb', line 19
def cookbook_paths(paths)
self.__add_array_of_strings('cookbook_paths', paths)
end
|
#data_bags_path(path) ⇒ Object
23
24
25
|
# File 'lib/packer/provisioners/chef/solo.rb', line 23
def data_bags_path(path)
self.__add_string('data_bags_path', path)
end
|
#encrypted_data_bag_secret_path(path) ⇒ Object
27
28
29
|
# File 'lib/packer/provisioners/chef/solo.rb', line 27
def encrypted_data_bag_secret_path(path)
self.__add_string('encrypted_data_bag_secret_path', path)
end
|
#execute_command(command) ⇒ Object
31
32
33
|
# File 'lib/packer/provisioners/chef/solo.rb', line 31
def execute_command(command)
self.__add_string('execute_command', command)
end
|
#install_command(command) ⇒ Object
35
36
37
|
# File 'lib/packer/provisioners/chef/solo.rb', line 35
def install_command(command)
self.__add_string('install_command', command)
end
|
#prevent_sudo(bool) ⇒ Object
41
42
43
|
# File 'lib/packer/provisioners/chef/solo.rb', line 41
def prevent_sudo(bool)
self.__add_boolean('prevent_sudo', bool)
end
|
#remote_cookbook_paths(paths) ⇒ Object
45
46
47
|
# File 'lib/packer/provisioners/chef/solo.rb', line 45
def remote_cookbook_paths(paths)
self.__add_array_of_strings('remote_cookbook_paths', paths)
end
|
#roles_path(path) ⇒ Object
49
50
51
|
# File 'lib/packer/provisioners/chef/solo.rb', line 49
def roles_path(path)
self.__add_string('roles_path', path)
end
|
#run_list(runlist) ⇒ Object
53
54
55
|
# File 'lib/packer/provisioners/chef/solo.rb', line 53
def run_list(runlist)
self.__add_array_of_strings('run_list', runlist)
end
|
#skip_install(bool) ⇒ Object
57
58
59
|
# File 'lib/packer/provisioners/chef/solo.rb', line 57
def skip_install(bool)
self.__add_boolean('skip_install', bool)
end
|
#staging_directory(dirname) ⇒ Object
61
62
63
|
# File 'lib/packer/provisioners/chef/solo.rb', line 61
def staging_directory(dirname)
self.__add_string('staging_directory', dirname)
end
|