Revision c81ea296
Added by Karim Boumedhel about 9 years ago
app/models/compute_resources/foreman/model/vmware.rb | ||
---|---|---|
ComputeResource.model_name
|
||
end
|
||
|
||
def user_data_supported?
|
||
true
|
||
end
|
||
|
||
def capabilities
|
||
[:build, :image]
|
||
end
|
app/views/images/form/_vmware.html.erb | ||
---|---|---|
<%= text_f f, :username, :value => @image.username || "root", :help_inline => _("The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, root etc") %>
|
||
<%= checkbox_f f, :user_data, :help_inline => _("Does this image support user data input (e.g. via cloud-init)?") %>
|
||
<%= password_f f, :password, :help_inline => _("Password to authenticate with - used for SSH finish step.") %>
|
||
<%= image_field(f, :label => _("Image path"), :help_inline => _("Path to template, relative to datacenter (e.g. My templates/RHEL 6)")) %>
|
Also available in: Unified diff
Fixes #8601 - Cloudinit userdata in VMware
(cherry picked from commit 5b1f7529284e9e62d9f8f08977b543d4a7b93f21)