foreman_bootdisk 4.0.2 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +8 -0
  3. data/README.md +2 -1
  4. data/app/services/foreman_bootdisk/iso_generator.rb +3 -0
  5. data/app/views/foreman_bootdisk/host.erb +14 -12
  6. data/lib/foreman_bootdisk/engine.rb +2 -2
  7. data/lib/foreman_bootdisk/version.rb +1 -1
  8. data/locale/de/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  9. data/locale/de/foreman_bootdisk.po +7 -4
  10. data/locale/en/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  11. data/locale/en/foreman_bootdisk.po +5 -2
  12. data/locale/en_GB/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  13. data/locale/en_GB/foreman_bootdisk.po +7 -4
  14. data/locale/es/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  15. data/locale/es/foreman_bootdisk.po +15 -12
  16. data/locale/foreman_bootdisk.pot +4 -1
  17. data/locale/fr/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  18. data/locale/fr/foreman_bootdisk.po +8 -4
  19. data/locale/it/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  20. data/locale/it/foreman_bootdisk.po +7 -4
  21. data/locale/ja/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  22. data/locale/ja/foreman_bootdisk.po +7 -4
  23. data/locale/ko/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  24. data/locale/ko/foreman_bootdisk.po +7 -4
  25. data/locale/pt_BR/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  26. data/locale/pt_BR/foreman_bootdisk.po +7 -4
  27. data/locale/ru/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  28. data/locale/ru/foreman_bootdisk.po +7 -4
  29. data/locale/sv_SE/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  30. data/locale/sv_SE/foreman_bootdisk.po +7 -4
  31. data/locale/zh_CN/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  32. data/locale/zh_CN/foreman_bootdisk.po +7 -4
  33. data/locale/zh_TW/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  34. data/locale/zh_TW/foreman_bootdisk.po +7 -4
  35. data/test/test_plugin_helper.rb +2 -1
  36. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f47f571066b7c564c077c4aaa714c6e0ce3fc74e
4
- data.tar.gz: 683ef371d2cb265cf2d8b54beecf54645a49603c
3
+ metadata.gz: adbc8a5cad8e57bb7a872e5091de1d0be8848603
4
+ data.tar.gz: 6078ba730289b9857097df49467149fac0c254ef
5
5
  SHA512:
