foreman_bootdisk 18.1.0 → 19.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_bootdisk/disks_controller.rb +49 -2
  3. data/config/routes.rb +1 -0
  4. data/db/migrate/20140522185700_change_templatekind_to_bootdisk.rb +3 -11
  5. data/lib/foreman_bootdisk/engine.rb +4 -2
  6. data/lib/foreman_bootdisk/version.rb +1 -1
  7. data/locale/ca/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  8. data/locale/ca/foreman_bootdisk.edit.po +393 -0
  9. data/locale/ca/foreman_bootdisk.po +7 -1
  10. data/locale/ca/foreman_bootdisk.po.time_stamp +0 -0
  11. data/locale/de/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  12. data/locale/de/foreman_bootdisk.edit.po +398 -0
  13. data/locale/de/foreman_bootdisk.po +7 -1
  14. data/locale/de/foreman_bootdisk.po.time_stamp +0 -0
  15. data/locale/en/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  16. data/locale/en/foreman_bootdisk.edit.po +388 -0
  17. data/locale/en/foreman_bootdisk.po +7 -1
  18. data/locale/en/foreman_bootdisk.po.time_stamp +0 -0
  19. data/locale/en_GB/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  20. data/locale/en_GB/foreman_bootdisk.edit.po +394 -0
  21. data/locale/en_GB/foreman_bootdisk.po +7 -1
  22. data/locale/en_GB/foreman_bootdisk.po.time_stamp +0 -0
  23. data/locale/es/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  24. data/locale/es/foreman_bootdisk.edit.po +394 -0
  25. data/locale/es/foreman_bootdisk.po +7 -1
  26. data/locale/es/foreman_bootdisk.po.time_stamp +0 -0
  27. data/locale/foreman_bootdisk.pot +27 -14
  28. data/locale/fr/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  29. data/locale/fr/foreman_bootdisk.edit.po +394 -0
  30. data/locale/fr/foreman_bootdisk.po +7 -1
  31. data/locale/fr/foreman_bootdisk.po.time_stamp +0 -0
  32. data/locale/it/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  33. data/locale/it/foreman_bootdisk.edit.po +391 -0
  34. data/locale/it/foreman_bootdisk.po +7 -1
  35. data/locale/it/foreman_bootdisk.po.time_stamp +0 -0
  36. data/locale/ja/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  37. data/locale/ja/foreman_bootdisk.edit.po +393 -0
  38. data/locale/ja/foreman_bootdisk.po +12 -6
  39. data/locale/ja/foreman_bootdisk.po.time_stamp +0 -0
  40. data/locale/ko/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  41. data/locale/ko/foreman_bootdisk.edit.po +390 -0
  42. data/locale/ko/foreman_bootdisk.po +7 -1
  43. data/locale/ko/foreman_bootdisk.po.time_stamp +0 -0
  44. data/locale/pt_BR/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  45. data/locale/pt_BR/foreman_bootdisk.edit.po +394 -0
  46. data/locale/pt_BR/foreman_bootdisk.po +7 -1
  47. data/locale/pt_BR/foreman_bootdisk.po.time_stamp +0 -0
  48. data/locale/ru/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  49. data/locale/ru/foreman_bootdisk.edit.po +395 -0
  50. data/locale/ru/foreman_bootdisk.po +7 -1
  51. data/locale/ru/foreman_bootdisk.po.time_stamp +0 -0
  52. data/locale/sv_SE/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  53. data/locale/sv_SE/foreman_bootdisk.edit.po +392 -0
  54. data/locale/sv_SE/foreman_bootdisk.po +7 -1
  55. data/locale/sv_SE/foreman_bootdisk.po.time_stamp +0 -0
  56. data/locale/zh_CN/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  57. data/locale/zh_CN/foreman_bootdisk.edit.po +391 -0
  58. data/locale/zh_CN/foreman_bootdisk.po +12 -6
  59. data/locale/zh_CN/foreman_bootdisk.po.time_stamp +0 -0
  60. data/locale/zh_TW/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  61. data/locale/zh_TW/foreman_bootdisk.edit.po +391 -0
  62. data/locale/zh_TW/foreman_bootdisk.po +7 -1
  63. data/locale/zh_TW/foreman_bootdisk.po.time_stamp +0 -0
  64. data/package.json +42 -0
  65. data/webpack/__mocks__/foremanReact/common/HOC.js +30 -0
  66. data/webpack/__mocks__/foremanReact/common/I18n.js +7 -0
  67. data/webpack/__mocks__/foremanReact/common/helpers.js +7 -0
  68. data/webpack/__mocks__/foremanReact/common/urlHelpers.js +8 -0
  69. data/webpack/__mocks__/foremanReact/constants.js +24 -0
  70. data/webpack/__mocks__/foremanReact/redux/API/APISelectors.js +6 -0
  71. data/webpack/__mocks__/foremanReact/redux/API/index.js +10 -0
  72. data/webpack/global_index.js +12 -0
  73. data/webpack/global_test_setup.js +11 -0
  74. data/webpack/index.js +0 -0
  75. data/webpack/src/extensions/constants.js +2 -0
  76. data/webpack/src/extensions/host/HostBootdiskButtons.js +71 -0
  77. data/webpack/src/extensions/host/HostBootdiskButtonsSelectors.js +27 -0
  78. data/webpack/src/extensions/host/__tests__/HostBootdiskButtonsSelectors.test.js +66 -0
  79. data/webpack/src/extensions/host/__tests__/__snapshots__/HostBootdiskButtonsSelectors.test.js.snap +30 -0
  80. metadata +46 -20
  81. data/.github/workflows/rubocop.yaml +0 -19
  82. data/.tx/config +0 -8
  83. data/AUTHORS +0 -34
  84. data/release-gem +0 -84
  85. data/test/functional/foreman_bootdisk/api/v2/disks_controller_test.rb +0 -97
  86. data/test/functional/foreman_bootdisk/api/v2/subnet_disks_controller_test.rb +0 -37
  87. data/test/functional/foreman_bootdisk/disks_controller_test.rb +0 -97
  88. data/test/functional/foreman_bootdisk/subnet_disks_controller_test.rb +0 -51
  89. data/test/models/host/managed_test.rb +0 -26
  90. data/test/test_plugin_helper.rb +0 -72
  91. data/test/unit/access_permissions_test.rb +0 -10
  92. data/test/unit/concerns/compute_resources/vmware_test.rb +0 -83
  93. data/test/unit/concerns/host_test.rb +0 -84
  94. data/test/unit/concerns/orchestration/compute_test.rb +0 -69
  95. data/test/unit/foreman_bootdisk/renderer_test.rb +0 -36
  96. data/test/unit/foreman_bootdisk/scope/bootdisk_test.rb +0 -31
  97. data/test/unit/foreman_bootdisk/scope/full_host_bootdisk_test.rb +0 -30
  98. data/test/unit/iso_generator_test.rb +0 -74
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bae1a6f6ec8738a5577fa0314357d3fbbc1ec3d406df374597991b02d28954ca
4
- data.tar.gz: '03834a3ecfa7fbc5950f42af43970937e11cb3f245591f7afd5c47ebbe3e02cc'
3
+ metadata.gz: d21663a31369d139b9bac432999214fbcdb8d0cab69e3fba545c8dde84534fab
4
+ data.tar.gz: 7ab0ae10f8f2b2bf3826185251c6b7abaf6588c2a076ed0263b218a6a2780313
5
5
  SHA512:
