class Packer::Provisioner::Chef::Solo
Public Class Methods
new()
click to toggle source
Calls superclass method
Packer::Provisioner::new
# File lib/packer/provisioners/chef/solo.rb, line 9 def initialize super self.data['type'] = CHEF_SOLO #self.add_required([]) end
Public Instance Methods
config_template(filename)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 15 def config_template(filename) self.__add_string('config_template', filename) end
cookbook_paths(paths)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 31 def execute_command(command) self.__add_string('execute_command', command) end
install_command(command)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 35 def install_command(command) self.__add_string('install_command', command) end
json(hash)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 39 def json(hash) self.__add_json('json', hash) end
prevent_sudo(bool)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 43 def prevent_sudo(bool) self.__add_boolean('prevent_sudo', bool) end
remote_cookbook_paths(paths)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 47 def remote_cookbook_paths(paths) self.__add_array_of_strings('remote_cookbook_paths', paths) end
roles_path(path)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 51 def roles_path(path) self.__add_string('roles_path', path) end
run_list(runlist)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 55 def run_list(runlist) self.__add_array_of_strings('run_list', runlist) end
skip_install(bool)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 59 def skip_install(bool) self.__add_boolean('skip_install', bool) end
staging_directory(dirname)
click to toggle source
# File lib/packer/provisioners/chef/solo.rb, line 63 def staging_directory(dirname) self.__add_string('staging_directory', dirname) end