foreman_fog_proxmox 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f41380ca48818adb7aeff9b8d59eccf6bc371687abbc93983bba2d4c261cbfe
4
- data.tar.gz: 8ed09647f083281199e8245e1660e11f92642e0ae91432e3a2cd1d37d32a9e8f
3
+ metadata.gz: 75626a2ceb3ba5b72a8938a76f9bd50ad1d337565d5eb8c9253bb76bf90b7f8f
4
+ data.tar.gz: d06eeccaa0e89c3e34d73d9558a80f65fadcc3f6188c7db71228debbaf223984
5
5
  SHA512:
6
- metadata.gz: 7197010a2fc99a9ce5e8fae7688220e21cba65dd144b2335bb19867ba4eb9da2bec2312bc6d58c637cf696c04b0c2ba35b3badbd5a137ecb49dc77787cfad303
7
- data.tar.gz: e75a5f8eab3219fb8d3de3a4ad5040a0f404ed39ffe3956a481d9525ca81d3bb1ee173ac2a2de630a3006ad4e6319c76d19b0df1aeea57d03a12e3ca8443695b
6
+ metadata.gz: a93fee7915341da532c5572b40bb6f5eec03e6a3f2e9b7d6ae66ae50b89b7ae65f8806ee036a351885cd2175ba276f563e7905a5cf029200500a0b1bf97258a4
7
+ data.tar.gz: 96ccb17ba381f892e8c0633c9e55a773ccc7c0857be36aac42e2ce4ea0a1ba5b19c383a0a3b8e32d358ac38af3c0647e16486774dd774dd666ee9e3d9ea871ff
data/README.md CHANGED
@@ -86,7 +86,7 @@ Then you can check plugin installation after login into your new foreman server
86
86
 
87
87
  ### From OS packages
88
88
 
89
- Deb, rpm: work in progress...
89
+ [Deb](https://github.com/theforeman/foreman-packaging/pull/3071), [rpm](https://github.com/theforeman/foreman-packaging/pull/3069): work in progress...
90
90
 
91
91
  Please see the Foreman manual for complete instructions:
92
92
 
@@ -21,4 +21,13 @@ Deface::Override.new(
21
21
  :replace => "erb[silent]:contains('new_vm = @host.nil? || new_vm?(@host)')",
22
22
  :text => "<% new_vm = @host.nil? || new_vm?(@host) || @host.name.nil? %>",
23
23
  :original => "<% new_vm = @host.nil? || new_vm?(@host) %>"
24
+ )
25
+
26
+
27
+ Deface::Override.new(
28
+ :virtual_path => "hosts/_compute_detail",
29
+ :name => "add_from_profile_to_compute_detail",
30
+ :replace => "erb[loud]:contains('provider_partial')",
31
+ :partial => "compute_resources_vms/form/proxmox/add_from_profile_to_hosts_compute_detail_form",
32
+ :original => '448e3b265e4dc1789f0efbbc6076e32216ac3a24'
24
33
  )
@@ -0,0 +1,32 @@
1
+ # Copyright 2018 Tristan Robert
2
+
3
+ # This file is part of ForemanFogProxmox.
4
+
5
+ # ForemanFogProxmox is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+
10
+ # ForemanFogProxmox is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ Deface::Override.new(
19
+ :virtual_path => "compute_attributes/_form",
20
+ :name => "add_from_profile_to_compute_attributes_form",
21
+ :replace => "erb[loud]:contains('render')",
22
+ :partial => "compute_resources_vms/form/proxmox/add_from_profile_to_compute_attributes_form",
23
+ :original => '0e01b2f93b6855afc207e0e301515cdd300a1c61'
24
+ )
25
+
26
+ Deface::Override.new(
27
+ :virtual_path => "compute_attributes/_compute_form",
28
+ :name => "add_from_profile_to_compute_form",
29
+ :replace => "erb[loud]:contains('provider_partial')",
30
+ :partial => "compute_resources_vms/form/proxmox/add_from_profile_to_compute_form",
31
+ :original => '107f930f8e6b2bdd3e728757d8320d483f19ff9e'
32
+ )
@@ -0,0 +1,18 @@
1
+ <%# Copyright 2018 Tristan Robert
2
+
3
+ This file is part of ForemanFogProxmox.
4
+
5
+ ForemanFogProxmox is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ ForemanFogProxmox is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
17
+ <%= render :partial => "compute_form",
18
+ :locals => { :f => f2, :compute_resource => @set.compute_resource, :selected_cluster => @set.vm_attrs['cluster'], :from_profile => true } %>
@@ -0,0 +1,18 @@
1
+ <%# Copyright 2018 Tristan Robert
2
+
3
+ This file is part of ForemanFogProxmox.
4
+
5
+ ForemanFogProxmox is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ ForemanFogProxmox is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
17
+ <%= render :partial => provider_partial(compute_resource, 'base'),
18
+ :locals => { :f => f, :compute_resource => compute_resource, :new_host => true, :new_vm => true, :hide_image => true, :from_profile => from_profile }.merge(args_for_compute_resource_partial(@host)) %>
@@ -0,0 +1,18 @@
1
+ <%# Copyright 2018 Tristan Robert
2
+
3
+ This file is part of ForemanFogProxmox.
4
+
5
+ ForemanFogProxmox is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ ForemanFogProxmox is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
17
+ <%= render :partial => provider_partial(compute_resource, 'base'),
18
+ :locals => { :f => f, :compute_resource => compute_resource, :new_host => new_vm, :new_vm => new_vm, :from_profile => false }.merge(args_for_compute_resource_partial(@host)) %>
@@ -21,7 +21,7 @@ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
21
21
  <%= select_f f, :type, proxmox_types_map, :id, :name, { }, :label => _('Type'), :label_size => "col-md-2", :onchange => "vmTypeSelected()", :disabled => !new_vm %>