6
- metadata.gz: e9b0922dc86411ffbe6d24a9170ba1e3ce9222383ed65556f1e0d3f1efc9a7363746b3c37e3b82f0cdb0dd16c7f1f76274d57ce272f48da13f80607d2cb92fdf
7
- data.tar.gz: ea1871432fc83b73b5af5c5dce3d3cd0c1778f08c9ff474b64ac17096bfb503a4965d4c3540a23a623518236789dd29e6eae647916e550ad98414a7ef0f667d2
6
+ metadata.gz: ad56a6d4126ecd913dc9b1938b1995427ce26d67377457281301ec73b4deab28e5241dbfffb5b6f2233c768cd3eb465c12ab990129c430de85350962a37ec309
7
+ data.tar.gz: a8da031331b090a898f6b9fde9e37bcb4b8bfed1a5b6e5e1f876b8595f872aa0ec64278cbc7d799ee09466f81c2236e94f126b9347f6c0d925a5ea7501ca821a
@@ -9,9 +9,9 @@ module ForemanBootdisk
9
9
 
10
10
  helper DiskHelper
11
11
 
12
- before_action :bootdisk_type_allowed?, except: :help
12
+ before_action :bootdisk_type_allowed?, except: %i[help bootdisk_options]
13
13
 
14
- before_action :find_resource, only: %w[host full_host]
14
+ before_action :find_resource, only: %w[host full_host bootdisk_options]
15
15
 
