foreman_bootdisk 22.0.2 → 23.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_bootdisk/locale/ca/foreman_bootdisk.js +1 -1
  3. data/app/assets/javascripts/foreman_bootdisk/locale/cs_CZ/foreman_bootdisk.js +1 -1
  4. data/app/assets/javascripts/foreman_bootdisk/locale/de/foreman_bootdisk.js +1 -1
  5. data/app/assets/javascripts/foreman_bootdisk/locale/en/foreman_bootdisk.js +1 -1
  6. data/app/assets/javascripts/foreman_bootdisk/locale/en_GB/foreman_bootdisk.js +1 -1
  7. data/app/assets/javascripts/foreman_bootdisk/locale/es/foreman_bootdisk.js +1 -1
  8. data/app/assets/javascripts/foreman_bootdisk/locale/fr/foreman_bootdisk.js +2 -2
  9. data/app/assets/javascripts/foreman_bootdisk/locale/it/foreman_bootdisk.js +1 -1
  10. data/app/assets/javascripts/foreman_bootdisk/locale/ja/foreman_bootdisk.js +1 -1
  11. data/app/assets/javascripts/foreman_bootdisk/locale/ka/foreman_bootdisk.js +1 -1
  12. data/app/assets/javascripts/foreman_bootdisk/locale/ko/foreman_bootdisk.js +1 -1
  13. data/app/assets/javascripts/foreman_bootdisk/locale/pt_BR/foreman_bootdisk.js +1 -1
  14. data/app/assets/javascripts/foreman_bootdisk/locale/ru/foreman_bootdisk.js +1 -1
  15. data/app/assets/javascripts/foreman_bootdisk/locale/sv_SE/foreman_bootdisk.js +1 -1
  16. data/app/assets/javascripts/foreman_bootdisk/locale/zh_CN/foreman_bootdisk.js +9 -9
  17. data/app/assets/javascripts/foreman_bootdisk/locale/zh_TW/foreman_bootdisk.js +1 -1
  18. data/lib/foreman_bootdisk/engine.rb +1 -1
  19. data/lib/foreman_bootdisk/version.rb +1 -1
  20. data/locale/ca/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  21. data/locale/ca/foreman_bootdisk.po +1 -1
  22. data/locale/cs_CZ/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  23. data/locale/cs_CZ/foreman_bootdisk.po +1 -1
  24. data/locale/de/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  25. data/locale/de/foreman_bootdisk.po +1 -1
  26. data/locale/en/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  27. data/locale/en/foreman_bootdisk.po +1 -1
  28. data/locale/en_GB/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  29. data/locale/en_GB/foreman_bootdisk.po +1 -1
  30. data/locale/es/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  31. data/locale/es/foreman_bootdisk.po +4 -4
  32. data/locale/foreman_bootdisk.pot +24 -40
  33. data/locale/fr/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  34. data/locale/fr/foreman_bootdisk.po +3 -3
  35. data/locale/it/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  36. data/locale/it/foreman_bootdisk.po +1 -1
  37. data/locale/ja/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  38. data/locale/ja/foreman_bootdisk.po +1 -1
  39. data/locale/ka/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  40. data/locale/ka/foreman_bootdisk.po +1 -1
  41. data/locale/ko/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  42. data/locale/ko/foreman_bootdisk.po +1 -1
  43. data/locale/pt_BR/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  44. data/locale/pt_BR/foreman_bootdisk.po +1 -1
  45. data/locale/ru/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  46. data/locale/ru/foreman_bootdisk.po +1 -1
  47. data/locale/sv_SE/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  48. data/locale/sv_SE/foreman_bootdisk.po +1 -1
  49. data/locale/zh_CN/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  50. data/locale/zh_CN/foreman_bootdisk.po +9 -9
  51. data/locale/zh_TW/LC_MESSAGES/foreman_bootdisk.mo +0 -0
  52. data/locale/zh_TW/foreman_bootdisk.po +1 -1
  53. data/webpack/src/extensions/host/HostBootdiskButtons.js +1 -1
  54. metadata +3 -36
  55. data/lib/foreman_bootdisk/engine.rb.orig +0 -159
  56. data/locale/ca/foreman_bootdisk.edit.po +0 -364
  57. data/locale/ca/foreman_bootdisk.po.time_stamp +0 -0
  58. data/locale/cs_CZ/foreman_bootdisk.edit.po +0 -362
  59. data/locale/cs_CZ/foreman_bootdisk.po.time_stamp +0 -0
  60. data/locale/de/foreman_bootdisk.edit.po +0 -369
  61. data/locale/de/foreman_bootdisk.po.time_stamp +0 -0
  62. data/locale/en/foreman_bootdisk.edit.po +0 -360
  63. data/locale/en/foreman_bootdisk.po.time_stamp +0 -0
  64. data/locale/en_GB/foreman_bootdisk.edit.po +0 -365
  65. data/locale/en_GB/foreman_bootdisk.po.time_stamp +0 -0
  66. data/locale/es/foreman_bootdisk.edit.po +0 -366
  67. data/locale/es/foreman_bootdisk.po.time_stamp +0 -0
  68. data/locale/fr/foreman_bootdisk.edit.po +0 -366
  69. data/locale/fr/foreman_bootdisk.po.time_stamp +0 -0
  70. data/locale/it/foreman_bootdisk.edit.po +0 -363
  71. data/locale/it/foreman_bootdisk.po.time_stamp +0 -0
  72. data/locale/ja/foreman_bootdisk.edit.po +0 -364
  73. data/locale/ja/foreman_bootdisk.po.time_stamp +0 -0
  74. data/locale/ka/foreman_bootdisk.edit.po +0 -362
  75. data/locale/ka/foreman_bootdisk.po.time_stamp +0 -0
  76. data/locale/ko/foreman_bootdisk.edit.po +0 -361
  77. data/locale/ko/foreman_bootdisk.po.time_stamp +0 -0
  78. data/locale/pt_BR/foreman_bootdisk.edit.po +0 -367
  79. data/locale/pt_BR/foreman_bootdisk.po.time_stamp +0 -0
  80. data/locale/ru/foreman_bootdisk.edit.po +0 -366
  81. data/locale/ru/foreman_bootdisk.po.time_stamp +0 -0
  82. data/locale/sv_SE/foreman_bootdisk.edit.po +0 -363
  83. data/locale/sv_SE/foreman_bootdisk.po.time_stamp +0 -0
  84. data/locale/zh_CN/foreman_bootdisk.edit.po +0 -362
  85. data/locale/zh_CN/foreman_bootdisk.po.time_stamp +0 -0
  86. data/locale/zh_TW/foreman_bootdisk.edit.po +0 -362
  87. data/locale/zh_TW/foreman_bootdisk.po.time_stamp +0 -0
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 22.0.0\n"
8
+ "Project-Id-Version: foreman_bootdisk 22.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "PO-Revision-Date: 2014-02-13 12:12+0000\n"
11
11
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@@ -72,28 +72,28 @@ msgid "Download subnet generic image"
72
72
  msgstr "下载子网通用镜像"