22
22
 
23
23
  <!-- VM General Settings -->
24
- <%= render :partial => "compute_resources_vms/form/proxmox/general", :locals => { :f => f, :compute_resource => compute_resource, :new_vm => new_vm } %>
24
+ <%= render :partial => "compute_resources_vms/form/proxmox/general", :locals => { :f => f, :compute_resource => compute_resource, :new_vm => new_vm, :from_profile => from_profile } %>
25
25
 
26
26
  <!-- VM Extended Settings -->
27
27
  <%= render :partial => "compute_resources_vms/form/proxmox/container/extended", :locals => { :f => f, :compute_resource => compute_resource, :new_vm => new_vm } %>
@@ -19,7 +19,7 @@ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
19
19
 
20
20
  <%= field_set_tag _("General"), :id => "general" do %>
21
21
  <%= checkbox_f f, :templated, :label => _('Create image?'), :disabled => untemplatable, :class => ('hide' if untemplatable), :no_label => untemplatable %>
22
- <%= counter_f f, :vmid, :label => _('VM ID'), :label_size => "col-md-2", :required => true, :disabled => !new_vm %>
22
+ <%= counter_f f, :vmid, :label => _('VM ID'), :label_size => "col-md-2", :required => true, :disabled => (!new_vm || from_profile) %>
23
23
  <%= select_f f, :node, compute_resource.nodes, :node, :node, { }, :label => _('Node'), :label_size => "col-md-2", :required => true, :disabled => true %>
24
24
  <% unless local_assigns[:hide_image] && !new_vm %>
25
25
  <%
@@ -18,5 +18,5 @@
18
18
  # along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module ForemanFogProxmox
21
- VERSION = '0.5.2'.freeze
21
+ VERSION = '0.5.3'.freeze
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_fog_proxmox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Robert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-03 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-proxmox
@@ -112,6 +112,7 @@ files:
112
112
  - app/models/foreman_fog_proxmox/options_select.rb
113
113
  - app/models/foreman_fog_proxmox/proxmox.rb
114
114
  - app/overrides/compute_resources_vms/form/add_clone_to_new_vm_compute_detail.rb
115
+ - app/overrides/compute_resources_vms/form/add_from_profile_to_compute_attributes_form.rb
115
116
  - app/overrides/compute_resources_vms/form/add_vm_type_to_networks_form.rb
116
117
  - app/overrides/compute_resources_vms/form/add_vm_type_to_nic_provider_specific_form.rb
117
118
  - app/overrides/compute_resources_vms/form/add_vm_type_to_volumes_edit.rb
@@ -120,6 +121,9 @@ files:
120
121
  - app/views/api/v2/compute_resources/proxmox.json.rabl
121
122
  - app/views/compute_resources/form/_proxmox.html.erb
122
123
  - app/views/compute_resources/show/_proxmox.html.erb
124
+ - app/views/compute_resources_vms/form/proxmox/_add_from_profile_to_compute_attributes_form.html.erb
125
+ - app/views/compute_resources_vms/form/proxmox/_add_from_profile_to_compute_form.html.erb
126
+ - app/views/compute_resources_vms/form/proxmox/_add_from_profile_to_hosts_compute_detail_form.html.erb
123
127
  - app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_form.html.erb
124
128
  - app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb
125
129
  - app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_nic_provider_specific_form.html.erb