foreman_bootdisk 22.0.2 → 22.0.4

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 (86) 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/app/services/foreman_bootdisk/iso_generator.rb +1 -0
  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. metadata +3 -39
  54. data/lib/foreman_bootdisk/engine.rb.orig +0 -159
  55. data/locale/ca/foreman_bootdisk.edit.po +0 -364
  56. data/locale/ca/foreman_bootdisk.po.time_stamp +0 -0
  57. data/locale/cs_CZ/foreman_bootdisk.edit.po +0 -362
  58. data/locale/cs_CZ/foreman_bootdisk.po.time_stamp +0 -0
  59. data/locale/de/foreman_bootdisk.edit.po +0 -369
  60. data/locale/de/foreman_bootdisk.po.time_stamp +0 -0
  61. data/locale/en/foreman_bootdisk.edit.po +0 -360
  62. data/locale/en/foreman_bootdisk.po.time_stamp +0 -0
  63. data/locale/en_GB/foreman_bootdisk.edit.po +0 -365
  64. data/locale/en_GB/foreman_bootdisk.po.time_stamp +0 -0
  65. data/locale/es/foreman_bootdisk.edit.po +0 -366
  66. data/locale/es/foreman_bootdisk.po.time_stamp +0 -0
  67. data/locale/fr/foreman_bootdisk.edit.po +0 -366
  68. data/locale/fr/foreman_bootdisk.po.time_stamp +0 -0
  69. data/locale/it/foreman_bootdisk.edit.po +0 -363
  70. data/locale/it/foreman_bootdisk.po.time_stamp +0 -0
  71. data/locale/ja/foreman_bootdisk.edit.po +0 -364
  72. data/locale/ja/foreman_bootdisk.po.time_stamp +0 -0
  73. data/locale/ka/foreman_bootdisk.edit.po +0 -362
  74. data/locale/ka/foreman_bootdisk.po.time_stamp +0 -0
  75. data/locale/ko/foreman_bootdisk.edit.po +0 -361
  76. data/locale/ko/foreman_bootdisk.po.time_stamp +0 -0
  77. data/locale/pt_BR/foreman_bootdisk.edit.po +0 -367
  78. data/locale/pt_BR/foreman_bootdisk.po.time_stamp +0 -0
  79. data/locale/ru/foreman_bootdisk.edit.po +0 -366
  80. data/locale/ru/foreman_bootdisk.po.time_stamp +0 -0
  81. data/locale/sv_SE/foreman_bootdisk.edit.po +0 -363
  82. data/locale/sv_SE/foreman_bootdisk.po.time_stamp +0 -0
  83. data/locale/zh_CN/foreman_bootdisk.edit.po +0 -362
  84. data/locale/zh_CN/foreman_bootdisk.po.time_stamp +0 -0
  85. data/locale/zh_TW/foreman_bootdisk.edit.po +0 -362
  86. 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"
metadata CHANGED
@@ -1,14 +1,13 @@
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: 22.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: theforeman-rubocop
@@ -91,77 +90,44 @@ files:
91
90
  - db/migrate/20221102105354_fix_bootdisk_settings_category_to_dsl.rb
92
91
  - lib/foreman_bootdisk.rb
93
92
  - lib/foreman_bootdisk/engine.rb
94
- - lib/foreman_bootdisk/engine.rb.orig
95
93
  - lib/foreman_bootdisk/version.rb
96
94
  - lib/tasks/bootdisk.rake
97
95
  - locale/Makefile
98
96
  - locale/ca/LC_MESSAGES/foreman_bootdisk.mo
99
- - locale/ca/foreman_bootdisk.edit.po
100
97
  - locale/ca/foreman_bootdisk.po
101
- - locale/ca/foreman_bootdisk.po.time_stamp
102
98
  - locale/cs_CZ/LC_MESSAGES/foreman_bootdisk.mo
103
- - locale/cs_CZ/foreman_bootdisk.edit.po
104
99
  - locale/cs_CZ/foreman_bootdisk.po
105
- - locale/cs_CZ/foreman_bootdisk.po.time_stamp
106
100
  - locale/de/LC_MESSAGES/foreman_bootdisk.mo
107
- - locale/de/foreman_bootdisk.edit.po
108
101
  - locale/de/foreman_bootdisk.po
109
- - locale/de/foreman_bootdisk.po.time_stamp
110
102
  - locale/en/LC_MESSAGES/foreman_bootdisk.mo
111
- - locale/en/foreman_bootdisk.edit.po
112
103
  - locale/en/foreman_bootdisk.po
