foreman_bootdisk 2.0.0 → 2.0.1

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: efc889edd64e77c31e018006515a86f9cdd68b58
4
- data.tar.gz: 48185eb7638eab87a12853792dd2fc226e6adcb0
3
+ metadata.gz: 93c51e52b750e4913f2733baea4ab7a45521360e
4
+ data.tar.gz: c336a695f574ac6e8f6cb8cfeb9b1a04dc31bbb8
5
5
  SHA512:
6
- metadata.gz: 1341fd44db6ff7d68060bd6129eef80fb50d4e530ba730f93d14c7cf3dcb05e5686b6485605fef25df036e41ffe30bb73253cd6c90dd2db53df8b5edc7d42852
7
- data.tar.gz: 9abfa6c19bdc36bdc67c865a6867be88c2b8a625948ed6948db977e1cb832bc1d5efee537c64077775a0ba4fbf870d2f341df72799852ad4cb6ce8467e9d1650
6
+ metadata.gz: 439e5ed6f401fd360a0e8e8d4f7f4b663f8c716e89fa729de915c62e44a05dad9ef7679a76ecc6fb4b4f5c30ffe4b5387b20e2567212113a813791a1798a2819
7
+ data.tar.gz: 08fad9a3fcd01e8192a39533bc1a6da3a7f41d7d3be4b29aa00eb3533a8b3812c9c39958181cb99b3b248ed106f6990849f921459f0eae049bbce4c6977409a6
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.1
4
+ * use genisoimage instead of mkisofs by default, added setting to control
5
+ * fix translation extraction of setting descriptions
6
+
3
7
  ## v2.0.0
4
8
  * compatible with Foreman 1.4 (only), uses new plugin registration system
5
9
  * add validation of host and subnet data to host template
data/README.md CHANGED
@@ -15,8 +15,8 @@ Please see the Foreman wiki for appropriate instructions:
15
15
 
16
16
  * [Foreman: How to Install a Plugin](http://projects.theforeman.org/projects/foreman/wiki/How_to_Install_a_Plugin)
17
17
 
18
- The gem name is "foreman_bootdisk". Run `foreman-rake db:migrate` after
19
- installation.
18
+ The gem name is "foreman_bootdisk". Run `foreman-rake db:migrate`,
19
+ `foreman-rake db:seed` after installation.
20
20
 
21
21
  RPM users can install the "ruby193-rubygem-foreman_bootdisk" or
22
22
  "rubygem-foreman_bootdisk" packages.
@@ -25,7 +25,7 @@ RPM users can install the "ruby193-rubygem-foreman_bootdisk" or
25
25
 
26
26
  * iPXE images are required
27
27
  * syslinux is required
28
- * mkisofs and isohybrid are required
28
+ * genisoimage/mkisofs and isohybrid are required
29
29
 
30
30
  gPXE images are unsupported due to lack of initrd support.
31
31
 
@@ -46,6 +46,7 @@ Some configuration is set under Administer>Settings>Bootdisk in the Foreman UI.
46
46
  * `bootdisk_syslinux_dir` points to the directory containing syslinux images
47
47
  * `bootdisk_host_template` is the name of the per-host boot disk template
48
48
  * `bootdisk_generic_host_template` is the name of the generic boot disk template
49
+ * `bootdisk_mkiso_command` is the name of genisoimage/mkisofs on your OS
49
50
 
50
51
  For per-host images, ensure host IP addresses and subnets are populated, and
51
52
  the subnet's gateway, subnet mask and DNS resolver(s) are correctly configured
@@ -8,10 +8,11 @@ class Setting::Bootdisk< ::Setting
8
8
 
9
9
  Setting.transaction do
10
10
  [
11
- self.set('bootdisk_ipxe_dir', _('Path to directory containing iPXE images'), ipxe),
12
- self.set('bootdisk_syslinux_dir', _('Path to directory containing syslinux images'), syslinux),
13
- self.set('bootdisk_host_template', _('iPXE template to use for host-specific boot disks'), 'Boot disk iPXE - host'),
14
- self.set('bootdisk_generic_host_template', _('iPXE template to use for generic host boot disks'), 'Boot disk iPXE - generic host'),
11
+ self.set('bootdisk_ipxe_dir', N_('Path to directory containing iPXE images'), ipxe),
12
+ self.set('bootdisk_syslinux_dir', N_('Path to directory containing syslinux images'), syslinux),
13
+ self.set('bootdisk_host_template', N_('iPXE template to use for host-specific boot disks'), 'Boot disk iPXE - host'),
14
+ self.set('bootdisk_generic_host_template', N_('iPXE template to use for generic host boot disks'), 'Boot disk iPXE - generic host'),
15
+ self.set('bootdisk_mkiso_command', N_('Command to generate ISO image, use genisoimage or mkisofs'), 'genisoimage'),
15
16
  ].compact.each { |s| self.create s.update(:category => "Setting::Bootdisk") }
16
17
  end
17
18
 
@@ -1,6 +1,6 @@
1
1
  # Generates an iPXE ISO hybrid image
2
2
  #
3
- # requires syslinux, ipxe/ipxe-bootimgs, mkisofs, isohybrid
3
+ # requires syslinux, ipxe/ipxe-bootimgs, genisoimage, isohybrid
4
4
  class Bootdisk::ISOGenerator
5
5
  attr_reader :script
6
6
 
@@ -30,7 +30,7 @@ EOF
30
30
  File.open(File.join(wd, 'build', 'script'),'w') { |file| file.write(script) }
31
31
 
32
32
  iso = File.join(wd, 'output.iso')
33
- unless system("mkisofs -o #{iso} -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table #{File.join(wd, 'build')}")
33
+ unless system("#{Setting[:bootdisk_mkiso_command]} -o #{iso} -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table #{File.join(wd, 'build')}")
34
34
  raise ::Foreman::Exception.new(N_("ISO build failed"))
35
35
  end
36
36
 
@@ -1,3 +1,3 @@
1
1
  module Bootdisk
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
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: 2.0.0
4
+ version: 2.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: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-02-13 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.
@@ -55,17 +55,17 @@ require_paths:
55
55
  - lib
56
56
  required_ruby_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - '>='
63
+ - - ">="
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.0.6
68
+ rubygems_version: 2.2.1
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Create boot disks to provision hosts with Foreman