16
16
  # as this engine is isolated, we need to include url helpers from core explicitly
17
17
  # to render help page layout
@@ -67,6 +67,24 @@ module ForemanBootdisk
67
67
 
68
68
  def help; end
69
69
 
70
+ def bootdisk_options
71
+ host = @disk
72
+
73
+ return not_found unless host
74
+
75
+ respond_to do |format|
76
+ format.json do
77
+ render json: {
78
+ bootdiskOptions: {
79
+ bootdiskDownloadable: !!host.bootdisk_downloadable?,
80
+ architectureName: host.architecture.name,
81
+ actions: bootdisk_allowed_actions(host),
82
+ },
83
+ }, status: :ok
84
+ end
85
+ end
86
+ end
87
+
70
88
  private
71
89
 
72
90
  def resource_scope(_controller = controller_name)
@@ -86,5 +104,34 @@ module ForemanBootdisk
86
104
  token = host.token
87
105
  token.update(expires: Time.zone.now + Setting[:token_duration].minutes)
88
106
  end
107
+
108
+ def bootdisk_allowed_actions(host)
109
+ return [] unless host.bootdisk_downloadable?
110
+
111
+ allowed = %w[host full_host].each_with_object([]) do |action, actions|
112
+ opts = {
113
+ controller: 'foreman_bootdisk/disks',
114
+ action: action,
115
+ id: host
116
+ }
117
+ next unless User.current.allowed_to?(opts) && Setting::Bootdisk.allowed_types.include?(action)
118
+
119
+ hostname = host.name.split('.')[0]
120
+ title = action == 'host' ? _("Host '%s' image") % hostname : _("Full host '%s' image") % hostname
121
+ disable_full_host = action == 'full_host' && !host.build?
122
+ actions << {
123
+ title: title,
124
+ link: "/bootdisk/disks/#{action}s/#{host.id}",
125
+ disabled: disable_full_host ? true : false,
126
+ description: disable_full_host ? _('Host is not in build mode') : nil
127
+ }
128
+ end
129
+ return allowed unless User.current.allowed_to?({controller: 'foreman_bootdisk/disks', action: 'help'})
130
+
131
+ allowed.push({
132
+ title: _('Boot disk help'),
133
+ link: '/bootdisk/disks/help'
134
+ })
135
+ end
89
136
  end
90
137
  end
data/config/routes.rb CHANGED
@@ -8,6 +8,7 @@ ForemanBootdisk::Engine.routes.draw do
8
8
  get 'hosts/:id', on: :collection, to: 'disks#host'
9
9
  get 'full_hosts/:id', on: :collection, to: 'disks#full_host'
10
10
  get 'subnet/:id', on: :collection, to: 'subnet_disks#subnet'
11
+ get 'bootdisk_options/:id', on: :collection, to: 'disks#bootdisk_options'
11
12
  end
12
13
  end
13
14
 
@@ -1,22 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ChangeTemplatekindToBootdisk < ActiveRecord::Migration[4.2]
4
- class FakeConfigTemplate < ApplicationRecord
5
- self.table_name = if ActiveRecord::Base.connection.migration_context.get_all_versions.include?(20_150_514_072_626)
6
- 'templates'
7
- else
8
- 'config_templates'
9
- end
10
- end
11
-
12
4
  def self.up
13
5
  kind = TemplateKind.where(name: 'Bootdisk').first_or_create
14
6
 
