Class: Packer::Builder::Amazon::Instance
Constant Summary
Packer::Builder::AMAZON_EBS, Packer::Builder::AMAZON_INSTANCE, DOCKER, NULL, VALID_BUILDER_TYPES, VIRTUALBOX_ISO, VMWARE_ISO, VMWARE_VMX
Instance Attribute Summary
#communicators
Attributes inherited from DataObject
#data, #key_dependencies, #required
Instance Method Summary
collapse
#access_key, #ami_block_device_mappings, #ami_description, #ami_groups, #ami_name, #ami_product_codes, #ami_regions, #ami_users, #ami_virtualization_type, #associate_public_ip_address, #availability_zone, #enhanced_networking, #iam_instance_profile, #instance_type, #launch_block_device_mappings, #region, #run_tags, #secret_key, #security_group_id, #security_group_ids, #source_ami, #subnet_id, #tags, #temporary_key_pair_name, #user_data, #user_data_file, #vpc_id
#communicator, get_builder, #name, #ssh_bastion_host, #ssh_bastion_password, #ssh_bastion_private_key_file, #ssh_bastion_username, #ssh_disable_agent, #ssh_handshake_attempts, #ssh_host, #ssh_password, #ssh_port, #ssh_private_key_file, #ssh_pty, #ssh_timeout, #ssh_username, types, #winrm_host, #winrm_password, #winrm_port, #winrm_timeout, #winrm_username
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
Returns a new instance of Instance.
136
137
138
139
140
141
142
143
144
145
|
# File 'lib/packer/builders/amazon.rb', line 136
def initialize
super
self.data['type'] = AMAZON_INSTANCE
self.add_required(
'account_id',
's3_bucket',
'x509_cert_path',
'x509_key_path'
)
end
|
Instance Method Details
#account_id(id) ⇒ Object
147
148
149
|
# File 'lib/packer/builders/amazon.rb', line 147
def account_id(id)
self.__add_string('account_id', id)
end
|
#bundle_destination(directory) ⇒ Object
163
164
165
|
# File 'lib/packer/builders/amazon.rb', line 163
def bundle_destination(directory)
self.__add_string('bundle_destination', directory)
end
|
#bundle_prefix(prefix) ⇒ Object
167
168
169
|
# File 'lib/packer/builders/amazon.rb', line 167
def bundle_prefix(prefix)
self.__add_string('bundle_prefix', prefix)
end
|
#bundle_upload_command(command) ⇒ Object
171
172
173
|
# File 'lib/packer/builders/amazon.rb', line 171
def bundle_upload_command(command)
self.__add_string('bundle_upload_command', command)
end
|
#bundle_vol_command(command) ⇒ Object
175
176
177
|
# File 'lib/packer/builders/amazon.rb', line 175
def bundle_vol_command(command)
self.__add_string('bundle_vol_command', command)
end
|
#s3_bucket(bucket) ⇒ Object
151
152
153
|
# File 'lib/packer/builders/amazon.rb', line 151
def s3_bucket(bucket)
self.__add_string('s3_bucket', bucket)
end
|
#x509_cert_path(path) ⇒ Object
155
156
157
|
# File 'lib/packer/builders/amazon.rb', line 155
def x509_cert_path(path)
self.__add_string('x509_cert_path', path)
end
|
#x509_key_path(path) ⇒ Object
159
160
161
|
# File 'lib/packer/builders/amazon.rb', line 159
def x509_key_path(path)
self.__add_string('x509_key_path', path)
end
|
#x509_upload_path(path) ⇒ Object
179
180
181
|
# File 'lib/packer/builders/amazon.rb', line 179
def x509_upload_path(path)
self.__add_string('x509_upload_path', path)
end
|