Sha256: 07738a2bbfc22d68ad0037743ed74f7226ae8782f92a47e3e30b3de789c17c49

Contents?: true

Size: 1.81 KB

Versions: 55

Compression:

Stored size: 1.81 KB

Contents

<% template_invocations = job_invocation.pattern_template_invocations %>
<div class="card-pf card-pf-accented target-hosts-card">
  <div class="card-pf-title">
    <h2 style="height: 18px;" class="card-pf-title">
      <%= _('Target hosts') %>
    </h2>
  </div>
  <div class="card-pf-body">
    <p>
    <% if job_invocation.bookmark.present? %>
      <%= _('Bookmark') %> <%= job_invocation.bookmark.name %><br>
    <% else %>
      <%= _('Manual selection') %>
    <% end %>
    <%= _('using ') %>
    <strong><%= _(Targeting::TYPES[job_invocation.targeting.targeting_type]).downcase %></strong>
    <pre><%= job_invocation.targeting.search_query %></pre>
    </p>
    <p>
      <% key = job_invocation.targeting.randomized_ordering ? Targeting::RANDOMIZED : Targeting::ORDERED %>
      <%= _('Execution order') %>: <strong><%= Targeting::ORDERINGS[key].downcase %></strong>
    </p>
    <p>
      <%= _('Organization') %>:
      <strong>
        <%= show_job_organization(@job_organization) %>
      </strong>
    </p>
    <p>
      <%= _('Location') %>:
      <strong>
        <%= show_job_location(@job_location) %>
      </strong>
    </p>
    <% if job_invocation[:ssh_user] %>
      <p>
        <%= _('SSH User') %>:
        <strong>
          <%= job_invocation[:ssh_user] %>
        </strong>
      </p>
    <% end %>
  </div>
  <div class='card-pf-footer'>
    <p>
    <%= _('Evaluated at:') %> <%= job_invocation.targeting.resolved_at %><br>
    <% if template_invocations.size > 1 %>
      <% template_invocations.each do |template_invocation| %>
        <%= host_counter template_invocation.template.provider.humanized_name,
          ForemanTasks::Task::DynflowTask.
          for_action(Actions::RemoteExecution::RunHostJob).
          for_resource(template_invocation).uniq.size %>
      <% end %>
    <% end %>
    </p>
  </div>
</div>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.2 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-14.1.1 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-14.1.0 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-14.0.2 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-14.0.1 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.6 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-14.0.0 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.5 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.4 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.3 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.2 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-12.0.7 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.1 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.2.0 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-10.1.3 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-13.0.0 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-12.0.5 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-12.0.4 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-12.0.1 app/views/job_invocations/_card_target_hosts.html.erb
foreman_remote_execution-12.0.2 app/views/job_invocations/_card_target_hosts.html.erb