foreman_bootdisk 7.0.0 → 7.0.1
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/CHANGES.md +4 -0
- data/app/assets/javascripts/foreman_bootdisk/host_edit.js +6 -0
- data/app/views/foreman_bootdisk/generic_host.erb +2 -0
- data/app/views/foreman_bootdisk/host.erb +5 -2
- data/lib/foreman_bootdisk/version.rb +1 -1
- data/lib/tasks/bootdisk.rake +2 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fa4ade5bfd81ecd392c0d54a2e86e4e7940ea07
|
4
|
+
data.tar.gz: a473a7b359b679b62fb24c7eb0e3664e349e15f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe4aff48600235205c953564df151641e0582cb8fc7cac7c30e783f3691c6f7a630ad49daa9f740bb1550496119d3d04373dc0468008ab253fba3632a288efa
|
7
|
+
data.tar.gz: 5ac55cb0066f4c5ecf475e6e838af5ec8a2eef04fed4cbcb3e8a6992675cd73515004ea7807279fdf800937d200abde5515a023a59b40c35c81408c3231c6927
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v7.0.1
|
4
|
+
* added extra information during iPXE boot (#14794)
|
5
|
+
* show bootdisk fields after new host page reload (#14796)
|
6
|
+
|
3
7
|
## v7.0.0
|
4
8
|
* add automated "bootdisk" provisioning method when creating hosts on VMware
|
5
9
|
compute resources, attaching a host ISO image to the virtual CDROM (#3287)
|
@@ -5,3 +5,9 @@ function bootdisk_provision_method_selected() {
|
|
5
5
|
$('#image_selection select').attr('disabled', true);
|
6
6
|
}
|
7
7
|
$(document).on('change', '#host_provision_method_bootdisk', bootdisk_provision_method_selected);
|
8
|
+
|
9
|
+
$(document).on('ContentLoad', function() {
|
10
|
+
if($('#host_provision_method_bootdisk').is(':checked')) {
|
11
|
+
bootdisk_provision_method_selected();
|
12
|
+
}
|
13
|
+
});
|
@@ -14,26 +14,29 @@ bootdisk_raise(N_('Subnet (%s) has no gateway defined'), interface.subnet) if in
|
|
14
14
|
bootdisk_raise(N_('Subnet (%s) has no primary DNS server defined'), interface.subnet) if interface.subnet.dns_primary.nil? || interface.subnet.dns_primary.empty?
|
15
15
|
%>
|
16
16
|
|
17
|
+
echo Foreman Bootdisk: Host image (<%= @host.name %>)
|
18
|
+
|
17
19
|
# loop over net* until the host's MAC matches
|
18
20
|
<% (0..32).each do |i| -%>
|
19
21
|
:net<%= i %>
|
20
22
|
isset ${net<%= i -%>/mac} || goto no_nic
|
21
23
|
echo net<%= i -%> is a ${net<%= i -%>/chip} with MAC ${net<%= i -%>/mac}
|
22
24
|
iseq ${net<%= i -%>/mac} <%= interface.mac -%> || goto net<%= i+1 %>
|
23
|
-
ifopen net<%= i %>
|
24
25
|
set idx:int32 <%= i %>
|
25
26
|
goto loop_success
|
26
27
|
<% end -%>
|
27
28
|
|
28
29
|
:loop_success
|
29
|
-
echo Configuring net${idx} for static IP address
|
30
|
+
echo Configuring net${idx} for static IP address <%= interface.ip %>
|
30
31
|
ifopen net${idx}
|
31
32
|
set netX/ip <%= interface.ip %>
|
32
33
|
set netX/netmask <%= interface.subnet.mask %>
|
33
34
|
set netX/gateway <%= interface.subnet.gateway %>
|
35
|
+
ifstat net${idx}
|
34
36
|
route
|
35
37
|
|
36
38
|
# Note, iPXE can only use one DNS server
|
39
|
+
echo Using DNS <%= interface.subnet.dns_primary %>
|
37
40
|
set dns <%= interface.subnet.dns_primary %>
|
38
41
|
set domain <%= interface.domain.to_s %>
|
39
42
|
|
data/lib/tasks/bootdisk.rake
CHANGED
@@ -71,13 +71,9 @@ namespace :test do
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
-
Rake::Task[:test].enhance
|
75
|
-
Rake::Task['test:foreman_bootdisk'].invoke
|
76
|
-
end
|
74
|
+
Rake::Task[:test].enhance ['test:foreman_bootdisk']
|
77
75
|
|
78
76
|
load 'tasks/jenkins.rake'
|
79
77
|
if Rake::Task.task_defined?(:'jenkins:unit')
|
80
|
-
Rake::Task["jenkins:unit"].enhance
|
81
|
-
Rake::Task['test:foreman_bootdisk'].invoke
|
82
|
-
end
|
78
|
+
Rake::Task["jenkins:unit"].enhance ['test:foreman_bootdisk']
|
83
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_bootdisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominic Cleal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Plugin for Foreman that creates iPXE-based boot disks to provision hosts
|
14
14
|
without the need for PXE infrastructure.
|