6
- metadata.gz: c8a7aa167e18ad4741ee04dd68cd0a70bcf4b195697bcccc10b8d7132eff40adae3589f84f385e1f9e8eef7f38e84c6d26be29714a66fa9d883853b711387317
7
- data.tar.gz: 8e5a186803695d0f4c0ca5e2229742c4614eb13e7e23dbf767eb5697a7f258a10ae783f39edc7d21e27fe3dcb73accaacfa8dea1fcd0ad938e4fe1c6dea02abb
6
+ metadata.gz: f50b764848cec817cdeaa0121f15e22f0963f93367734572d20a0c21e02afb2b0a99527d9f72a831b29400c5ed639d3d5f72b5e95cd4bc83e5623e915b389f84
7
+ data.tar.gz: e13b29571fe76e38ba1c82f9b68f7def33e11c0838b95978871856b585a95c1c7ff80c2cbfd1f6a901852a88addb91b23016ce0d575d3c141674dac7cdfed11f
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v5.0.0
4
+ * configure host provisioning interface in host ISO, not primary
5
+ * syslinux v6 compatibility, include ldlinux.c32
6
+ * register APIs with Foreman 1.8 apipie support (#8921)
7
+ * fix tests on Foreman 1.8 (#9252)
8
+ * documentation fix, DHCP currently required for full host image
9
+ * requires Foreman 1.8+
10
+
3
11
  ## v4.0.2
4
12
  * fix controller compatibility with Foreman 1.7
5
13
  * fix foreman_url error when building generic ISO
data/README.md CHANGED
@@ -39,6 +39,7 @@ gPXE images are unsupported due to lack of initrd support.
39
39
  | >= 1.4 | ~> 2.0 |
40
40
  | >= 1.6 | ~> 3.0 |
41
41
  | >= 1.7 | ~> 4.0 |
42
+ | >= 1.8 | ~> 5.0 |
42
43
 
43
44
  # Usage
44
45
 
@@ -108,7 +109,7 @@ TFTP settings are needed.
108
109
  <tr>
109
110
  <td>Full host image</td>
110
111
  <td>No</td>
111
- <td>No</td>
112
+ <td>Yes</td>
112
113
  <td>No</td>
113
114
  <td>Yes</td>
114
115
  <td>Yes</td>
@@ -47,6 +47,9 @@ class ForemanBootdisk::ISOGenerator
47
47
  raise ::Foreman::Exception.new(N_("Please ensure the ipxe-bootimgs and syslinux packages are installed."))
48
48
  end
49
49
  FileUtils.cp(File.join(Setting[:bootdisk_syslinux_dir], 'isolinux.bin'), File.join(wd, 'build', 'isolinux.bin'))
50
+ if File.exist?(File.join(Setting[:bootdisk_syslinux_dir], 'ldlinux.c32'))
51
+ FileUtils.cp(File.join(Setting[:bootdisk_syslinux_dir], 'ldlinux.c32'), File.join(wd, 'build', 'ldlinux.c32'))
52
+ end
50
53
  File.open(File.join(wd, 'build', 'isolinux.cfg'), 'w') do |file|
51
54
  file.write(opts[:isolinux])
52
55
  end
@@ -5,11 +5,13 @@
5
5
  # Copy this template to customize it, the original is read-only.
6
6
 
7
7
  <%
8
- bootdisk_raise(N_('Host has no IP address defined')) if @host.ip.nil? || @host.ip.empty?
9
- bootdisk_raise(N_('Host has no subnet defined')) unless @host.subnet
10
- bootdisk_raise(N_('Host has no domain defined')) unless @host.domain
11
- bootdisk_raise(N_('Subnet (%s) has no gateway defined'), @host.subnet) if @host.subnet.gateway.nil? || @host.subnet.gateway.empty?
12
- bootdisk_raise(N_('Subnet (%s) has no primary DNS server defined'), @host.subnet) if @host.subnet.dns_primary.nil? || @host.subnet.dns_primary.empty?
8
+ interface = @host.provision_interface
9
+ bootdisk_raise(N_('Host has no provisioning interface defined')) unless interface
10
+ bootdisk_raise(N_('Host has no IP address defined')) if interface.ip.nil? || interface.ip.empty?
11
+ bootdisk_raise(N_('Host has no subnet defined')) unless interface.subnet
12
+ bootdisk_raise(N_('Host has no domain defined')) unless interface.domain
13
+ bootdisk_raise(N_('Subnet (%s) has no gateway defined'), interface.subnet) if interface.subnet.gateway.nil? || interface.subnet.gateway.empty?
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?
13
15
  %>
14
16
 
15
17
  # loop over net* until the host's MAC matches
@@ -17,7 +19,7 @@ bootdisk_raise(N_('Subnet (%s) has no primary DNS server defined'), @host.subnet
17
19
  :net<%= i %>
18
20
  isset ${net<%= i -%>/mac} || goto no_nic
19
21
  echo net<%= i -%> is a ${net<%= i -%>/chip} with MAC ${net<%= i -%>/mac}
20
- iseq ${net<%= i -%>/mac} <%= @host.mac -%> || goto net<%= i+1 %>
22
+ iseq ${net<%= i -%>/mac} <%= interface.mac -%> || goto net<%= i+1 %>
21
23
  ifopen net<%= i %>
22
24
  set idx:int32 <%= i %>
23
25
  goto loop_success
@@ -26,14 +28,14 @@ goto loop_success
26
28
  :loop_success
27
29
  echo Configuring net${idx} for static IP address
28
30
  ifopen net${idx}
29
- set netX/ip <%= @host.ip %>
30
- set netX/netmask <%= @host.subnet.mask %>
31
- set netX/gateway <%= @host.subnet.gateway %>
31
+ set netX/ip <%= interface.ip %>
32
+ set netX/netmask <%= interface.subnet.mask %>
33
+ set netX/gateway <%= interface.subnet.gateway %>
32
34
  route
33
35
 
34
36
  # Note, iPXE can only use one DNS server
35
- set dns <%= @host.subnet.dns_primary %>
36
- set domain <%= @host.domain.to_s %>
37
+ set dns <%= interface.subnet.dns_primary %>
38
+ set domain <%= interface.domain.to_s %>
37
39
 
38
40
  # Chainload from Foreman rather than embedding OS info here, so the behaviour
39
41
  # is entirely dynamic.
@@ -41,6 +43,6 @@ chain <%= bootdisk_chain_url %>
41
43
  exit 0
42
44
 
43
45
  :no_nic
44
- echo Cannot find interface with MAC <%= @host.mac %>
46
+ echo Cannot find interface with MAC <%= interface.mac %>
45
47
  sleep 30
46
48
  exit 1
@@ -23,13 +23,12 @@ module ForemanBootdisk
23
23
  end
24
24
 
25
25
  initializer "foreman_bootdisk.apipie" do
26
- Apipie.configuration.api_controllers_matcher << "#{ForemanBootdisk::Engine.root}/app/controllers/foreman_bootdisk/api/v2/*.rb"
27
26
  Apipie.configuration.checksum_path += ['/bootdisk/api/']
28
27
  end
29
28
 
30
29
  initializer 'foreman_bootdisk.register_plugin', :after=> :finisher_hook do |app|
31
30
  Foreman::Plugin.register :foreman_bootdisk do
32
- requires_foreman '>= 1.7'
31
+ requires_foreman '>= 1.8'
33
32
 
34
33
  security_block :bootdisk do |map|
35
34
  permission :download_bootdisk, {:'foreman_bootdisk/disks' => [:generic, :host, :full_host, :help],
@@ -39,6 +38,7 @@ module ForemanBootdisk
39
38
  role "Boot disk access", [:download_bootdisk]
40
39
 
41
40
  allowed_template_helpers :bootdisk_chain_url, :bootdisk_raise
41
+ apipie_documented_controllers ["#{ForemanBootdisk::Engine.root}/app/controllers/foreman_bootdisk/api/v2/*.rb"]
42
42
  end
43
43
  end
44
44
 
@@ -1,3 +1,3 @@
1
1
  module ForemanBootdisk
2
- VERSION = '4.0.2'
2
+ VERSION = '5.0.0'
3
3
  end
@@ -8,11 +8,11 @@
8
8
  # simon11 <simon.stieger.98@live.de>, 2014
9
9
  msgid ""
10
10
  msgstr ""
11
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
11
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
12
12
  "Report-Msgid-Bugs-To: \n"
13
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
14
- "PO-Revision-Date: 2014-09-22 11:21+0000\n"
15
- "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n"
13
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
14
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
15
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
16
16
  "Language-Team: German (http://www.transifex.com/projects/p/foreman/language/de/)\n"
17
17
  "MIME-Version: 1.0\n"
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -86,6 +86,9 @@ msgstr "Host hat keine IP-Adresse definiert"
86
86
  msgid "Host has no domain defined"
87
87
  msgstr "Host hat keine Domäne definiert"
88
88
 
89
+ msgid "Host has no provisioning interface defined"
90
+ msgstr ""
91
+
89
92
  msgid "Host has no subnet defined"
90
93
  msgstr "Host hat kein Subnetz definiert"
91
94
 
@@ -5,9 +5,9 @@
5
5
  #, fuzzy
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
11
  "PO-Revision-Date: 2014-02-13 12:09+0000\n"
12
12
  "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
@@ -71,6 +71,9 @@ msgstr ""
71
71
  msgid "Host has no domain defined"
72
72
  msgstr ""
73
73
 
74
+ msgid "Host has no provisioning interface defined"
75
+ msgstr ""
76
+
74
77
  msgid "Host has no subnet defined"
75
78
  msgstr ""
76
79
 
@@ -6,11 +6,11 @@
6
6
  # Dominic Cleal <dcleal@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
9
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
12
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
11
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
12
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
13
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
14
14
  "Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/foreman/language/en_GB/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -84,6 +84,9 @@ msgstr "Host has no IP address defined"
84
84
  msgid "Host has no domain defined"
85
85
  msgstr "Host has no domain defined"
86
86
 
87
+ msgid "Host has no provisioning interface defined"
88
+ msgstr ""
89
+
87
90
  msgid "Host has no subnet defined"
88
91
  msgstr "Host has no subnet defined"
89
92
 
@@ -3,14 +3,14 @@
3
3
  # This file is distributed under the same license as foreman_bootdisk.
4
4
  #
5
5
  # Translators:
6
- # Sergio Ocón <sergio@redhat.com>, 2014
6
+ # Sergio Ocón <sergio.ocon@redhat.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
9
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
12
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
11
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
12
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
13
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
14
14
  "Language-Team: Spanish (http://www.transifex.com/projects/p/foreman/language/es/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -23,7 +23,7 @@ msgid ""
23
23
  "inside the disk. This may be useful if chainloading fails on certain "
24
24
  "hardware, but has the downside that the image must be regenerated for any "
25
25
  "change in the OS, bootloader or templates."
26
- msgstr ""
26
+ msgstr "Una variante de la imagen por host que contiene el bootloader del SO embebido en el disco. Esto puede ser útil si la carga en cadena falla en un hardware determinado, pero tiene la desventaja de que se debe regenerar la imagen para cualquier cambio en el SO, el bootloader o las plantillas."
27
27
 
28
28
  msgid ""
29
29
  "All images are usable as either ISOs or as disk images, including being "
@@ -57,10 +57,10 @@ msgid "Failed to render boot disk template: %s"
57
57
  msgstr "Fallo en la entrega de la plantilla del disco de arranque: %s"
58
58
 
59
59
  msgid "Full host '%s' image"
60
- msgstr ""
60
+ msgstr "Imagen completa de host '%s'"
61
61
 
62
62
  msgid "Full host image"
63
- msgstr ""
63
+ msgstr "Imagen completa de host"
64
64
 
65
65
  msgid "Generic image"
66
66
  msgstr "Imagen genérica"
@@ -84,6 +84,9 @@ msgstr "El host no tiene dirección IP definida"
84
84
  msgid "Host has no domain defined"
85
85
  msgstr "El host no tiene dominio definido"
86
86
 
87
+ msgid "Host has no provisioning interface defined"
88
+ msgstr ""
89
+
87
90
  msgid "Host has no subnet defined"
88
91
  msgstr "El host no tiene subred definida"
89
92
 
@@ -91,7 +94,7 @@ msgid "Host image"
91
94
  msgstr "Imágen de host"
92
95
 
93
96
  msgid "Host is not in build mode, so the template cannot be rendered"
94
- msgstr ""
97
+ msgstr "El host no está en modo build, así que no se puede producir la plantilla"
95
98
 
96
99
  msgid "ISO build failed"
97
100
  msgstr "Error en la construcción del ISO"
@@ -100,7 +103,7 @@ msgid "ISO hybrid conversion failed"
100
103
  msgstr "Error en la conversión del ISO Híbrido"
101
104
 
102
105
  msgid "Installation media files will be cached for full host images"
103
- msgstr ""
106
+ msgstr "Archivos de medios de instalación se almacenarán en caché para imágenes completas de host"
104
107
 
105
108
  msgid ""
106
109
  "Once chainloaded, the OS bootloader and installer are downloaded directly "
@@ -142,13 +145,13 @@ msgid ""
142
145
  msgstr "La instalación del SO sigue usando el medio de instalación configurado en Foreman, y típicamente configura red estática, según como se configura la plantilla iPXE del SO."
143
146
 
144
147
  msgid "True for full, false for basic reusable image"
145
- msgstr ""
148
+ msgstr "Verdadero para completo, falso para imagen básica reutilizable"
146
149
 
147
150
  msgid "Unable to find template specified by %s setting"
148
151
  msgstr "No ha sido posible encontrar la plantilla especificada por el parámetro de configuración %s"
149
152
 
150
153
  msgid "Unable to generate disk template: %s"
151
- msgstr ""
154
+ msgstr "No se pudo generar la plantilla de disco: %s"
152
155
 
153
156
  msgid ""
154
157
  "Various types of boot disks can be created to provision hosts without the "
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: version 0.0.1\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
11
  "PO-Revision-Date: 2014-02-13 12:09+0000\n"
12
12
  "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
@@ -71,6 +71,9 @@ msgstr ""
71
71
  msgid "Host has no domain defined"
72
72
  msgstr ""
73
73
 
74
+ msgid "Host has no provisioning interface defined"
75
+ msgstr ""
76
+
74
77
  msgid "Host has no subnet defined"
75
78
  msgstr ""
76
79
 
@@ -4,14 +4,15 @@
4
4
  #
5
5
  # Translators:
6
6
  # Claer <transiblu@claer.hammock.fr>, 2014
7
+ # Dominic Cleal <dcleal@redhat.com>, 2015
7
8
  # Pierre-Emmanuel Dutang <dutangp@gmail.com>, 2014
8
9
  msgid ""
9
10
  msgstr ""
10
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
11
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
11
12
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
13
- "PO-Revision-Date: 2014-09-23 09:52+0000\n"
14
- "Last-Translator: Claer <transiblu@claer.hammock.fr>\n"
13
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
14
+ "PO-Revision-Date: 2015-02-20 15:01+0000\n"
15
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
15
16
  "Language-Team: French (http://www.transifex.com/projects/p/foreman/language/fr/)\n"
16
17
  "MIME-Version: 1.0\n"
17
18
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -85,6 +86,9 @@ msgstr "L'hôte n'a aucune adresse IP définie"
85
86
  msgid "Host has no domain defined"
86
87
  msgstr "L'hôte n'a aucun domaine défini"
87
88
 
89
+ msgid "Host has no provisioning interface defined"
90
+ msgstr "L'hôte n'a aucune interface de provisionnement défini"
91
+
88
92
  msgid "Host has no subnet defined"
89
93
  msgstr "L'hôte n'a aucun sous réseau défini"
90
94
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Italian (http://www.transifex.com/projects/p/foreman/language/it/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "L'host non presenta alcun indirizzo IP"
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "L'host non presenta alcun dominio"
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "L'host non presenta alcuna sottorete"
88
91
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Japanese (http://www.transifex.com/projects/p/foreman/language/ja/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "ホストには IP アドレスが定義されていません"
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "ホストにはドメインが定義されていません"
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "ホストにはサブネットが定義されていません"
88
91
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Korean (http://www.transifex.com/projects/p/foreman/language/ko/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "호스트에 지정된 IP 주소가 없습니다 "
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "호스트에 지정된 도메인이 없습니다 "
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "호스트에 지정된 서브넷이 없습니다 "
88
91
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/foreman/language/pt_BR/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "Host não tem um endereço IP definido"
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "Host não tem um domínio definido"
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "Host não tem uma subrede definida"
88
91
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Russian (http://www.transifex.com/projects/p/foreman/language/ru/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "IP-адрес хоста не определен"
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "Домен не определен"
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "Подсеть не определена"
88
91
 
@@ -6,11 +6,11 @@
6
6
  # johnny.westerlund <johnny.westerlund@gmail.com>, 2014
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
9
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
12
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
13
- "Last-Translator: Lukáš Zapletal\n"
11
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
12
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
13
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
14
14
  "Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/foreman/language/sv_SE/)\n"
15
15
  "MIME-Version: 1.0\n"
16
16
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -84,6 +84,9 @@ msgstr "Värden har ingen IP-adress definierad"
84
84
  msgid "Host has no domain defined"
85
85
  msgstr "Värden har ingen domän definierad"
86
86
 
87
+ msgid "Host has no provisioning interface defined"
88
+ msgstr ""
89
+
87
90
  msgid "Host has no subnet defined"
88
91
  msgstr "Värden har inget subnät definierat"
89
92
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/foreman/language/zh_CN/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "没有为主机定义 IP 地址"
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "没有为主机定义域"
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "没有为主机定义子网"
88
91
 
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 3.1.2\n"
8
+ "Project-Id-Version: foreman_bootdisk 4.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2014-09-21 15:30+0100\n"
11
- "PO-Revision-Date: 2014-09-22 09:47+0000\n"
12
- "Last-Translator: Lukáš Zapletal\n"
10
+ "POT-Creation-Date: 2015-02-20 11:19+0000\n"
11
+ "PO-Revision-Date: 2015-02-20 11:24+0000\n"
12
+ "Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
13
13
  "Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/foreman/language/zh_TW/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -83,6 +83,9 @@ msgstr "主機尚未定義 IP 位址"
83
83
  msgid "Host has no domain defined"
84
84
  msgstr "主機尚未定義區域"
85
85
 
86
+ msgid "Host has no provisioning interface defined"
87
+ msgstr ""
88
+
86
89
  msgid "Host has no subnet defined"
87
90
  msgstr "主機尚未定義子網路"
88
91
 
@@ -20,7 +20,8 @@ class ActionController::TestCase
20
20
  end
21
21
 
22
22
  def setup_host
23
+ disable_orchestration
23
24
  subnet = FactoryGirl.create(:subnet, :gateway => '10.0.1.254', :dns_primary => '8.8.8.8')
24
- @host = FactoryGirl.create(:host, :subnet => subnet)
25
+ @host = FactoryGirl.create(:host, :managed, :subnet => subnet, :ip => subnet.network.sub(/0$/, '4'))
25
26
  end
26
27
  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: 4.0.2
4
+ version: 5.0.0
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-11-18 00:00:00.000000000 Z
11
+ date: 2015-02-20 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.