73
73
 
74
74
  msgid "Ensure %{file} is readable (or update \"Grub2 directory\" setting)"
75
- msgstr "确保 %%{file} 是可读的(或更新 \"Grub2 directory\" 设置)"
75
+ msgstr "确保 %{file} 是可读的(或更新 \"Grub2 directory\" 设置)"
76
76
 
77
77
  msgid "Failed to attach ISO image to CDROM drive of instance %{name}: %{message}"
78
- msgstr "将 ISO 镜像附加到实例 %%{name} 的 CDROM 驱动失败:%%{message}"
78
+ msgstr "将 ISO 镜像附加到实例 %{name} 的 CDROM 驱动失败:%{message}"
79
79
 
80
80
  msgid "Failed to create a directory within the ESP image"
81
81
  msgstr "无法在 ESP 镜像中创建目录"
82
82
 
83
83
  msgid "Failed to detach ISO image from CDROM drive of instance %{name}: %{message}"
84
- msgstr "未能成功将 ISO 镜像从实例 %%{name} 的 CDROM 驱动中断开:%%{message}"
84
+ msgstr "未能成功将 ISO 镜像从实例 %{name} 的 CDROM 驱动中断开:%{message}"
85
85
 
86
86
  msgid "Failed to format the ESP image via mkfs.msdos"
