Skip to content

Commit

Permalink
Fixes #8601 - Cloudinit userdata in VMware
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab authored and dLobatog committed Mar 24, 2015
1 parent 7691ab4 commit 5b1f752
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/compute_resources/foreman/model/vmware.rb
Expand Up @@ -12,6 +12,10 @@ def self.model_name
ComputeResource.model_name
end

def user_data_supported?
true
end

def capabilities
[:build, :image]
end
Expand Down
1 change: 1 addition & 0 deletions app/views/images/form/_vmware.html.erb
@@ -1,3 +1,4 @@
<%= 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)")) %>

0 comments on commit 5b1f752

Please sign in to comment.