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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4cae342fdce305a1ef37aa490220f5f688696ba
4
- data.tar.gz: 95527d0b5e50214b9a4f5e29c2e1fd8b68cdf5ea
3
+ metadata.gz: 6fa4ade5bfd81ecd392c0d54a2e86e4e7940ea07
4
+ data.tar.gz: a473a7b359b679b62fb24c7eb0e3664e349e15f5
5
5
  SHA512:
6
- metadata.gz: 7c68354a0657bfa35aac430090ffa22a4be8bd6b847eb293628e6f5abcf9303df840dfb118228bb2312d7494f3903c5f1181872aff3beefd77ed466c525095ab
7
- data.tar.gz: a3bd89f2fcd364027362562446d1b17b058d7ebd3d8bd7be32ebcc8c9976fdc2be3c07672258e7008c373e21903621e4dc13e25a82c03cdbd361f75cc2972d36
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
+ });
@@ -9,6 +9,8 @@
9
9
  #
10
10
  # Copy this template to customize it, the original is read-only.
11
11
 
12
+ echo Foreman Bootdisk: Generic image
13
+
12
14
  # loop over net* until we can get a template
13
15
  <% url = bootdisk_chain_url %>
14
16
  <% (0..32).each do |i| -%>
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ForemanBootdisk
2
- VERSION = '7.0.0'
2
+ VERSION = '7.0.1'
3
3
  end
@@ -71,13 +71,9 @@ namespace :test do
71
71
  end
72
72
  end
73
73
 
74
- Rake::Task[:test].enhance do
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 do
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.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-04-06 00:00:00.000000000 Z
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.