87
87
  msgstr "无法通过 mkfs.msdos 格式化 ESP 镜像"
88
88
 
89
89
  msgid "Failed to generate ISO image for instance %{name}: %{message}"
90
- msgstr "为实例 %%{name} 生成 ISO 镜像:%%{message}"
90
+ msgstr "为实例 %{name} 生成 ISO 镜像:%{message}"
91
91
 
92
92
  msgid "Failed to render boot disk template"
93
93
  msgstr "未能提供引导磁盘模板"
94
94
 
95
95
  msgid "Failed to upload ISO image for instance %{name}: %{message}"
96
- msgstr "为实例 %%{name} 上传 ISO 镜像失败:%%{message}"
96
+ msgstr "为实例 %{name} 上传 ISO 镜像失败:%{message}"
97
97
 
98
98
  msgid "Full host '%s' image"
99
99
  msgstr "完整主机 '%s' 镜像"
@@ -237,13 +237,13 @@ msgid "Unable to find template specified by %s setting"
237
237
  msgstr "找不到由 %s 设置指定的模板"
238
238
 
239
239
  msgid "Unable to generate disk %{kind} template: %{error}"
240
- msgstr "无法生成磁盘 %%{kind} 模板 : %%{error}"
240
+ msgstr "无法生成磁盘 %{kind} 模板 : %{error}"
241
241
 
242
242
  msgid "Unable to generate disk template, %{kind} template not found."
243
- msgstr "无法生成磁盘模板,未找到 %%{kind} 模板。"
243
+ msgstr "无法生成磁盘模板,未找到 %{kind} 模板。"
244
244
 
245
245
  msgid "Unable to mcopy %{file}"
246
- msgstr "无法 mcopy %%{file}"
246
+ msgstr "无法 mcopy %{file}"
247
247
 
248
248
  msgid "Upload ISO image to datastore for %s"
249
249
  msgstr "为 %s 将 ISO 镜像上传至数据存储"
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_bootdisk 22.0.0\n"
8
+ "Project-Id-Version: foreman_bootdisk 22.0.2\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "PO-Revision-Date: 2014-02-13 12:12+0000\n"
11
11
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import { useSelector, useDispatch } from 'react-redux';
3
3
 
