foreman_bootdisk 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e7ca62988c19718f543895b4428bb0700334cbc
4
- data.tar.gz: 31bf9786b3162c9b92e2c90c3fb0c91339b26831
3
+ metadata.gz: 13d3ce70b8db0edb1ad13bf4d77184d885387b35
4
+ data.tar.gz: f3ec510df62e22c6013f89230e50b0cdb7ded5d8
5
5
  SHA512:
6
- metadata.gz: d350499749f54362a32c3ba1497c6eda779c19cfc97f127110568a040389d6aafddde5c37cfdc0f7d657114e89a10daf705e355ef718e625728f9439bec50b0e
7
- data.tar.gz: 362c580e40e8a2c4201f170a6489ce97af0181cb24ddd3c1760dbc55edfc10d9d20dd994e12670f155d0c8c6932cb56eb699a1e29512fc16f3908d43ff0a71e9
6
+ metadata.gz: 7d72166081888de72ca236bfa1e953a25fb2ac94bb237492d76c70033c5df9b33a506d22bfbc8ea821854f51af4166ee76d38ea38cb9056e1fef3a1cf800f663
7
+ data.tar.gz: d090d45ff219fec5c560edb908ffcbc3c80aa09361e97bfadeff1a743ffcc7e25cfc69f3bc45158eb78a1f3cad453c1a31512beaedbf8deb7ea3e77cb3b3a7eb
data/CHANGES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.2.3
4
+ * remove secondary DNS server from iPXE template (#3558)
5
+
3
6
  ## v1.2.2
4
7
  * check ipxe/syslinux are present when generating images (#3195)
5
8
  * fix RHN_PROVISIONING_MAC_0 error on template retrieval
@@ -0,0 +1,38 @@
1
+ #!ipxe
2
+ # Example foreman_bootdisk host template
3
+ # This template is rendered for use inside a host-specific boot disk.
4
+ #
5
+ # Copy this template to customize it, the original is read-only.
6
+
7
+ # loop over net* until the host's MAC matches
8
+ <% (0..32).each do |i| -%>
9
+ :net<%= i %>
10
+ isset ${net<%= i -%>/mac} || goto no_nic
11
+ echo net<%= i -%> is a ${net<%= i -%>/chip} with MAC ${net<%= i -%>/mac}
12
+ iseq ${net<%= i -%>/mac} <%= @host.mac -%> || goto net<%= i+1 %>
13
+ ifopen net<%= i %>
14
+ set idx:int32 <%= i %>
15
+ goto loop_success
16
+ <% end -%>
17
+
18
+ :loop_success
19
+ echo Configuring net${idx} for static IP address
20
+ ifopen net${idx}
21
+ set netX/ip <%= @host.ip %>
22
+ set netX/netmask <%= @host.subnet.mask %>
23
+ set netX/gateway <%= @host.subnet.gateway %>
24
+ route
25
+
26
+ # Note, iPXE can only use one DNS server
27
+ set dns <%= @host.subnet.dns_primary %>
28
+ set domain <%= @host.domain.to_s %>
29
+
30
+ # Chainload from Foreman rather than embedding OS info here, so the behaviour
31
+ # is entirely dynamic.
32
+ chain <%= foreman_url("gPXE") %>
33
+ exit 0
34
+
35
+ :no_nic
36
+ echo Cannot find interface with MAC <%= @host.mac %>
37
+ sleep 30
38
+ exit 1
@@ -0,0 +1,11 @@
1
+ class EditHostBootdiskTemplateDnsSecondary < ActiveRecord::Migration
2
+ def self.up
3
+ ConfigTemplate.find_by_name('Boot disk gPXE - host').update_attribute(
4
+ :template, File.read(File.join(Bootdisk::Engine.root, 'app', 'views', 'bootdisk', 'host_v3.erb')))
5
+ end
6
+
7
+ def self.down
8
+ ConfigTemplate.find_by_name('Boot disk gPXE - host').update_attribute(
9
+ :template, File.read(File.join(Bootdisk::Engine.root, 'app', 'views', 'bootdisk', 'host_v2.erb')))
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Bootdisk
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  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: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-11-01 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.
@@ -35,6 +35,7 @@ files:
35
35
  - app/views/bootdisk/generic_host_v1.erb
36
36
  - app/views/bootdisk/host_v1.erb
37
37
  - app/views/bootdisk/host_v2.erb
38
+ - app/views/bootdisk/host_v3.erb
38
39
  - app/views/bootdisk/kickstart_v1.erb
39
40
  - config/initializers/bootdisk_permissions.rb
40
41
  - config/routes.rb
@@ -42,6 +43,7 @@ files:
42
43
  - db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb
43
44
  - db/migrate/20130915133321_create_kickstart_bootdisk_template.rb
44
45
  - db/migrate/20130915201457_create_generic_host_bootdisk_template.rb
46
+ - db/migrate/20131021095100_edit_host_bootdisk_template_dns_secondary.rb
45
47
  - lib/bootdisk/engine.rb
46
48
  - lib/bootdisk/version.rb
47
49
  - lib/foreman_bootdisk.rb
@@ -66,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
68
  version: '0'
67
69
  requirements: []
68
70
  rubyforge_project:
69
- rubygems_version: 2.0.6
71
+ rubygems_version: 2.0.8
70
72
  signing_key:
71
73
  specification_version: 4
72
74
  summary: Create boot disks to provision hosts with Foreman