foreman_bootdisk 2.0.8 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tx/config +2 -2
- data/CHANGES.md +6 -0
- data/README.md +3 -2
- data/app/controllers/concerns/{bootdisk → foreman_bootdisk}/hosts_controller_ext.rb +2 -2
- data/app/controllers/concerns/{bootdisk → foreman_bootdisk}/unattended_controller_ext.rb +1 -1
- data/app/controllers/{bootdisk → foreman_bootdisk}/disks_controller.rb +3 -3
- data/app/helpers/concerns/{bootdisk → foreman_bootdisk}/hosts_helper_ext.rb +1 -1
- data/app/models/concerns/{bootdisk → foreman_bootdisk}/host_ext.rb +1 -1
- data/app/services/{bootdisk → foreman_bootdisk}/iso_generator.rb +1 -1
- data/app/services/{bootdisk → foreman_bootdisk}/renderer.rb +1 -1
- data/app/views/{bootdisk → foreman_bootdisk}/generic_host.erb +0 -0
- data/app/views/{bootdisk → foreman_bootdisk}/host.erb +0 -0
- data/config/routes.rb +1 -1
- data/db/seeds.d/50-bootdisk_templates.rb +25 -0
- data/lib/foreman_bootdisk.rb +4 -4
- data/lib/{bootdisk → foreman_bootdisk}/engine.rb +10 -17
- data/lib/foreman_bootdisk/version.rb +3 -0
- data/lib/tasks/bootdisk.rake +3 -3
- data/locale/de/foreman_bootdisk.po +84 -0
- data/locale/{bootdisk.pot → en/foreman_bootdisk.po} +1 -4
- data/locale/en_GB/{bootdisk.po → foreman_bootdisk.po} +45 -68
- data/locale/es/foreman_bootdisk.po +83 -0
- data/locale/foreman_bootdisk.pot +75 -0
- data/locale/fr/foreman_bootdisk.po +83 -0
- data/locale/pt_BR/foreman_bootdisk.po +82 -0
- data/locale/sv_SE/foreman_bootdisk.po +83 -0
- metadata +22 -18
- data/app/models/concerns/bootdisk/config_template_ext.rb +0 -42
- data/db/seeds.rb +0 -24
- data/lib/bootdisk/version.rb +0 -3
- data/locale/Makefile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51adf08513ffcceb95f046aed88d330303cdb16d
|
4
|
+
data.tar.gz: 4b5ca7c65af66d5f64a024f44bf7b50b7c20cad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec946e5bbc5be09fefd2e09f0d20ea6c69963a58018554e8998490ee422dbeaf9cbbdc6538586fbd92086da638f0ab8e4f738d84730445481fe0d043fac2bcc
|
7
|
+
data.tar.gz: 8b5ddcc2f1cbb5f5cfa5f86d49b3fd0c125aabb2e303f3763e041e183d6d426ec597349103b85a477f130ecba342e56c95d58a9a2249cc8e11de1189e576989d
|
data/.tx/config
CHANGED
data/CHANGES.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v3.0.0
|
4
|
+
* modernised to use Foreman 1.6 features, no new functionality
|
5
|
+
* use template locking mechanism from Foreman 1.6 (#6843, Stephen Benjamin)
|
6
|
+
* use seeds.d mechanism instead of extending db:seed
|
7
|
+
* add de, es, fr, pt_BR, sv_SE translations (thanks to the translator teams)
|
8
|
+
|
3
9
|
## v2.0.8
|
4
10
|
* fix DB migration when setting when using empty database (#5970)
|
5
11
|
* updates to README
|
data/README.md
CHANGED
@@ -11,9 +11,9 @@ management device).
|
|
11
11
|
|
12
12
|
# Installation
|
13
13
|
|
14
|
-
Please see the Foreman
|
14
|
+
Please see the Foreman manual for appropriate instructions:
|
15
15
|
|
16
|
-
* [Foreman: How to Install a Plugin](http://
|
16
|
+
* [Foreman: How to Install a Plugin](http://theforeman.org/manuals/latest/index.html#6.Plugins)
|
17
17
|
|
18
18
|
The gem name is "foreman_bootdisk". Run `foreman-rake db:migrate`,
|
19
19
|
`foreman-rake db:seed` after installation.
|
@@ -37,6 +37,7 @@ gPXE images are unsupported due to lack of initrd support.
|
|
37
37
|
| --------------- | --------------:|
|
38
38
|
| <= 1.3 | ~> 1.0 |
|
39
39
|
| >= 1.4 | ~> 2.0 |
|
40
|
+
| >= 1.6 | ~> 3.0 |
|
40
41
|
|
41
42
|
# Usage
|
42
43
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module ForemanBootdisk::HostsControllerExt
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
@@ -16,7 +16,7 @@ module Bootdisk::HostsControllerExt
|
|
16
16
|
return
|
17
17
|
end
|
18
18
|
|
19
|
-
|
19
|
+
ForemanBootdisk::ISOGenerator.new(tmpl).generate do |iso|
|
20
20
|
send_data File.read(iso), :filename => "#{@host.name}.iso"
|
21
21
|
end
|
22
22
|
end
|
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'uri'
|
2
2
|
|
3
|
-
module
|
3
|
+
module ForemanBootdisk
|
4
4
|
class DisksController < ::ApplicationController
|
5
5
|
def generic_iso
|
6
6
|
begin
|
7
|
-
tmpl =
|
7
|
+
tmpl = ForemanBootdisk::Renderer.new.generic_template_render
|
8
8
|
rescue => e
|
9
9
|
error _('Failed to render boot disk template: %s') % e
|
10
10
|
redirect_to :back
|
11
11
|
return
|
12
12
|
end
|
13
13
|
|
14
|
-
|
14
|
+
ForemanBootdisk::ISOGenerator.new(tmpl).generate do |iso|
|
15
15
|
send_data File.read(iso), :filename => "bootdisk_#{URI.parse(Setting[:foreman_url]).host}.iso"
|
16
16
|
end
|
17
17
|
end
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
kind = TemplateKind.find_or_create_by_name('Bootdisk')
|
2
|
+
|
3
|
+
ConfigTemplate.without_auditing do
|
4
|
+
content = File.read(File.join(ForemanBootdisk::Engine.root, 'app', 'views', 'foreman_bootdisk', 'host.erb'))
|
5
|
+
ConfigTemplate.find_or_create_by_name(
|
6
|
+
:name => 'Boot disk iPXE - host',
|
7
|
+
:template_kind_id => kind.id,
|
8
|
+
:snippet => false,
|
9
|
+
:template => content
|
10
|
+
).update_attributes(:template => content,
|
11
|
+
:default => true,
|
12
|
+
:vendor => "Foreman boot disk",
|
13
|
+
:locked => true)
|
14
|
+
|
15
|
+
content = File.read(File.join(ForemanBootdisk::Engine.root, 'app', 'views', 'foreman_bootdisk', 'generic_host.erb'))
|
16
|
+
ConfigTemplate.find_or_create_by_name(
|
17
|
+
:name => 'Boot disk iPXE - generic host',
|
18
|
+
:template_kind_id => kind.id,
|
19
|
+
:snippet => false,
|
20
|
+
:template => content
|
21
|
+
).update_attributes(:template => content,
|
22
|
+
:default => true,
|
23
|
+
:vendor => "Foreman boot disk",
|
24
|
+
:locked => true)
|
25
|
+
end
|
data/lib/foreman_bootdisk.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require '
|
1
|
+
require 'foreman_bootdisk/version'
|
2
2
|
|
3
|
-
module
|
4
|
-
ENGINE_NAME = '
|
3
|
+
module ForemanBootdisk
|
4
|
+
ENGINE_NAME = 'foreman_bootdisk'
|
5
5
|
|
6
|
-
require '
|
6
|
+
require 'foreman_bootdisk/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
|
7
7
|
end
|
@@ -2,9 +2,9 @@ require 'foreman_bootdisk'
|
|
2
2
|
require 'fast_gettext'
|
3
3
|
require 'gettext_i18n_rails'
|
4
4
|
|
5
|
-
module
|
5
|
+
module ForemanBootdisk
|
6
6
|
class Engine < ::Rails::Engine
|
7
|
-
engine_name
|
7
|
+
engine_name ForemanBootdisk::ENGINE_NAME
|
8
8
|
|
9
9
|
config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"]
|
10
10
|
config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
|
@@ -15,12 +15,12 @@ module Bootdisk
|
|
15
15
|
end
|
16
16
|
|
17
17
|
initializer "foreman_bootdisk.load_app_instance_data" do |app|
|
18
|
-
app.config.paths['db/migrate'] +=
|
18
|
+
app.config.paths['db/migrate'] += ForemanBootdisk::Engine.paths['db/migrate'].existent
|
19
19
|
end
|
20
20
|
|
21
21
|
initializer 'foreman_bootdisk.register_plugin', :after=> :finisher_hook do |app|
|
22
22
|
Foreman::Plugin.register :foreman_bootdisk do
|
23
|
-
requires_foreman '>= 1.
|
23
|
+
requires_foreman '>= 1.6'
|
24
24
|
|
25
25
|
security_block :bootdisk do |map|
|
26
26
|
permission :download_bootdisk, {:hosts => [:bootdisk_iso],
|
@@ -35,25 +35,18 @@ module Bootdisk
|
|
35
35
|
|
36
36
|
initializer 'foreman_bootdisk.register_gettext', :after => :load_config_initializers do |app|
|
37
37
|
locale_dir = File.join(File.expand_path('../../..', __FILE__), 'locale')
|
38
|
-
locale_domain = '
|
38
|
+
locale_domain = 'foreman_bootdisk'
|
39
39
|
Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
|
40
40
|
end
|
41
41
|
|
42
42
|
config.to_prepare do
|
43
43
|
begin
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
UnattendedController.send(:include, Bootdisk::UnattendedControllerExt)
|
44
|
+
Host::Managed.send(:include, ForemanBootdisk::HostExt)
|
45
|
+
HostsController.send(:include, ForemanBootdisk::HostsControllerExt)
|
46
|
+
HostsHelper.send(:include, ForemanBootdisk::HostsHelperExt)
|
47
|
+
UnattendedController.send(:include, ForemanBootdisk::UnattendedControllerExt)
|
49
48
|
rescue => e
|
50
|
-
puts "#{
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
rake_tasks do
|
55
|
-
Rake::Task['db:seed'].enhance do
|
56
|
-
Bootdisk::Engine.load_seed
|
49
|
+
puts "#{ForemanBootdisk::ENGINE_NAME}: skipping engine hook (#{e.to_s})"
|
57
50
|
end
|
58
51
|
end
|
59
52
|
end
|
data/lib/tasks/bootdisk.rake
CHANGED
@@ -5,7 +5,7 @@ namespace :bootdisk do
|
|
5
5
|
host = Host::Base.find_by_name(ENV['NAME']) || raise("cannot find host '#{ENV['NAME']}', specify NAME=fqdn")
|
6
6
|
tmpl = host.bootdisk_template_render
|
7
7
|
|
8
|
-
|
8
|
+
ForemanBootdisk::ISOGenerator.new(tmpl).generate do |image|
|
9
9
|
output = ENV['OUTPUT'] || "#{host.name}.iso"
|
10
10
|
FileUtils.cp image, output
|
11
11
|
puts "Wrote #{output}"
|
@@ -14,9 +14,9 @@ namespace :bootdisk do
|
|
14
14
|
|
15
15
|
desc 'Generate a generic boot disk. OUTPUT=path'
|
16
16
|
task :generic => :environment do
|
17
|
-
tmpl =
|
17
|
+
tmpl = ForemanBootdisk::Renderer.new.generic_template_render
|
18
18
|
|
19
|
-
|
19
|
+
ForemanBootdisk::ISOGenerator.new(tmpl).generate do |image|
|
20
20
|
output = ENV['OUTPUT'] || "bootdisk_#{URI.parse(Setting[:foreman_url]).host}.iso"
|
21
21
|
FileUtils.cp image, output
|
22
22
|
puts "Wrote #{output}"
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
|
+
# Translators:
|
6
|
+
# Paul Puschmann, 2014
|
7
|
+
# simon11 <simon.stieger.98@live.de>, 2014
|
8
|
+
msgid ""
|
9
|
+
msgstr ""
|
10
|
+
"Project-Id-Version: Foreman\n"
|
11
|
+
"Report-Msgid-Bugs-To: \n"
|
12
|
+
"POT-Creation-Date: 2014-02-13 12:18+0000\n"
|
13
|
+
"PO-Revision-Date: 2014-07-09 08:11+0000\n"
|
14
|
+
"Last-Translator: simon11 <simon.stieger.98@live.de>\n"
|
15
|
+
"Language-Team: German (http://www.transifex.com/projects/p/foreman/language/de/)\n"
|
16
|
+
"MIME-Version: 1.0\n"
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
19
|
+
"Language: de\n"
|
20
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
21
|
+
|
22
|
+
msgid "Boot disk"
|
23
|
+
msgstr "Boot disk"
|
24
|
+
|
25
|
+
msgid ""
|
26
|
+
"Bootdisk is not supported with safemode rendering, please disable "
|
27
|
+
"safemode_render under Adminster>Settings"
|
28
|
+
msgstr "Bootdisk mit Safemode-Abbildung wird nicht unterstützt, bitte deaktiviere safemode_render unter Verwalten > Einstellungen"
|
29
|
+
|
30
|
+
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
31
|
+
msgstr "Kommando zur Erstellung von ISO-Images, verwende genisoimage oder mkisofs"
|
32
|
+
|
33
|
+
msgid "Failed to render boot disk template: %s"
|
34
|
+
msgstr "Fehler beim Abbilden der Bootdisk-Vorlage: %s"
|
35
|
+
|
36
|
+
msgid "Generic image"
|
37
|
+
msgstr "Generisches Image"
|
38
|
+
|
39
|
+
msgid "Host '%s' image"
|
40
|
+
msgstr "Host '%s' Image"
|
41
|
+
|
42
|
+
msgid "Host has no IP address defined"
|
43
|
+
msgstr "Host hat keine IP-Adresse definiert"
|
44
|
+
|
45
|
+
msgid "Host has no domain defined"
|
46
|
+
msgstr "Host hat keine Domäne definiert"
|
47
|
+
|
48
|
+
msgid "Host has no subnet defined"
|
49
|
+
msgstr "Host hat kein Subnetz definiert"
|
50
|
+
|
51
|
+
msgid "ISO build failed"
|
52
|
+
msgstr "ISO-Erstellung fehlgeschlagen"
|
53
|
+
|
54
|
+
msgid "ISO hybrid conversion failed"
|
55
|
+
msgstr "ISO hybrid Konvertierung fehlgeschlagen"
|
56
|
+
|
57
|
+
msgid "Path to directory containing iPXE images"
|
58
|
+
msgstr "Pfad zum Verzeichnis mit iPXE Images"
|
59
|
+
|
60
|
+
msgid "Path to directory containing syslinux images"
|
61
|
+
msgstr "Pfad zum Verzeichnis mit syslinux Images"
|
62
|
+
|
63
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
64
|
+
msgstr "Bitte stelle sicher, dass die Pakete ipxe-bootimgs und syslinux installiert sind."
|
65
|
+
|
66
|
+
msgid "Subnet (%s) has no gateway defined"
|
67
|
+
msgstr "Subnetz (%s) hat keinen Gateway definiert"
|
68
|
+
|
69
|
+
msgid "Subnet (%s) has no primary DNS server defined"
|
70
|
+
msgstr "Subnetz (%s) hat keinen primären DNS-Server definiert"
|
71
|
+
|
72
|
+
msgid ""
|
73
|
+
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
74
|
+
"to a new template to customize."
|
75
|
+
msgstr "Template is read-only as it's supplied in foreman_bootdisk. Please copy it to a new template to customize."
|
76
|
+
|
77
|
+
msgid "Unable to find template specified by %s setting"
|
78
|
+
msgstr "Konnte Vorlage mit der %s-Einstellung nicht finden"
|
79
|
+
|
80
|
+
msgid "iPXE template to use for generic host boot disks"
|
81
|
+
msgstr "iPXE Vorlage zur Verwendung für generische host boot disks"
|
82
|
+
|
83
|
+
msgid "iPXE template to use for host-specific boot disks"
|
84
|
+
msgstr "iPXE Vorlage zur Verwendung für host-spezifische boot disks"
|
@@ -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-
|
10
|
+
"POT-Creation-Date: 2014-08-05 10:56+0100\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"
|
@@ -65,9 +65,6 @@ msgstr ""
|
|
65
65
|
msgid "Subnet (%s) has no primary DNS server defined"
|
66
66
|
msgstr ""
|
67
67
|
|
68
|
-
msgid "Template is read-only as it's supplied in foreman_bootdisk. Please copy it to a new template to customize."
|
69
|
-
msgstr ""
|
70
|
-
|
71
68
|
msgid "Unable to find template specified by %s setting"
|
72
69
|
msgstr ""
|
73
70
|
|
@@ -1,16 +1,16 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# This file is distributed under the same license as
|
4
|
-
#
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
5
|
# Translators:
|
6
|
-
#
|
6
|
+
# Dominic Cleal <dcleal@redhat.com>, 2014
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: Foreman\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2014-02-13 12:
|
12
|
-
"PO-Revision-Date: 2014-02-13 12:
|
13
|
-
"Last-Translator:
|
11
|
+
"POT-Creation-Date: 2014-02-13 12:18+0000\n"
|
12
|
+
"PO-Revision-Date: 2014-02-13 12:20+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"
|
@@ -18,89 +18,66 @@ msgstr ""
|
|
18
18
|
"Language: en_GB\n"
|
19
19
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
msgstr "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
24
|
-
|
25
|
-
#: app/services/bootdisk/iso_generator.rb:34
|
26
|
-
msgid "ISO build failed"
|
27
|
-
msgstr "ISO build failed"
|
28
|
-
|
29
|
-
#: app/services/bootdisk/iso_generator.rb:39
|
30
|
-
msgid "ISO hybrid conversion failed"
|
31
|
-
msgstr "ISO hybrid conversion failed"
|
21
|
+
msgid "Boot disk"
|
22
|
+
msgstr "Boot disk"
|
32
23
|
|
33
|
-
#: app/services/bootdisk/renderer.rb:8
|
34
|
-
#: app/models/concerns/bootdisk/host_ext.rb:10
|
35
24
|
msgid ""
|
36
25
|
"Bootdisk is not supported with safemode rendering, please disable "
|
37
26
|
"safemode_render under Adminster>Settings"
|
38
27
|
msgstr "Bootdisk is not supported with safemode rendering, please disable safemode_render under Adminster>Settings"
|
39
28
|
|
40
|
-
#: app/services/bootdisk/renderer.rb:10
|
41
|
-
#: app/models/concerns/bootdisk/host_ext.rb:5
|
42
|
-
msgid "Unable to find template specified by %s setting"
|
43
|
-
msgstr "Unable to find template specified by %s setting"
|
44
|
-
|
45
|
-
#: app/controllers/bootdisk/disks_controller.rb:9
|
46
|
-
#: app/controllers/concerns/bootdisk/hosts_controller_ext.rb:13
|
47
|
-
msgid "Failed to render boot disk template: %s"
|
48
|
-
msgstr "Failed to render boot disk template: %s"
|
49
|
-
|
50
|
-
#: app/models/setting/bootdisk.rb:11
|
51
|
-
msgid "Path to directory containing iPXE images"
|
52
|
-
msgstr "Path to directory containing iPXE images"
|
53
|
-
|
54
|
-
#: app/models/setting/bootdisk.rb:12
|
55
|
-
msgid "Path to directory containing syslinux images"
|
56
|
-
msgstr "Path to directory containing syslinux images"
|
57
|
-
|
58
|
-
#: app/models/setting/bootdisk.rb:13
|
59
|
-
msgid "iPXE template to use for host-specific boot disks"
|
60
|
-
msgstr "iPXE template to use for host-specific boot disks"
|
61
|
-
|
62
|
-
#: app/models/setting/bootdisk.rb:14
|
63
|
-
msgid "iPXE template to use for generic host boot disks"
|
64
|
-
msgstr "iPXE template to use for generic host boot disks"
|
65
|
-
|
66
|
-
#: app/models/setting/bootdisk.rb:15
|
67
29
|
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
68
30
|
msgstr "Command to generate ISO image, use genisoimage or mkisofs"
|
69
31
|
|
70
|
-
|
71
|
-
|
72
|
-
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
73
|
-
"to a new template to customize."
|
74
|
-
msgstr "Template is read-only as it's supplied in foreman_bootdisk. Please copy it to a new template to customise."
|
32
|
+
msgid "Failed to render boot disk template: %s"
|
33
|
+
msgstr "Failed to render boot disk template: %s"
|
75
34
|
|
76
|
-
|
77
|
-
|
78
|
-
msgstr "Boot disk"
|
35
|
+
msgid "Generic image"
|
36
|
+
msgstr "Generic image"
|
79
37
|
|
80
|
-
#: app/helpers/concerns/bootdisk/hosts_helper_ext.rb:12
|
81
38
|
msgid "Host '%s' image"
|
82
39
|
msgstr "Host '%s' image"
|
83
40
|
|
84
|
-
#: app/helpers/concerns/bootdisk/hosts_helper_ext.rb:13
|
85
|
-
msgid "Generic image"
|
86
|
-
msgstr "Generic image"
|
87
|
-
|
88
|
-
#: app/views/bootdisk/host.erb:8
|
89
41
|
msgid "Host has no IP address defined"
|
90
42
|
msgstr "Host has no IP address defined"
|
91
43
|
|
92
|
-
|
44
|
+
msgid "Host has no domain defined"
|
45
|
+
msgstr "Host has no domain defined"
|
46
|
+
|
93
47
|
msgid "Host has no subnet defined"
|
94
48
|
msgstr "Host has no subnet defined"
|
95
49
|
|
96
|
-
|
97
|
-
|
98
|
-
|
50
|
+
msgid "ISO build failed"
|
51
|
+
msgstr "ISO build failed"
|
52
|
+
|
53
|
+
msgid "ISO hybrid conversion failed"
|
54
|
+
msgstr "ISO hybrid conversion failed"
|
55
|
+
|
56
|
+
msgid "Path to directory containing iPXE images"
|
57
|
+
msgstr "Path to directory containing iPXE images"
|
58
|
+
|
59
|
+
msgid "Path to directory containing syslinux images"
|
60
|
+
msgstr "Path to directory containing syslinux images"
|
61
|
+
|
62
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
63
|
+
msgstr "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
99
64
|
|
100
|
-
#: app/views/bootdisk/host.erb:11
|
101
65
|
msgid "Subnet (%s) has no gateway defined"
|
102
66
|
msgstr "Subnet (%s) has no gateway defined"
|
103
67
|
|
104
|
-
#: app/views/bootdisk/host.erb:12
|
105
68
|
msgid "Subnet (%s) has no primary DNS server defined"
|
106
69
|
msgstr "Subnet (%s) has no primary DNS server defined"
|
70
|
+
|
71
|
+
msgid ""
|
72
|
+
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
73
|
+
"to a new template to customize."
|
74
|
+
msgstr "Template is read-only as it's supplied in foreman_bootdisk. Please copy it to a new template to customise."
|
75
|
+
|
76
|
+
msgid "Unable to find template specified by %s setting"
|
77
|
+
msgstr "Unable to find template specified by %s setting"
|
78
|
+
|
79
|
+
msgid "iPXE template to use for generic host boot disks"
|
80
|
+
msgstr "iPXE template to use for generic host boot disks"
|
81
|
+
|
82
|
+
msgid "iPXE template to use for host-specific boot disks"
|
83
|
+
msgstr "iPXE template to use for host-specific boot disks"
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
|
+
# Translators:
|
6
|
+
# Sergio Ocón <sergio@redhat.com>, 2014
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: Foreman\n"
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
11
|
+
"POT-Creation-Date: 2014-02-13 12:18+0000\n"
|
12
|
+
"PO-Revision-Date: 2014-05-21 10:02+0000\n"
|
13
|
+
"Last-Translator: Sergio Ocón <sergio@redhat.com>\n"
|
14
|
+
"Language-Team: Spanish (http://www.transifex.com/projects/p/foreman/language/es/)\n"
|
15
|
+
"MIME-Version: 1.0\n"
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
18
|
+
"Language: es\n"
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
|
+
|
21
|
+
msgid "Boot disk"
|
22
|
+
msgstr "Disco de arranque"
|
23
|
+
|
24
|
+
msgid ""
|
25
|
+
"Bootdisk is not supported with safemode rendering, please disable "
|
26
|
+
"safemode_render under Adminster>Settings"
|
27
|
+
msgstr "No se soporta un disco de arranque en el modo seguro de representación, deshabilite safemode_render bajo Administración>Configuración"
|
28
|
+
|
29
|
+
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
30
|
+
msgstr "Comando para generar una imagen ISO, use genisoimage o mkisofs"
|
31
|
+
|
32
|
+
msgid "Failed to render boot disk template: %s"
|
33
|
+
msgstr "Fallo en la entrega de la plantilla del disco de arranque: %s"
|
34
|
+
|
35
|
+
msgid "Generic image"
|
36
|
+
msgstr "Imagen genérica"
|
37
|
+
|
38
|
+
msgid "Host '%s' image"
|
39
|
+
msgstr "Imagen del host '%s'"
|
40
|
+
|
41
|
+
msgid "Host has no IP address defined"
|
42
|
+
msgstr "El host no tiene dirección IP definida"
|
43
|
+
|
44
|
+
msgid "Host has no domain defined"
|
45
|
+
msgstr "El host no tiene dominio definido"
|
46
|
+
|
47
|
+
msgid "Host has no subnet defined"
|
48
|
+
msgstr "El host no tiene subred definida"
|
49
|
+
|
50
|
+
msgid "ISO build failed"
|
51
|
+
msgstr "Error en la construcción del ISO"
|
52
|
+
|
53
|
+
msgid "ISO hybrid conversion failed"
|
54
|
+
msgstr "Error en la conversión del ISO Híbrido"
|
55
|
+
|
56
|
+
msgid "Path to directory containing iPXE images"
|
57
|
+
msgstr "Ruta al directorio que contiene las imágenes iPXE"
|
58
|
+
|
59
|
+
msgid "Path to directory containing syslinux images"
|
60
|
+
msgstr "Ruta al directorio que contiene las imágenes syslinux"
|
61
|
+
|
62
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
63
|
+
msgstr "Asegúrese de que los paquetes ipxe-bootimgs y syslinux están instalados."
|
64
|
+
|
65
|
+
msgid "Subnet (%s) has no gateway defined"
|
66
|
+
msgstr "La subred (%s) no tiene gateway definida"
|
67
|
+
|
68
|
+
msgid "Subnet (%s) has no primary DNS server defined"
|
69
|
+
msgstr "La subred (%s) no tiene servidor DNS primario definido"
|
70
|
+
|
71
|
+
msgid ""
|
72
|
+
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
73
|
+
"to a new template to customize."
|
74
|
+
msgstr "La plantilla es de solo lectura al proporcionarse en foreman_bootdisk. Cópiela en una nueva plantilla para customizarla"
|
75
|
+
|
76
|
+
msgid "Unable to find template specified by %s setting"
|
77
|
+
msgstr "No ha sido posible encontrar la plantilla especificada por el parámetro de configuración %s"
|
78
|
+
|
79
|
+
msgid "iPXE template to use for generic host boot disks"
|
80
|
+
msgstr "Plantilla iPXE para usar en discos de arranque de host genéricos"
|
81
|
+
|
82
|
+
msgid "iPXE template to use for host-specific boot disks"
|
83
|
+
msgstr "Plantilla iPXE para usar en discos de arranque de hosts particulares"
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
|
+
#, fuzzy
|
6
|
+
msgid ""
|
7
|
+
msgstr ""
|
8
|
+
"Project-Id-Version: version 0.0.1\n"
|
9
|
+
"Report-Msgid-Bugs-To: \n"
|
10
|
+
"POT-Creation-Date: 2014-08-05 10:56+0100\n"
|
11
|
+
"PO-Revision-Date: 2014-02-13 12:09+0000\n"
|
12
|
+
"Last-Translator: Dominic Cleal <dcleal@redhat.com>\n"
|
13
|
+
"Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
|
14
|
+
"Language: \n"
|
15
|
+
"MIME-Version: 1.0\n"
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
18
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
19
|
+
|
20
|
+
msgid "Boot disk"
|
21
|
+
msgstr ""
|
22
|
+
|
23
|
+
msgid "Bootdisk is not supported with safemode rendering, please disable safemode_render under Adminster>Settings"
|
24
|
+
msgstr ""
|
25
|
+
|
26
|
+
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
27
|
+
msgstr ""
|
28
|
+
|
29
|
+
msgid "Failed to render boot disk template: %s"
|
30
|
+
msgstr ""
|
31
|
+
|
32
|
+
msgid "Generic image"
|
33
|
+
msgstr ""
|
34
|
+
|
35
|
+
msgid "Host '%s' image"
|
36
|
+
msgstr ""
|
37
|
+
|
38
|
+
msgid "Host has no IP address defined"
|
39
|
+
msgstr ""
|
40
|
+
|
41
|
+
msgid "Host has no domain defined"
|
42
|
+
msgstr ""
|
43
|
+
|
44
|
+
msgid "Host has no subnet defined"
|
45
|
+
msgstr ""
|
46
|
+
|
47
|
+
msgid "ISO build failed"
|
48
|
+
msgstr ""
|
49
|
+
|
50
|
+
msgid "ISO hybrid conversion failed"
|
51
|
+
msgstr ""
|
52
|
+
|
53
|
+
msgid "Path to directory containing iPXE images"
|
54
|
+
msgstr ""
|
55
|
+
|
56
|
+
msgid "Path to directory containing syslinux images"
|
57
|
+
msgstr ""
|
58
|
+
|
59
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
60
|
+
msgstr ""
|
61
|
+
|
62
|
+
msgid "Subnet (%s) has no gateway defined"
|
63
|
+
msgstr ""
|
64
|
+
|
65
|
+
msgid "Subnet (%s) has no primary DNS server defined"
|
66
|
+
msgstr ""
|
67
|
+
|
68
|
+
msgid "Unable to find template specified by %s setting"
|
69
|
+
msgstr ""
|
70
|
+
|
71
|
+
msgid "iPXE template to use for generic host boot disks"
|
72
|
+
msgstr ""
|
73
|
+
|
74
|
+
msgid "iPXE template to use for host-specific boot disks"
|
75
|
+
msgstr ""
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
|
+
# Translators:
|
6
|
+
# Claer <transiblu@claer.hammock.fr>, 2014
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: Foreman\n"
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
11
|
+
"POT-Creation-Date: 2014-02-13 12:18+0000\n"
|
12
|
+
"PO-Revision-Date: 2014-02-13 18:20+0000\n"
|
13
|
+
"Last-Translator: Claer <transiblu@claer.hammock.fr>\n"
|
14
|
+
"Language-Team: French (http://www.transifex.com/projects/p/foreman/language/fr/)\n"
|
15
|
+
"MIME-Version: 1.0\n"
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
18
|
+
"Language: fr\n"
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
20
|
+
|
21
|
+
msgid "Boot disk"
|
22
|
+
msgstr "Disque de boot"
|
23
|
+
|
24
|
+
msgid ""
|
25
|
+
"Bootdisk is not supported with safemode rendering, please disable "
|
26
|
+
"safemode_render under Adminster>Settings"
|
27
|
+
msgstr "Bootdisk n'est pas supporté en simultané de safemode rendering. Merci de désactiver safemode_render dans Administrer > Paramètres."
|
28
|
+
|
29
|
+
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
30
|
+
msgstr "Commande servant à générer l'image ISO, utiliser genisoimage ou mkisofs"
|
31
|
+
|
32
|
+
msgid "Failed to render boot disk template: %s"
|
33
|
+
msgstr "Impossible d'appliquer le modèle de disque : %s"
|
34
|
+
|
35
|
+
msgid "Generic image"
|
36
|
+
msgstr "Image générique"
|
37
|
+
|
38
|
+
msgid "Host '%s' image"
|
39
|
+
msgstr "Image de l'hôte '%s'"
|
40
|
+
|
41
|
+
msgid "Host has no IP address defined"
|
42
|
+
msgstr "L'hôte n'a aucune adresse IP définie"
|
43
|
+
|
44
|
+
msgid "Host has no domain defined"
|
45
|
+
msgstr "L'hôte n'a aucun domaine défini"
|
46
|
+
|
47
|
+
msgid "Host has no subnet defined"
|
48
|
+
msgstr "L'hôte n'a aucun sous réseau défini"
|
49
|
+
|
50
|
+
msgid "ISO build failed"
|
51
|
+
msgstr "La création de l'image ISO a échoué"
|
52
|
+
|
53
|
+
msgid "ISO hybrid conversion failed"
|
54
|
+
msgstr "La conversion de l'image ISO hybride a échoué"
|
55
|
+
|
56
|
+
msgid "Path to directory containing iPXE images"
|
57
|
+
msgstr "Emplacement du répertoire contenant les images iPXE"
|
58
|
+
|
59
|
+
msgid "Path to directory containing syslinux images"
|
60
|
+
msgstr "Emplacement du répertoire contenant les images syslinux"
|
61
|
+
|
62
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
63
|
+
msgstr "Merci de vérifier que les paquets ipxe-bootimgs et syslinux soient installés."
|
64
|
+
|
65
|
+
msgid "Subnet (%s) has no gateway defined"
|
66
|
+
msgstr "Le sous réseau (%s) n'a pas de passerelle définie"
|
67
|
+
|
68
|
+
msgid "Subnet (%s) has no primary DNS server defined"
|
69
|
+
msgstr "Le sous réseau (%s) n'a pas de serveur DNS primaire défini"
|
70
|
+
|
71
|
+
msgid ""
|
72
|
+
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
73
|
+
"to a new template to customize."
|
74
|
+
msgstr "Le modèle est en lecture seule car il est fourni par foreman_bootdisk. Merci de le recopier vers un nouveau modèle pour avoir une version éditable."
|
75
|
+
|
76
|
+
msgid "Unable to find template specified by %s setting"
|
77
|
+
msgstr "Impossible de trouver un modèle spécifié par le paramètre %s"
|
78
|
+
|
79
|
+
msgid "iPXE template to use for generic host boot disks"
|
80
|
+
msgstr "Modèle iPXE à appliquer pour les disques de boot génériques"
|
81
|
+
|
82
|
+
msgid "iPXE template to use for host-specific boot disks"
|
83
|
+
msgstr "Le modèle iPXE à appliquer pour des disques de boot spécifiques à l'hôte"
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
|
+
# Translators:
|
6
|
+
msgid ""
|
7
|
+
msgstr ""
|
8
|
+
"Project-Id-Version: Foreman\n"
|
9
|
+
"Report-Msgid-Bugs-To: \n"
|
10
|
+
"POT-Creation-Date: 2014-02-13 12:18+0000\n"
|
11
|
+
"PO-Revision-Date: 2014-03-30 04:00+0000\n"
|
12
|
+
"Last-Translator: Flamarion Jorge Flamarion <jorge.flamarion@gmail.com>\n"
|
13
|
+
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/foreman/language/pt_BR/)\n"
|
14
|
+
"MIME-Version: 1.0\n"
|
15
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16
|
+
"Content-Transfer-Encoding: 8bit\n"
|
17
|
+
"Language: pt_BR\n"
|
18
|
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
19
|
+
|
20
|
+
msgid "Boot disk"
|
21
|
+
msgstr "Disco de boot"
|
22
|
+
|
23
|
+
msgid ""
|
24
|
+
"Bootdisk is not supported with safemode rendering, please disable "
|
25
|
+
"safemode_render under Adminster>Settings"
|
26
|
+
msgstr "Disco de boot não e suportado com o modo seguro de interpretação, por favor desabilite o safemode_render em Administrar>Configurações"
|
27
|
+
|
28
|
+
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
29
|
+
msgstr "Comando para gerar imagem ISO usar genisoimage ou mkisofs"
|
30
|
+
|
31
|
+
msgid "Failed to render boot disk template: %s"
|
32
|
+
msgstr "Falha ro interpretar o template de disco de boot: %s"
|
33
|
+
|
34
|
+
msgid "Generic image"
|
35
|
+
msgstr "Imagem genérica"
|
36
|
+
|
37
|
+
msgid "Host '%s' image"
|
38
|
+
msgstr "Imagem '%s' de host"
|
39
|
+
|
40
|
+
msgid "Host has no IP address defined"
|
41
|
+
msgstr "Host não tem um endereço IP definido"
|
42
|
+
|
43
|
+
msgid "Host has no domain defined"
|
44
|
+
msgstr "Host não tem um domínio definido"
|
45
|
+
|
46
|
+
msgid "Host has no subnet defined"
|
47
|
+
msgstr "Host não tem uma subrede definida"
|
48
|
+
|
49
|
+
msgid "ISO build failed"
|
50
|
+
msgstr "Construção da ISO falhou"
|
51
|
+
|
52
|
+
msgid "ISO hybrid conversion failed"
|
53
|
+
msgstr "Conversão da ISO híbrida falhou"
|
54
|
+
|
55
|
+
msgid "Path to directory containing iPXE images"
|
56
|
+
msgstr "Caminho do diretório contendo imagens iPXE"
|
57
|
+
|
58
|
+
msgid "Path to directory containing syslinux images"
|
59
|
+
msgstr "Caminho do diretório contendo imagens syslinux"
|
60
|
+
|
61
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
62
|
+
msgstr "Por favor garanta que os pacotes ipxe-bootimgs e syslinux estejam instalados"
|
63
|
+
|
64
|
+
msgid "Subnet (%s) has no gateway defined"
|
65
|
+
msgstr "Subrede (%s) não tem um gateway definido"
|
66
|
+
|
67
|
+
msgid "Subnet (%s) has no primary DNS server defined"
|
68
|
+
msgstr "Subrede (%s) não tem um servidor DNS primário definido"
|
69
|
+
|
70
|
+
msgid ""
|
71
|
+
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
72
|
+
"to a new template to customize."
|
73
|
+
msgstr "Template está somente leitura como é fornecido em foreman_bootdisk. Por favor copie para um novo modelo e personalize."
|
74
|
+
|
75
|
+
msgid "Unable to find template specified by %s setting"
|
76
|
+
msgstr "Impossível encontrar template especificado pela configuração %s"
|
77
|
+
|
78
|
+
msgid "iPXE template to use for generic host boot disks"
|
79
|
+
msgstr "Template iPXE para uso em discos de boot de hosts genéricos"
|
80
|
+
|
81
|
+
msgid "iPXE template to use for host-specific boot disks"
|
82
|
+
msgstr "Template iPXE para uso em discos de boot de hosts específicos"
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# foreman_bootdisk
|
2
|
+
#
|
3
|
+
# This file is distributed under the same license as foreman_bootdisk.
|
4
|
+
#
|
5
|
+
# Translators:
|
6
|
+
# johnny.westerlund <johnny.westerlund@gmail.com>, 2014
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: Foreman\n"
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
11
|
+
"POT-Creation-Date: 2014-02-13 12:18+0000\n"
|
12
|
+
"PO-Revision-Date: 2014-02-18 11:20+0000\n"
|
13
|
+
"Last-Translator: johnny.westerlund <johnny.westerlund@gmail.com>\n"
|
14
|
+
"Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/foreman/language/sv_SE/)\n"
|
15
|
+
"MIME-Version: 1.0\n"
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
18
|
+
"Language: sv_SE\n"
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
|
+
|
21
|
+
msgid "Boot disk"
|
22
|
+
msgstr "Startdisk"
|
23
|
+
|
24
|
+
msgid ""
|
25
|
+
"Bootdisk is not supported with safemode rendering, please disable "
|
26
|
+
"safemode_render under Adminster>Settings"
|
27
|
+
msgstr "Startdisk är inte supportat med \"safemode\" rendering aktiverat, var vänlig och inaktivera \"safemode_render\" under Administration>Inställningar"
|
28
|
+
|
29
|
+
msgid "Command to generate ISO image, use genisoimage or mkisofs"
|
30
|
+
msgstr "Kommando för att generera ISO-avbildningar, använd genisoimage eller mkisofs"
|
31
|
+
|
32
|
+
msgid "Failed to render boot disk template: %s"
|
33
|
+
msgstr "Misslyckades att tolka startdiskmallen: %s"
|
34
|
+
|
35
|
+
msgid "Generic image"
|
36
|
+
msgstr "Generell avbildning"
|
37
|
+
|
38
|
+
msgid "Host '%s' image"
|
39
|
+
msgstr "Värden '%s' avbildning"
|
40
|
+
|
41
|
+
msgid "Host has no IP address defined"
|
42
|
+
msgstr "Värden har ingen IP-adress definierad"
|
43
|
+
|
44
|
+
msgid "Host has no domain defined"
|
45
|
+
msgstr "Värden har ingen domän definierad"
|
46
|
+
|
47
|
+
msgid "Host has no subnet defined"
|
48
|
+
msgstr "Värden har inget subnät definierat"
|
49
|
+
|
50
|
+
msgid "ISO build failed"
|
51
|
+
msgstr "ISO-bygget misslyckades"
|
52
|
+
|
53
|
+
msgid "ISO hybrid conversion failed"
|
54
|
+
msgstr "ISO hybridkonvertering misslyckades"
|
55
|
+
|
56
|
+
msgid "Path to directory containing iPXE images"
|
57
|
+
msgstr "Sökvägen till ett bibliotek med iPXE-avbildningar"
|
58
|
+
|
59
|
+
msgid "Path to directory containing syslinux images"
|
60
|
+
msgstr "Sökvägen till ett bibliotek med syslinux-avbildningar"
|
61
|
+
|
62
|
+
msgid "Please ensure the ipxe-bootimgs and syslinux packages are installed."
|
63
|
+
msgstr "Vär vänlig och säkerställ att ipxe-startavbildningarna och syslinux paketen är installerade."
|
64
|
+
|
65
|
+
msgid "Subnet (%s) has no gateway defined"
|
66
|
+
msgstr "Subnät (%s) har ingen nätsluss definierad"
|
67
|
+
|
68
|
+
msgid "Subnet (%s) has no primary DNS server defined"
|
69
|
+
msgstr "Subnät (%s) har ingen primär DNS-server definierad"
|
70
|
+
|
71
|
+
msgid ""
|
72
|
+
"Template is read-only as it's supplied in foreman_bootdisk. Please copy it "
|
73
|
+
"to a new template to customize."
|
74
|
+
msgstr "Mallen är skrivskyddad eftersom den används i \"foreman_bootdisk\". Var vänligt och kopiera den till en ny mall för att ändra."
|
75
|
+
|
76
|
+
msgid "Unable to find template specified by %s setting"
|
77
|
+
msgstr "Går inte att hitta mallen specificerad med inställningen %s"
|
78
|
+
|
79
|
+
msgid "iPXE template to use for generic host boot disks"
|
80
|
+
msgstr "iPXE-mall att använda som generell startdisk fär värdar"
|
81
|
+
|
82
|
+
msgid "iPXE template to use for host-specific boot disks"
|
83
|
+
msgstr "iPXE-mall att använda för värdspecifik startdisk"
|
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
|
+
version: 3.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-05
|
11
|
+
date: 2014-08-05 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.
|
@@ -25,17 +25,16 @@ files:
|
|
25
25
|
- LICENSE
|
26
26
|
- README.md
|
27
27
|
- Rakefile
|
28
|
-
- app/controllers/
|
29
|
-
- app/controllers/concerns/
|
30
|
-
- app/controllers/
|
31
|
-
- app/helpers/concerns/
|
32
|
-
- app/models/concerns/
|
33
|
-
- app/models/concerns/bootdisk/host_ext.rb
|
28
|
+
- app/controllers/concerns/foreman_bootdisk/hosts_controller_ext.rb
|
29
|
+
- app/controllers/concerns/foreman_bootdisk/unattended_controller_ext.rb
|
30
|
+
- app/controllers/foreman_bootdisk/disks_controller.rb
|
31
|
+
- app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb
|
32
|
+
- app/models/concerns/foreman_bootdisk/host_ext.rb
|
34
33
|
- app/models/setting/bootdisk.rb
|
35
|
-
- app/services/
|
36
|
-
- app/services/
|
37
|
-
- app/views/
|
38
|
-
- app/views/
|
34
|
+
- app/services/foreman_bootdisk/iso_generator.rb
|
35
|
+
- app/services/foreman_bootdisk/renderer.rb
|
36
|
+
- app/views/foreman_bootdisk/generic_host.erb
|
37
|
+
- app/views/foreman_bootdisk/host.erb
|
39
38
|
- config/routes.rb
|
40
39
|
- db/migrate/20130914211030_create_host_bootdisk_template.rb
|
41
40
|
- db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb
|
@@ -43,14 +42,19 @@ files:
|
|
43
42
|
- db/migrate/20130915201457_create_generic_host_bootdisk_template.rb
|
44
43
|
- db/migrate/20131021095100_edit_host_bootdisk_template_dns_secondary.rb
|
45
44
|
- db/migrate/20140522185700_change_templatekind_to_bootdisk.rb
|
46
|
-
- db/seeds.rb
|
47
|
-
- lib/bootdisk/engine.rb
|
48
|
-
- lib/bootdisk/version.rb
|
45
|
+
- db/seeds.d/50-bootdisk_templates.rb
|
49
46
|
- lib/foreman_bootdisk.rb
|
47
|
+
- lib/foreman_bootdisk/engine.rb
|
48
|
+
- lib/foreman_bootdisk/version.rb
|
50
49
|
- lib/tasks/bootdisk.rake
|
51
|
-
- locale/
|
52
|
-
- locale/
|
53
|
-
- locale/en_GB/
|
50
|
+
- locale/de/foreman_bootdisk.po
|
51
|
+
- locale/en/foreman_bootdisk.po
|
52
|
+
- locale/en_GB/foreman_bootdisk.po
|
53
|
+
- locale/es/foreman_bootdisk.po
|
54
|
+
- locale/foreman_bootdisk.pot
|
55
|
+
- locale/fr/foreman_bootdisk.po
|
56
|
+
- locale/pt_BR/foreman_bootdisk.po
|
57
|
+
- locale/sv_SE/foreman_bootdisk.po
|
54
58
|
homepage: http://github.com/theforeman/foreman_bootdisk
|
55
59
|
licenses:
|
56
60
|
- GPL-3
|
@@ -1,42 +0,0 @@
|
|
1
|
-
# Make templates supplied by the plugin read-only so they can be safely
|
2
|
-
# replaced during DB migrations.
|
3
|
-
module Bootdisk::ConfigTemplateExt
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
|
6
|
-
BOOTDISK_TMPLS = ['Boot disk iPXE - host', 'Boot disk iPXE - generic host']
|
7
|
-
|
8
|
-
included do
|
9
|
-
before_destroy :bootdisk_destroy?
|
10
|
-
validate :bootdisk_readonly
|
11
|
-
end
|
12
|
-
|
13
|
-
def bootdisk_destroy?
|
14
|
-
return true if ARGV.find { |a| a.start_with? "db:migrate" }
|
15
|
-
if BOOTDISK_TMPLS.include?(name)
|
16
|
-
bootdisk_add_error
|
17
|
-
false
|
18
|
-
else
|
19
|
-
true
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
def bootdisk_readonly
|
24
|
-
c = changes
|
25
|
-
|
26
|
-
# ignore CRLF changes
|
27
|
-
if c['template'] && (c['template'][0].nil? || c['template'][0].gsub("\n", "\r\n") == c['template'][1])
|
28
|
-
c.delete 'template'
|
29
|
-
end
|
30
|
-
|
31
|
-
# ignore nil to false changes
|
32
|
-
c.delete 'snippet' if c['snippet'] == [nil, false]
|
33
|
-
|
34
|
-
# allow the user to associate it, just not change the content
|
35
|
-
other_attrs = c.keys.find { |f| !['template_combinations', 'template_associations'].include? f }
|
36
|
-
bootdisk_add_error if BOOTDISK_TMPLS.include?(name_was) && other_attrs
|
37
|
-
end
|
38
|
-
|
39
|
-
def bootdisk_add_error
|
40
|
-
errors.add(:base, _("Template is read-only as it's supplied in foreman_bootdisk. Please copy it to a new template to customize."))
|
41
|
-
end
|
42
|
-
end
|
data/db/seeds.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
def format_errors(model = nil)
|
2
|
-
return '(nil found)' if model.nil?
|
3
|
-
model.errors.full_messages.join(';')
|
4
|
-
end
|
5
|
-
|
6
|
-
kind = TemplateKind.find_or_create_by_name('Bootdisk')
|
7
|
-
|
8
|
-
ConfigTemplate.without_auditing do
|
9
|
-
content = File.read(File.join(Bootdisk::Engine.root, 'app', 'views', 'bootdisk', 'host.erb'))
|
10
|
-
ConfigTemplate.find_or_create_by_name(
|
11
|
-
:name => 'Boot disk iPXE - host',
|
12
|
-
:template_kind_id => kind.id,
|
13
|
-
:snippet => false,
|
14
|
-
:template => content
|
15
|
-
).update_attribute(:template, content)
|
16
|
-
|
17
|
-
content = File.read(File.join(Bootdisk::Engine.root, 'app', 'views', 'bootdisk', 'generic_host.erb'))
|
18
|
-
ConfigTemplate.find_or_create_by_name(
|
19
|
-
:name => 'Boot disk iPXE - generic host',
|
20
|
-
:template_kind_id => kind.id,
|
21
|
-
:snippet => false,
|
22
|
-
:template => content
|
23
|
-
).update_attribute(:template, content)
|
24
|
-
end
|
data/lib/bootdisk/version.rb
DELETED