4
- import { DropdownItem, DropdownGroup } from '@patternfly/react-core';
4
+ import { DropdownItem, DropdownGroup } from '@patternfly/react-core/deprecated';
5
5
  import {
6
6
  BanIcon,
7
7
  BuildIcon,
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: 22.0.2
4
+ version: 23.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: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: theforeman-rubocop
@@ -91,77 +91,44 @@ files:
91
91
  - db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
92
92
  - lib/foreman_bootdisk.rb
93
93
  - lib/foreman_bootdisk/engine.rb
94
- - lib/foreman_bootdisk/engine.rb.orig
95
94
  - lib/foreman_bootdisk/version.rb
96
95
  - lib/tasks/bootdisk.rake
97
96
  - locale/Makefile
98
97
  - locale/ca/LC_MESSAGES/foreman_bootdisk.mo
99
- - locale/ca/foreman_bootdisk.edit.po
100
98
  - locale/ca/foreman_bootdisk.po
101
- - locale/ca/foreman_bootdisk.po.time_stamp
102
99
  - locale/cs_CZ/LC_MESSAGES/foreman_bootdisk.mo
103
- - locale/cs_CZ/foreman_bootdisk.edit.po
104
100
  - locale/cs_CZ/foreman_bootdisk.po
105
- - locale/cs_CZ/foreman_bootdisk.po.time_stamp
106
101
  - locale/de/LC_MESSAGES/foreman_bootdisk.mo
107
- - locale/de/foreman_bootdisk.edit.po
108
102
  - locale/de/foreman_bootdisk.po
109
- - locale/de/foreman_bootdisk.po.time_stamp
110
103
  - locale/en/LC_MESSAGES/foreman_bootdisk.mo
111
- - locale/en/foreman_bootdisk.edit.po
112
104
  - locale/en/foreman_bootdisk.po
113
- - locale/en/foreman_bootdisk.po.time_stamp
114
105
  - locale/en_GB/LC_MESSAGES/foreman_bootdisk.mo
115
- - locale/en_GB/foreman_bootdisk.edit.po
116
106
  - locale/en_GB/foreman_bootdisk.po
117
- - locale/en_GB/foreman_bootdisk.po.time_stamp
118
107
  - locale/es/LC_MESSAGES/foreman_bootdisk.mo
119
- - locale/es/foreman_bootdisk.edit.po
120
108
  - locale/es/foreman_bootdisk.po
121
- - locale/es/foreman_bootdisk.po.time_stamp
122
109
  - locale/foreman_bootdisk.pot
123
110
  - locale/fr/LC_MESSAGES/foreman_bootdisk.mo
124
- - locale/fr/foreman_bootdisk.edit.po
125
111
  - locale/fr/foreman_bootdisk.po
126
- - locale/fr/foreman_bootdisk.po.time_stamp
127
112
  - locale/gemspec.rb
128
113
  - locale/it/LC_MESSAGES/foreman_bootdisk.mo
129
- - locale/it/foreman_bootdisk.edit.po
130
114
  - locale/it/foreman_bootdisk.po
131
- - locale/it/foreman_bootdisk.po.time_stamp
132
115
  - locale/ja/LC_MESSAGES/foreman_bootdisk.mo
133
- - locale/ja/foreman_bootdisk.edit.po
134
116
  - locale/ja/foreman_bootdisk.po
135
- - locale/ja/foreman_bootdisk.po.time_stamp
136
117
  - locale/ka/LC_MESSAGES/foreman_bootdisk.mo
137
- - locale/ka/foreman_bootdisk.edit.po
138
118
  - locale/ka/foreman_bootdisk.po
139
- - locale/ka/foreman_bootdisk.po.time_stamp
140
119
  - locale/ko/LC_MESSAGES/foreman_bootdisk.mo
141
- - locale/ko/foreman_bootdisk.edit.po
142
120
  - locale/ko/foreman_bootdisk.po
143
- - locale/ko/foreman_bootdisk.po.time_stamp
144
121
  - locale/pt_BR/LC_MESSAGES/foreman_bootdisk.mo
145
- - locale/pt_BR/foreman_bootdisk.edit.po
146
122
  - locale/pt_BR/foreman_bootdisk.po
147
- - locale/pt_BR/foreman_bootdisk.po.time_stamp
148
123
  - locale/ru/LC_MESSAGES/foreman_bootdisk.mo
149
- - locale/ru/foreman_bootdisk.edit.po
150
124
  - locale/ru/foreman_bootdisk.po
151
- - locale/ru/foreman_bootdisk.po.time_stamp
152
125
  - locale/sv_SE/LC_MESSAGES/foreman_bootdisk.mo
153
- - locale/sv_SE/foreman_bootdisk.edit.po
154
126
  - locale/sv_SE/foreman_bootdisk.po
155
- - locale/sv_SE/foreman_bootdisk.po.time_stamp
156
127
  - locale/zanata.xml
157
128
  - locale/zh_CN/LC_MESSAGES/foreman_bootdisk.mo
158
- - locale/zh_CN/foreman_bootdisk.edit.po
159
129
  - locale/zh_CN/foreman_bootdisk.po
160
- - locale/zh_CN/foreman_bootdisk.po.time_stamp
161
130
  - locale/zh_TW/LC_MESSAGES/foreman_bootdisk.mo
162
- - locale/zh_TW/foreman_bootdisk.edit.po
163
131
  - locale/zh_TW/foreman_bootdisk.po
164
- - locale/zh_TW/foreman_bootdisk.po.time_stamp
165
132
  - package.json
166
133
  - webpack/__mocks__/foremanReact/common/HOC.js
167
134
  - webpack/__mocks__/foremanReact/common/I18n.js
@@ -200,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
167
  - !ruby/object:Gem::Version
201
168
  version: '0'
202
169
  requirements: []
203
- rubygems_version: 3.2.33
170
+ rubygems_version: 3.5.22
204
171
  signing_key:
205
172
  specification_version: 4
206
173
  summary: Create boot disks to provision hosts with Foreman
@@ -1,159 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'foreman_bootdisk'
4
- require 'fast_gettext'
5
- require 'gettext_i18n_rails'
6
-
7
- module ForemanBootdisk
8
- class Engine < ::Rails::Engine
9
- engine_name 'foreman_bootdisk'
10
- isolate_namespace ForemanBootdisk
11
-
12
- initializer 'foreman_bootdisk.mount_engine' do |app|
13
- app.routes_reloader.paths << "#{ForemanBootdisk::Engine.root}/config/routes/mount_engine.rb"
14
- end
15
-
16
- initializer 'foreman_bootdisk.load_app_instance_data' do |app|
17
- ForemanBootdisk::Engine.paths['db/migrate'].existent.each do |path|
18
- app.config.paths['db/migrate'] << path
19
- end
20
- end
21
-
22
- initializer 'foreman_bootdisk.apipie' do
23
- Apipie.configuration.checksum_path += ['/bootdisk/api/']
24
- end
25
-
26
- initializer 'foreman_bootdisk.register_plugin', before: :finisher_hook do |app|
27
- app.reloader.to_prepare do
28
- Foreman::Plugin.register :foreman_bootdisk do
29
- requires_foreman '>= 3.13'
30
- # Add Global files for extending foreman-core components and routes
31
- register_global_js_file 'global'
32
- register_gettext
33
-
34
- security_block :bootdisk do |_map|
35
- permission :download_bootdisk, 'foreman_bootdisk/disks': %i[generic host full_host help bootdisk_options],
36
- 'foreman_bootdisk/subnet_disks': [:subnet],
37
- 'foreman_bootdisk/api/v2/disks': %i[generic host],
38
- 'foreman_bootdisk/api/v2/subnet_disks': [:subnet]
39
- end
40
-
41
- role 'Boot disk access', [:download_bootdisk], 'Role granting permissions to download bootdisks'
42
- add_all_permissions_to_default_roles
43
-
44
- apipie_documented_controllers ["#{ForemanBootdisk::Engine.root}/app/controllers/foreman_bootdisk/api/v2/*.rb"]
45
- ApipieDSL.configuration.dsl_classes_matchers += [
46
- "#{ForemanBootdisk::Engine.root}/app/lib/foreman_bootdisk/scope/*.rb"
47
- ]
48
- provision_method 'bootdisk', N_('Boot disk based')
49
- allowed_template_helpers :bootdisk_chain_url, :bootdisk_raise
50
-
51
- <<<<<<< HEAD
52
- extend_page "subnets/index" do |cx|
53
- cx.add_pagelet :subnet_index_action_buttons, name: 'Bootdisk', partial: 'subnets/bootdisk_action_buttons'
54
- cx.add_pagelet :subnet_index_title_buttons, name: 'Bootdisk', partial: 'subnets/bootdisk_title_buttons'
55
- end
56
- =======
57
- apipie_documented_controllers ["#{ForemanBootdisk::Engine.root}/app/controllers/foreman_bootdisk/api/v2/*.rb"]
58
- ApipieDSL.configuration.dsl_classes_matchers += [
59
- "#{ForemanBootdisk::Engine.root}/app/lib/foreman_bootdisk/scope/*.rb"
60
- ]
61
- provision_method 'bootdisk', N_('Boot disk based')
62
- extend_template_helpers ForemanBootdisk::TemplateHelpers
63
- >>>>>>> 968ca20 (Fixes #37792 - Safe mode and bootdisk_* template helpers)
64
-
65
- settings do
66
- category :bootdisk, N_("Boot disk") do
67
- ipxe = ['/usr/lib/ipxe'].find { |p| File.exist?(p) } || '/usr/share/ipxe'
68
- isolinux = ['/usr/lib/ISOLINUX'].find { |p| File.exist?(p) } || '/usr/share/syslinux'
69
- syslinux = ['/usr/lib/syslinux/modules/bios', '/usr/lib/syslinux'].find { |p| File.exist?(p) } || '/usr/share/syslinux'
70
- grub2 = ['/var/lib/tftpboot/grub2'].find { |p| File.exist?(p) } || '/var/lib/foreman/bootdisk'
71
- templates = -> {
72
- Hash[ProvisioningTemplate.where(template_kind: TemplateKind.where(name: 'Bootdisk')).map { |temp| [temp[:name], temp[:name]] }]
73
- }
74
-
75
- setting "bootdisk_ipxe_dir",
76
- type: :string,
77
- default: ipxe,
78
- full_name: N_("iPXE directory"),
79
- description: N_("Path to directory containing iPXE images")
80
-
81
- setting "bootdisk_isolinux_dir",
82
- type: :string,
83
- default: isolinux,
84
- full_name: N_("ISOLINUX directory"),
85
- description: N_("Path to directory containing isolinux images")
86
-
87
- setting "bootdisk_syslinux_dir",
88
- type: :string,
89
- default: syslinux,
90
- full_name: N_("SYSLINUX directory"),
91
- description: N_("Path to directory containing syslinux images")
92
-
93
- setting "bootdisk_grub2_dir",
94
- type: :string,
95
- default: grub2,
96
- full_name: N_("Grub2 directory"),
97
- description: N_("Path to directory containing grubx64.efi and shimx64.efi")
98
-
99
- setting "bootdisk_host_template",
100
- type: :string,
101
- collection: templates,
102
- default: "Boot disk iPXE - host",
103
- full_name: N_("Host image template"),
104
- description: N_("iPXE template to use for host-specific boot disks")
105
-
106
- setting "bootdisk_generic_host_template",
107
- type: :string,
108
- collection: templates,
109
- default: "Boot disk iPXE - generic host",
110
- full_name: N_("Generic image template"),
111
- description: N_("iPXE template to use for generic host boot disks")
112
-
113
- setting "bootdisk_generic_efi_host_template",
114
- type: :string,
115
- collection: templates,
116
- default: "Boot disk Grub2 EFI - generic host",
117
- full_name: N_("Generic Grub2 EFI image template"),
118
- description: N_("iPXE template to use for generic EFI host boot disks")
119
-
120
- setting "bootdisk_mkiso_command",
121
- type: :string,
122
- default: "genisoimage",
123
- full_name: N_("ISO generation command"),
124
- description: N_("Command to generate ISO image, use genisoimage or mkisofs")
125
-
126
- setting "bootdisk_cache_media",
127
- type: :boolean,
128
- default: true,
129
- full_name: N_("Installation media caching"),
130
- description: N_("Installation media files will be cached for full host images")
131
-
132
- setting "bootdisk_allowed_types",
133
- type: :array,
134
- default: Setting::Bootdisk.bootdisk_types,
135
- full_name: N_("Allowed bootdisk types"),
136
- description: N_("List of allowed bootdisk types, remove type to disable it")
137
- end
138
- end
139
- end
140
- end
141
- end
142
-
143
- config.to_prepare do
144
- begin
145
- ::HostsHelper.prepend ForemanBootdisk::HostsHelperExt
146
- ::SubnetsHelper.include ForemanBootdisk::SubnetsHelperExt
147
- Host::Managed.prepend ForemanBootdisk::HostExt
148
- Host::Managed.include ForemanBootdisk::Orchestration::Compute
149
- Foreman::Model::Vmware.prepend ForemanBootdisk::ComputeResources::Vmware if Foreman::Model::Vmware.available?
150
- rescue StandardError => e
151
- Rails.logger.warn "#{ForemanBootdisk::ENGINE_NAME}: skipping engine hook (#{e})"
152
- end
153
- end
154
- end
155
-
156
- def self.logger
157
- Foreman::Logging.logger('foreman_bootdisk')
158
- end
159
- end