113
- - locale/en/foreman_bootdisk.po.time_stamp
114
104
  - locale/en_GB/LC_MESSAGES/foreman_bootdisk.mo
115
- - locale/en_GB/foreman_bootdisk.edit.po
116
105
  - locale/en_GB/foreman_bootdisk.po
117
- - locale/en_GB/foreman_bootdisk.po.time_stamp
118
106
  - locale/es/LC_MESSAGES/foreman_bootdisk.mo
119
- - locale/es/foreman_bootdisk.edit.po
120
107
  - locale/es/foreman_bootdisk.po
121
- - locale/es/foreman_bootdisk.po.time_stamp
122
108
  - locale/foreman_bootdisk.pot
123
109
  - locale/fr/LC_MESSAGES/foreman_bootdisk.mo
124
- - locale/fr/foreman_bootdisk.edit.po
125
110
  - locale/fr/foreman_bootdisk.po
126
- - locale/fr/foreman_bootdisk.po.time_stamp
127
111
  - locale/gemspec.rb
128
112
  - locale/it/LC_MESSAGES/foreman_bootdisk.mo
129
- - locale/it/foreman_bootdisk.edit.po
130
113
  - locale/it/foreman_bootdisk.po
131
- - locale/it/foreman_bootdisk.po.time_stamp
132
114
  - locale/ja/LC_MESSAGES/foreman_bootdisk.mo
133
- - locale/ja/foreman_bootdisk.edit.po
134
115
  - locale/ja/foreman_bootdisk.po
135
- - locale/ja/foreman_bootdisk.po.time_stamp
136
116
  - locale/ka/LC_MESSAGES/foreman_bootdisk.mo
137
- - locale/ka/foreman_bootdisk.edit.po
138
117
  - locale/ka/foreman_bootdisk.po
139
- - locale/ka/foreman_bootdisk.po.time_stamp
140
118
  - locale/ko/LC_MESSAGES/foreman_bootdisk.mo
141
- - locale/ko/foreman_bootdisk.edit.po
142
119
  - locale/ko/foreman_bootdisk.po
143
- - locale/ko/foreman_bootdisk.po.time_stamp
144
120
  - locale/pt_BR/LC_MESSAGES/foreman_bootdisk.mo
145
- - locale/pt_BR/foreman_bootdisk.edit.po
146
121
  - locale/pt_BR/foreman_bootdisk.po
147
- - locale/pt_BR/foreman_bootdisk.po.time_stamp
148
122
  - locale/ru/LC_MESSAGES/foreman_bootdisk.mo
149
- - locale/ru/foreman_bootdisk.edit.po
150
123
  - locale/ru/foreman_bootdisk.po
151
- - locale/ru/foreman_bootdisk.po.time_stamp
152
124
  - locale/sv_SE/LC_MESSAGES/foreman_bootdisk.mo
153
- - locale/sv_SE/foreman_bootdisk.edit.po
154
125
  - locale/sv_SE/foreman_bootdisk.po
155
- - locale/sv_SE/foreman_bootdisk.po.time_stamp
156
126
  - locale/zanata.xml
157
127
  - locale/zh_CN/LC_MESSAGES/foreman_bootdisk.mo
158
- - locale/zh_CN/foreman_bootdisk.edit.po
159
128
  - locale/zh_CN/foreman_bootdisk.po
160
- - locale/zh_CN/foreman_bootdisk.po.time_stamp
161
129
  - locale/zh_TW/LC_MESSAGES/foreman_bootdisk.mo
162
- - locale/zh_TW/foreman_bootdisk.edit.po
163
130
  - locale/zh_TW/foreman_bootdisk.po
164
- - locale/zh_TW/foreman_bootdisk.po.time_stamp
165
131
  - package.json
166
132
  - webpack/__mocks__/foremanReact/common/HOC.js
167
133
  - webpack/__mocks__/foremanReact/common/I18n.js
@@ -182,7 +148,6 @@ homepage: https://github.com/theforeman/foreman_bootdisk
182
148
  licenses:
183
149
  - GPL-3.0
184
150
  metadata: {}
185
- post_install_message:
186
151
  rdoc_options: []
187
152
  require_paths:
188
153
  - lib
@@ -200,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
165
  - !ruby/object:Gem::Version
201
166
  version: '0'
202
167
  requirements: []
203
- rubygems_version: 3.2.33
204
- signing_key:
168
+ rubygems_version: 3.6.9
205
169
  specification_version: 4
206
170
  summary: Create boot disks to provision hosts with Foreman
207
171
  test_files: []
@@ -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