foreman_bootdisk 1.2.2 → 1.2.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d3ce70b8db0edb1ad13bf4d77184d885387b35
|
4
|
+
data.tar.gz: f3ec510df62e22c6013f89230e50b0cdb7ded5d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d72166081888de72ca236bfa1e953a25fb2ac94bb237492d76c70033c5df9b33a506d22bfbc8ea821854f51af4166ee76d38ea38cb9056e1fef3a1cf800f663
|
7
|
+
data.tar.gz: d090d45ff219fec5c560edb908ffcbc3c80aa09361e97bfadeff1a743ffcc7e25cfc69f3bc45158eb78a1f3cad453c1a31512beaedbf8deb7ea3e77cb3b3a7eb
|
data/CHANGES.md
CHANGED
@@ -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
|
data/lib/bootdisk/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|