Sha256: 7a253cfeefde9547cd38578741398236a8e7efa7669a69588ab5a3d3256a7e3f

Contents?: true

Size: 1.86 KB

Versions: 13

Compression:

Stored size: 1.86 KB

Contents

<%= form_for provisioner do |f| %>
  <%= base_errors_for provisioner %>
  <%= provisioner_wizard 1 %>

  <p>
    <%= _("This wizard will help set up Foreman for full host provisioning.  Before we begin, a few requirements will be verified.") %>
  </p>

  <h4><%= _("Pre-requisites") %></h4>
  <div>
    <%= f.hidden_field :host_id %>
    <% if f.object.host.present? %>
      <%= checked_icon f.object.host.present? %> <%= _("Found registered host %s") % f.object.host.name %>
    <% else %>
      <%= image_tag 'false.png' %> <%= _("Missing registered host %s, please ensure it is checking in") % f.object.fqdn %>
    <% end %>
  </div>
  <div>
    <%= f.hidden_field :smart_proxy_id %>
    <% if f.object.smart_proxy.present? %>
      <%= checked_icon f.object.smart_proxy.present? %> <%= _("Found registered smart proxy %s") % f.object.smart_proxy.name %>
    <% else %>
      <%= image_tag 'false.png' %> <%= _("Missing registered smart proxy %s, please ensure it is registered") % f.object.fqdn %>
    <% end %>
  </div>
  <div>
    <% if f.object.host.present? && f.object.interfaces.any? %>
      <%= checked_icon f.object.host.present? %> <%= _("Host %s has at least one network interface") % f.object.host.name %>
    <% else %>
      <%= image_tag 'false.png' %> <%= _("No network interfaces listed in $interfaces fact") %>
    <% end %>
  </div>

  <h4><%= _("Network selection") %></h4>
  <div>
    <% if f.object.host.present? && f.object.interfaces.any? %>
      <%= selectable_f f, :provision_interface, f.object.interfaces.map { |i| ["#{i[1][:cidr]} (#{i[0]})", i[0]] }, {}, :label => _("Provisioning network") %>
    <% else %>
      <%= _("Not available until pre-requisites satisified.") %>
    <% end %>
  </div>

  <%= submit_or_cancel f, false, {:cancel_path => foreman_setup_provisioners_path, :disabled => !(f.object.host.present? && f.object.smart_proxy.present?)} %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreman_setup-3.0.0 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.1.1 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.1.0 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.0.4 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.0.3 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.0.2 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.0.1 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-2.0.0 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-1.0.4 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-1.0.3 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-1.0.2 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-1.0.1 app/views/foreman_setup/provisioners/_step1.html.erb
foreman_setup-1.0.0 app/views/foreman_setup/provisioners/_step1.html.erb