2021-04-07 17:23:48 +02:00
|
|
|
<h1>Virtual Machines</h1>
|
|
|
|
|
2021-04-09 11:36:33 +02:00
|
|
|
<p>This page list all the Virtual Machines linked to your account. Note that
|
|
|
|
SSH keys are not (yet) synced with OpenNebula: you'll have to add your key in
|
|
|
|
<i><%= @current_user.username %> (top-right) > Settings > Add SSH Key</i> in
|
|
|
|
OpenNebula for every location you want to use.</p>
|
2021-04-07 17:23:48 +02:00
|
|
|
|
2021-04-09 11:36:33 +02:00
|
|
|
<%= for location <- Map.keys(@vms) do %>
|
2021-04-07 17:23:48 +02:00
|
|
|
<h2>Location: <%= location %></h2>
|
|
|
|
|
2021-04-09 11:36:33 +02:00
|
|
|
<p>
|
|
|
|
You can access the OpenNebula dashboard with your LDAP credentials at:
|
|
|
|
<a href="<%= Map.get(ONE.get_location_config(location), :public_address) %>">
|
|
|
|
<%= Map.get(ONE.get_location_config(location), :public_address) %>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
2021-04-07 17:23:48 +02:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-04-09 11:36:33 +02:00
|
|
|
<th style="width: 15%;">ID</th>
|
|
|
|
<th style="width: 40%;">Name</th>
|
|
|
|
<th style="width: 30%;">State</th>
|
|
|
|
<th style="width: 15%">Actions</th>
|
2021-04-07 17:23:48 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-04-09 11:36:33 +02:00
|
|
|
<%= for vm <- Map.get(@vms, location) do %>
|
2021-04-07 17:23:48 +02:00
|
|
|
<tr>
|
2021-04-09 11:36:33 +02:00
|
|
|
<td><%= location %>#<%= Map.get(vm, :ID) %></td>
|
2021-04-07 17:23:48 +02:00
|
|
|
<td><%= Map.get(vm, :NAME) %></td>
|
2021-04-09 11:36:33 +02:00
|
|
|
<td><%= render_state(vm) %></td>
|
2021-04-07 17:23:48 +02:00
|
|
|
<td>
|
2021-04-12 15:53:49 +02:00
|
|
|
<%= link "Show history »", to: Routes.virtual_machine_path(@conn, :show, location, Map.get(vm, :ID)) %>
|
2021-04-07 17:23:48 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<% end %>
|