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 +4 -4
- data/README.md +1 -1
- data/app/overrides/compute_resources_vms/form/add_clone_to_new_vm_compute_detail.rb +9 -0
- data/app/overrides/compute_resources_vms/form/add_from_profile_to_compute_attributes_form.rb +32 -0
- data/app/views/compute_resources_vms/form/proxmox/_add_from_profile_to_compute_attributes_form.html.erb +18 -0
- data/app/views/compute_resources_vms/form/proxmox/_add_from_profile_to_compute_form.html.erb +18 -0
- data/app/views/compute_resources_vms/form/proxmox/_add_from_profile_to_hosts_compute_detail_form.html.erb +18 -0
- data/app/views/compute_resources_vms/form/proxmox/_base.html.erb +1 -1
- data/app/views/compute_resources_vms/form/proxmox/_general.html.erb +1 -1
- data/lib/foreman_fog_proxmox/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75626a2ceb3ba5b72a8938a76f9bd50ad1d337565d5eb8c9253bb76bf90b7f8f
|
|
4
|
+
data.tar.gz: d06eeccaa0e89c3e34d73d9558a80f65fadcc3f6188c7db71228debbaf223984
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
<%
|
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.
|
|
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-
|
|
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
|