15
7
  tmpl_h = Setting.find_by(name: 'bootdisk_host_template').try(:value)
16
8
  tmpl_g = Setting.find_by(name: 'bootdisk_generic_host_template').try(:value)
17
9
 
18
- (FakeConfigTemplate.unscoped.where('name LIKE ?', '%Boot disk%') |
19
- FakeConfigTemplate.unscoped.where(name: [tmpl_h, tmpl_g].compact)).each do |tmpl|
10
+ (Template.unscoped.where('name LIKE ?', '%Boot disk%') |
11
+ Template.unscoped.where(name: [tmpl_h, tmpl_g].compact)).each do |tmpl|
20
12
  tmpl.update_attribute(:template_kind_id, kind.id)
21
13
  end
22
14
  end
@@ -26,6 +18,6 @@ class ChangeTemplatekindToBootdisk < ActiveRecord::Migration[4.2]
26
18
  new_kind = TemplateKind.find_by(name: 'iPXE')
27
19
  return unless old_kind.present? && new_kind.present?
28
20
 
29
- FakeConfigTemplate.unscoped.where(template_kind_id: old_kind.id).update_all(template_kind_id: new_kind.id)
21
+ Template.unscoped.where(template_kind_id: old_kind.id).update_all(template_kind_id: new_kind.id)
30
22
  end
31
23
  end
@@ -38,10 +38,12 @@ module ForemanBootdisk
38
38
 
39
39
  initializer 'foreman_bootdisk.register_plugin', before: :finisher_hook do |_app|
40
40
  Foreman::Plugin.register :foreman_bootdisk do
41
- requires_foreman '>= 3.0'
41
+ requires_foreman '>= 3.1'
42
+ # Add Global files for extending foreman-core components and routes
43
+ register_global_js_file 'global'
42
44
 
43
45
  security_block :bootdisk do |_map|
44
- permission :download_bootdisk, 'foreman_bootdisk/disks': %i[generic host full_host help],
46
+ permission :download_bootdisk, 'foreman_bootdisk/disks': %i[generic host full_host help bootdisk_options],
45
47
  'foreman_bootdisk/subnet_disks': [:subnet],
46
48
  'foreman_bootdisk/api/v2/disks': %i[generic host],
47
49
  'foreman_bootdisk/api/v2/subnet_disks': [:subnet]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanBootdisk
4
- VERSION = '18.1.0'
4
+ VERSION = '19.0.0'
5
5
  end
@@ -0,0 +1,393 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_bootdisk package.
4
+ #
5
+ # Translators:
6
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2017
7
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
8
+ msgid ""
9
+ msgstr ""
10
+ "Project-Id-Version: foreman_bootdisk 18.1.0\n"
11
+ "Report-Msgid-Bugs-To: \n"
12
+ "POT-Creation-Date: 2021-11-30 18:05+0100\n"
13
+ "PO-Revision-Date: 2021-09-24 07:25+0000\n"
14
+ "Last-Translator: Transifex Bot <>\n"
15
+ "Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
16
+ "\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Language: ca\n"
21
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
22
+
23
+ #: ../app/controllers/concerns/allowed_actions.rb:7
24
+ msgid "This type of bootdisk is not allowed. Please contact administrator."
25
+ msgstr ""
26
+
27
+ #: ../app/controllers/foreman_bootdisk/api/v2/disks_controller.rb:21 ../app/views/foreman_bootdisk/disks/help.html.erb:1
28
+ msgid "Boot disks"
29
+ msgstr "Discs d'arrencada"
30
+
31
+ #: ../app/controllers/foreman_bootdisk/api/v2/disks_controller.rb:24
32
+ msgid "Download generic image"
33
+ msgstr "Baixa la imatge genèrica"
34
+
35
+ #: ../app/controllers/foreman_bootdisk/api/v2/disks_controller.rb:33
36
+ msgid "Download host image"
37
+ msgstr "Baixa la imatge d'amfitrió"
38
+
39
+ #: ../app/controllers/foreman_bootdisk/api/v2/disks_controller.rb:34
40
+ msgid "True for full, false for basic reusable image"
41
+ msgstr ""
42
+
43
+ #: ../app/controllers/foreman_bootdisk/api/v2/disks_controller.rb:46 ../app/controllers/foreman_bootdisk/disks_controller.rb:126 ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:90
44
+ msgid "Host is not in build mode"
45
+ msgstr ""
46
+
47
+ #: ../app/controllers/foreman_bootdisk/api/v2/subnet_disks_controller.rb:23
48
+ msgid "Subnet boot disks"
49
+ msgstr "Discs d'arrencada de subxarxa"
50
+
51
+ #: ../app/controllers/foreman_bootdisk/api/v2/subnet_disks_controller.rb:26
52
+ msgid "Download subnet generic image"
53
+ msgstr "Baixa la imatge genèrica de subxarxa"
54
+
55
+ #: ../app/controllers/foreman_bootdisk/api/v2/subnet_disks_controller.rb:30 ../app/controllers/foreman_bootdisk/subnet_disks_controller.rb:15
56
+ msgid "TFTP feature not enabled for subnet %s"
57
+ msgstr "La funcionalitat TFTP no està habilitada per a la subxarxa %s"
58
+
59
+ #: ../app/controllers/foreman_bootdisk/disks_controller.rb:63
60
+ msgid "Host is not in build mode."
61
+ msgstr ""
62
+
63
+ #: ../app/controllers/foreman_bootdisk/disks_controller.rb:95 ../app/helpers/concerns/foreman_bootdisk/pretty_error.rb:8
64
+ msgid "Failed to render boot disk template"
65
+ msgstr ""
66
+
67
+ #: ../app/controllers/foreman_bootdisk/disks_controller.rb:120 ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:66
68
+ msgid "Host '%s' image"
69
+ msgstr ""
70
+
71
+ #: ../app/controllers/foreman_bootdisk/disks_controller.rb:120 ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:76 ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:86
72
+ msgid "Full host '%s' image"
73
+ msgstr ""
74
+
75
+ #: ../app/controllers/foreman_bootdisk/disks_controller.rb:132
76
+ msgid "Boot disk help"
77
+ msgstr ""
78
+
79
+ #: ../app/helpers/bootdisk_links_helper.rb:27
80
+ msgid "Boot disk Help"
81
+ msgstr ""
82
+
83
+ #: ../app/helpers/bootdisk_links_helper.rb:40 ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:20 ../app/models/setting/bootdisk.rb:30 ../webpack/src/extensions/host/HostBootdiskButtons.js:65
84
+ msgid "Boot disk"
85
+ msgstr "Disc d'arrencada"
86
+
87
+ #: ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:21 ../webpack/src/extensions/host/HostBootdiskButtons.js:54
88
+ msgid "Boot disk download not available for %s architecture"
89
+ msgstr ""
90
+
91
+ #: ../app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb:30
92
+ msgid "Subnet '%s' generic image"
93
+ msgstr ""
94
+
95
+ #: ../app/helpers/concerns/foreman_bootdisk/subnets_helper_ext.rb:10
96
+ msgid "Subnet generic image"
97
+ msgstr ""
98
+
99
+ #: ../app/helpers/concerns/foreman_bootdisk/subnets_helper_ext.rb:27 ../app/views/foreman_bootdisk/disks/help.html.erb:35
100
+ msgid "Generic image"
101
+ msgstr "Imatge genèrica"
102
+
103
+ #: ../app/models/concerns/foreman_bootdisk/host_ext.rb:12 ../app/services/foreman_bootdisk/renderer.rb:53 ../app/services/foreman_bootdisk/renderer.rb:60
104
+ msgid "Unable to find template specified by %s setting"
105
+ msgstr "No es pot trobar la plantilla especificada per l'ajust %s"
106
+
107
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:30
108
+ msgid "Generating ISO image for %s"
109
+ msgstr ""
110
+
111
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:32
112
+ msgid "Upload ISO image to datastore for %s"
113
+ msgstr ""
114
+
115
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:34
116
+ msgid "Attach ISO image to CDROM drive for %s"
117
+ msgstr ""
118
+
119
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:38
120
+ msgid "Detach ISO image from CDROM drive for %s"
121
+ msgstr ""
122
+
123
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:73
124
+ msgid "Failed to generate ISO image for instance %{name}: %{message}"
125
+ msgstr ""
126
+
127
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:82
128
+ msgid "Failed to upload ISO image for instance %{name}: %{message}"
129
+ msgstr ""
130
+
131
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:91
132
+ msgid "Failed to attach ISO image to CDROM drive of instance %{name}: %{message}"
133
+ msgstr ""
134
+
135
+ #: ../app/models/concerns/foreman_bootdisk/orchestration/compute.rb:100
136
+ msgid "Failed to detach ISO image from CDROM drive of instance %{name}: %{message}"
137
+ msgstr ""
138
+
139
+ #: ../app/models/setting/bootdisk.rb:13
140
+ msgid "Path to directory containing iPXE images"
141
+ msgstr "El camí al directori que conté les imatges iPXE"
142
+
143
+ #: ../app/models/setting/bootdisk.rb:13
144
+ msgid "iPXE directory"
145
+ msgstr "Directori iPXE"
146
+
147
+ #: ../app/models/setting/bootdisk.rb:14
148
+ msgid "Path to directory containing isolinux images"
149
+ msgstr "El camí al directori que conté les imatges isolinux"
150
+
151
+ #: ../app/models/setting/bootdisk.rb:14
152
+ msgid "ISOLINUX directory"
153
+ msgstr ""
154
+
155
+ #: ../app/models/setting/bootdisk.rb:15
156
+ msgid "Path to directory containing syslinux images"
157
+ msgstr "El camí al directori que conté les imatges syslinux"
158
+
159
+ #: ../app/models/setting/bootdisk.rb:15
160
+ msgid "SYSLINUX directory"
161
+ msgstr ""
162
+
163
+ #: ../app/models/setting/bootdisk.rb:16
164
+ msgid "Path to directory containing grubx64.efi and shimx64.efi"
165
+ msgstr ""
166
+
167
+ #: ../app/models/setting/bootdisk.rb:16
168
+ msgid "Grub2 directory"
169
+ msgstr ""
170
+
171
+ #: ../app/models/setting/bootdisk.rb:17
172
+ msgid "iPXE template to use for host-specific boot disks"
173
+ msgstr ""
174
+
175
+ #: ../app/models/setting/bootdisk.rb:18
176
+ msgid "Host image template"
177
+ msgstr ""
178
+
179
+ #: ../app/models/setting/bootdisk.rb:19
180
+ msgid "iPXE template to use for generic host boot disks"
181
+ msgstr ""
182
+
183
+ #: ../app/models/setting/bootdisk.rb:20
184
+ msgid "Generic image template"
185
+ msgstr ""
186
+
187
+ #: ../app/models/setting/bootdisk.rb:21
188
+ msgid "Grub2 template to use for generic EFI host boot disks"
189
+ msgstr ""
190
+
191
+ #: ../app/models/setting/bootdisk.rb:22
192
+ msgid "Generic Grub2 EFI image template"
193
+ msgstr ""
194
+
195
+ #: ../app/models/setting/bootdisk.rb:23
196
+ msgid "Command to generate ISO image, use genisoimage or mkisofs"
197
+ msgstr "L'ordre per generar la imatge ISO, utilitzeu genisoimage o mkisofs"
198
+
199
+ #: ../app/models/setting/bootdisk.rb:23
200
+ msgid "ISO generation command"
201
+ msgstr ""
202
+
203
+ #: ../app/models/setting/bootdisk.rb:24
204
+ msgid "Installation media files will be cached for full host images"
205
+ msgstr "Els fitxers dels mitjans d'instal·lació s'emmagatzemaran en memòria cau per a les imatges completes dels amfitrions"
206
+
207
+ #: ../app/models/setting/bootdisk.rb:24
208
+ msgid "Installation media caching"
209
+ msgstr ""
210
+
211
+ #: ../app/models/setting/bootdisk.rb:25
212
+ msgid "List of allowed bootdisk types, remove type to disable it"
213
+ msgstr ""
214
+
215
+ #: ../app/models/setting/bootdisk.rb:25
216
+ msgid "Allowed bootdisk types"
217
+ msgstr ""
218
+
219
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:16
220
+ msgid "Host is not in build mode, so the template cannot be rendered"
221
+ msgstr ""
222
+
223
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:42
224
+ msgid "Unable to generate disk template, %{kind} template not found."
225
+ msgstr ""
226
+
227
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:52
228
+ msgid "Unable to generate disk %{kind} template: %{error}"
229
+ msgstr ""
230
+
231
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:94
232
+ msgid "Please ensure the isolinux/syslinux package(s) are installed."
233
+ msgstr ""
234
+
235
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:111
236
+ msgid "Please ensure the ipxe-bootimgs package is installed."
237
+ msgstr ""
238
+
239
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:128
240
+ msgid "Creating new image failed, install truncate utility"
241
+ msgstr ""
242
+
243
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:129
244
+ msgid "Failed to format the ESP image via mkfs.msdos"
245
+ msgstr ""
246
+
247
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:130 ../app/services/foreman_bootdisk/iso_generator.rb:131
248
+ msgid "Failed to create a directory within the ESP image"
249
+ msgstr ""
250
+
251
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:137
252
+ msgid "Ensure %{file} is readable (or update \"Grub2 directory\" setting)"
253
+ msgstr ""
254
+
255
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:138
256
+ msgid "Unable to mcopy %{file}"
257
+ msgstr ""
258
+
259
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:160
260
+ msgid "ISO build failed"
261
+ msgstr "No s'ha pogut construir l'ISO"
262
+
263
+ #: ../app/services/foreman_bootdisk/iso_generator.rb:163
264
+ msgid "ISO hybrid conversion failed: %s"
265
+ msgstr ""
266
+
267
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:2
268
+ msgid "Back"
269
+ msgstr "Enrere"
270
+
271
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:6
272
+ msgid "Various types of boot disks can be created to provision hosts without the need for PXE services. Boot disks can be attached to the host (physical or virtual) which boots from the disk, contacts Foreman and begins the OS installation."
273
+ msgstr ""
274
+
275
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:9
276
+ msgid "All images are usable as either ISOs or as disk images, including being written to a USB disk with `dd`."
277
+ msgstr ""
278
+
279
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:12
280
+ msgid "Host images"
281
+ msgstr ""
282
+
283
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:14
284
+ msgid "These images are used for host. You can find them at host detail page."
285
+ msgstr ""
286
+
287
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:17
288
+ msgid "Host image"
289
+ msgstr "Imatge d'amfitrió"
290
+
291
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:19
292
+ msgid "Per-host images contain data about a particular host registered in Foreman and set up fully static networking, avoiding the requirement for DHCP. After networking is configured, they chainload from Foreman, picking up the current OS configuration and build state from the server."
293
+ msgstr ""
294
+
295
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:22
296
+ msgid "Once chainloaded, the OS bootloader and installer are downloaded directly from the installation media configured in Foreman, and the provisioning script (kickstart/preseed) is downloaded from Foreman."
297
+ msgstr ""
298
+
299
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:25
300
+ msgid "Full host image"
301
+ msgstr "Imatge completa d'amfitrió"
302
+
303
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:27
304
+ msgid "A variant of the per-host image which contains the OS bootloader embedded inside the disk. This may be useful if chainloading fails on certain hardware, but has the downside that the image must be regenerated for any change in the OS, bootloader or PXELinux templates."
305
+ msgstr ""
306
+
307
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:30
308
+ msgid "Generic images"
309
+ msgstr ""
310
+
311
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:32
312
+ msgid "These images are more generic than previous images. You can find them at subnet index page."
313
+ msgstr ""
314
+
315
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:37
316
+ msgid "Generic images are a reusable disk image that works for any host registered in Foreman. It requires a basic DHCP and DNS service to function and contact the server, but does not require DHCP reservations or static IP addresses."
317
+ msgstr ""
318
+
319
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:40
320
+ msgid "The OS install continues using the installation media configured in Foreman, and it will typically configure static networking, depending on how the OS iPXE template is configured."
321
+ msgstr ""
322
+
323
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:43
324
+ msgid "Subnet image"
325
+ msgstr "Imatge de subxarxa"
326
+
327
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:45
328
+ msgid "Subnet images are similar to generic images, but chain-loading is done via the TFTP Smart Proxy assigned to the Subnet of the host. The smart proxy must have the \"Templates\" module enabled and configured."
329
+ msgstr ""
330
+
331
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:48
332
+ msgid "This image is generic for all hosts with a provisioning NIC on that subnet."
333
+ msgstr ""
334
+
335
+ #: ../app/views/foreman_bootdisk/disks/help.html.erb:51
336
+ msgid "* - These bootdisk types were disabled, you can enable them in Administer - Settings."
337
+ msgstr ""
338
+
339
+ #: ../app/views/foreman_bootdisk/host.erb:9
340
+ msgid "Host has no provisioning interface defined"
341
+ msgstr "L'amfitrió no té definida cap interfície d'aprovisionament"
342
+
343
+ #: ../app/views/foreman_bootdisk/host.erb:10
344
+ msgid "Host has no IPv4 or IPv6 address defined"
345
+ msgstr ""
346
+
347
+ #: ../app/views/foreman_bootdisk/host.erb:11
348
+ msgid "Host has no subnet defined"
349
+ msgstr "L'amfitrió no té definida cap subxarxa"
350
+
351
+ #: ../app/views/foreman_bootdisk/host.erb:12
352
+ msgid "Host has no domain defined"
353
+ msgstr "L'amfitrió no té definit cap domini"
354
+
355
+ #: ../app/views/foreman_bootdisk/host.erb:19
356
+ msgid "Host bootdisk does not work with static IPv6"
357
+ msgstr ""
358
+
359
+ #: ../app/views/foreman_bootdisk/host.erb:21
360
+ msgid "Both IP and Subnet must be set"
361
+ msgstr ""
362
+
363
+ #: ../lib/foreman_bootdisk/engine.rb:60
364
+ msgid "Boot disk based"
365
+ msgstr ""
366
+
367
+ #: ../lib/foreman_bootdisk/engine.rb:61
368
+ msgid "Boot disk embedded template"
369
+ msgstr ""
370
+
371
+ #: ../webpack/src/extensions/host/HostBootdiskButtons.js:59
372
+ msgid "Not available"
373
+ msgstr ""
374
+
375
+ #: action_names.rb:2
376
+ msgid "Remote action:"
377
+ msgstr ""
378
+
379
+ #: action_names.rb:3
380
+ msgid "Import Puppet classes"
381
+ msgstr ""
382
+
383
+ #: action_names.rb:4
384
+ msgid "Import facts"
385
+ msgstr ""
386
+
387
+ #: action_names.rb:5
388
+ msgid "Action with sub plans"
389
+ msgstr ""
390
+
391
+ #: gemspec.rb:4
392
+ msgid "Plugin for Foreman that creates iPXE-based boot disks to provision hosts without the need for PXE infrastructure."
393
+ msgstr ""
@@ -7,7 +7,7 @@
7
7
  # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: foreman_bootdisk 18.0.0\n"
10
+ "Project-Id-Version: foreman_bootdisk 18.1.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "PO-Revision-Date: 2021-09-24 07:25+0000\n"
13
13
  "Last-Translator: Transifex Bot <>\n"
@@ -55,6 +55,9 @@ msgstr ""
55
55
  msgid "Boot disk embedded template"
56
56
  msgstr ""
57
57
 
58
+ msgid "Boot disk help"
59
+ msgstr ""
60
+
58
61
  msgid "Boot disks"
59
62
  msgstr "Discs d'arrencada"
60
63
 
@@ -196,6 +199,9 @@ msgstr "Els fitxers dels mitjans d'instal·lació s'emmagatzemaran en memòria c
196
199
  msgid "List of allowed bootdisk types, remove type to disable it"
197
200
  msgstr ""
198
201
 
202
+ msgid "Not available"
203
+ msgstr ""
204
+
199
205
  msgid "Once chainloaded, the OS bootloader and installer are downloaded directly from the installation media configured in Foreman, and the provisioning script (kickstart/preseed) is downloaded from Foreman."
200
206
  msgstr ""
201
207
 
File without changes