foreman_templates 9.3.0 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_templates/locale/cs_CZ/foreman_templates.js +211 -0
  3. data/app/assets/javascripts/foreman_templates/locale/de/foreman_templates.js +211 -0
  4. data/app/assets/javascripts/foreman_templates/locale/en_GB/foreman_templates.js +211 -0
  5. data/app/assets/javascripts/foreman_templates/locale/es/foreman_templates.js +211 -0
  6. data/app/assets/javascripts/foreman_templates/locale/fr/foreman_templates.js +211 -0
  7. data/app/assets/javascripts/foreman_templates/locale/gl/foreman_templates.js +211 -0
  8. data/app/assets/javascripts/foreman_templates/locale/it/foreman_templates.js +211 -0
  9. data/app/assets/javascripts/foreman_templates/locale/ja/foreman_templates.js +211 -0
  10. data/app/assets/javascripts/foreman_templates/locale/ka/foreman_templates.js +211 -0
  11. data/app/assets/javascripts/foreman_templates/locale/ko/foreman_templates.js +211 -0
  12. data/app/assets/javascripts/foreman_templates/locale/pt_BR/foreman_templates.js +211 -0
  13. data/app/assets/javascripts/foreman_templates/locale/ru/foreman_templates.js +211 -0
  14. data/app/assets/javascripts/foreman_templates/locale/sv_SE/foreman_templates.js +211 -0
  15. data/app/assets/javascripts/foreman_templates/locale/zh_CN/foreman_templates.js +211 -0
  16. data/app/assets/javascripts/foreman_templates/locale/zh_TW/foreman_templates.js +211 -0
  17. data/app/services/foreman_templates/template_exporter.rb +9 -2
  18. data/db/migrate/20211122154929_templates_settings_category_to_dsl.rb +1 -1
  19. data/lib/foreman_templates/engine.rb +2 -1
  20. data/lib/foreman_templates/version.rb +1 -1
  21. data/locale/cs_CZ/LC_MESSAGES/foreman_templates.mo +0 -0
  22. data/locale/cs_CZ/foreman_templates.po +211 -0
  23. data/locale/de/LC_MESSAGES/foreman_templates.mo +0 -0
  24. data/locale/de/foreman_templates.po +215 -0
  25. data/locale/en_GB/LC_MESSAGES/foreman_templates.mo +0 -0
  26. data/locale/en_GB/foreman_templates.po +211 -0
  27. data/locale/es/LC_MESSAGES/foreman_templates.mo +0 -0
  28. data/locale/es/foreman_templates.po +211 -0
  29. data/locale/fr/LC_MESSAGES/foreman_templates.mo +0 -0
  30. data/locale/fr/foreman_templates.po +214 -0
  31. data/locale/gl/LC_MESSAGES/foreman_templates.mo +0 -0
  32. data/locale/gl/foreman_templates.po +209 -0
  33. data/locale/it/LC_MESSAGES/foreman_templates.mo +0 -0
  34. data/locale/it/foreman_templates.po +212 -0
  35. data/locale/ja/LC_MESSAGES/foreman_templates.mo +0 -0
  36. data/locale/ja/foreman_templates.po +212 -0
  37. data/locale/ka/LC_MESSAGES/foreman_templates.mo +0 -0
  38. data/locale/ka/foreman_templates.po +209 -0
  39. data/locale/ko/LC_MESSAGES/foreman_templates.mo +0 -0
  40. data/locale/ko/foreman_templates.po +210 -0
  41. data/locale/pt_BR/LC_MESSAGES/foreman_templates.mo +0 -0
  42. data/locale/pt_BR/foreman_templates.po +213 -0
  43. data/locale/ru/LC_MESSAGES/foreman_templates.mo +0 -0
  44. data/locale/ru/foreman_templates.po +214 -0
  45. data/locale/sv_SE/LC_MESSAGES/foreman_templates.mo +0 -0
  46. data/locale/sv_SE/foreman_templates.po +210 -0
  47. data/locale/zh_CN/LC_MESSAGES/foreman_templates.mo +0 -0
  48. data/locale/zh_CN/foreman_templates.po +212 -0
  49. data/locale/zh_TW/LC_MESSAGES/foreman_templates.mo +0 -0
  50. data/locale/zh_TW/foreman_templates.po +211 -0
  51. data/package.json +5 -5
  52. data/webpack/components/NewTemplateSync/components/NewTemplateSyncForm/NewTemplateSyncForm.js +4 -3
  53. data/webpack/components/NewTemplateSync/components/SyncSettingField.js +3 -2
  54. data/webpack/components/TemplateSyncResult/components/SyncedTemplate/StringInfoItem.js +2 -16
  55. data/webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.js +0 -1
  56. data/webpack/components/TemplateSyncResult/components/__tests__/__snapshots__/SyncedTemplate.test.js.snap +0 -8
  57. metadata +62 -3
@@ -0,0 +1,211 @@
1
+ locales['foreman_templates'] = locales['foreman_templates'] || {}; locales['foreman_templates']['sv_SE'] = {
2
+ "domain": "foreman_templates",
3
+ "locale_data": {
4
+ "foreman_templates": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_templates 9.3.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2019-10-14 12:27+0000",
9
+ "Last-Translator": "johnny.westerlund <johnny.westerlund@gmail.com>, 2019",
10
+ "Language-Team": "Swedish (Sweden) (https://www.transifex.com/foreman/teams/114/sv_SE/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "sv_SE",
15
+ "Plural-Forms": "nplurals=2; plural=(n != 1);",
16
+ "lang": "sv_SE",
17
+ "domain": "foreman_templates",
18
+ "plural_forms": "nplurals=2; plural=(n != 1);"
19
+ },
20
+ "Branch in Git repo.": [
21
+ ""
22
+ ],
23
+ "Override the default repo from settings.": [
24
+ ""
25
+ ],
26
+ "Export templates with names matching this regex (case-insensitive; snippets are not filtered).": [
27
+ ""
28
+ ],
29
+ "Negate the prefix (for purging).": [
30
+ ""
31
+ ],
32
+ "The directory within Git repo containing the templates": [
33
+ ""
34
+ ],
35
+ "Initiate Import": [
36
+ ""
37
+ ],
38
+ "The string all imported templates should begin with.": [
39
+ ""
40
+ ],
41
+ "Associate to OS's, Locations & Organizations. Options are: always, new or never.": [
42
+ ""
43
+ ],
44
+ "Update templates that are locked": [
45
+ ""
46
+ ],
47
+ "Lock imported templates": [
48
+ ""
49
+ ],
50
+ "Show template diff in response": [
51
+ ""
52
+ ],
53
+ "Initiate Export": [
54
+ ""
55
+ ],
56
+ "Specify how to handle metadata": [
57
+ ""
58
+ ],
59
+ "Custom commit message for templates export": [
60
+ ""
61
+ ],
62
+ "Using file-based synchronization, but couldn't access %s. ": [
63
+ ""
64
+ ],
65
+ "Please check the access permissions/SELinux and make sure it is readable/writable for the web application user account, typically '%s'.": [
66
+ ""
67
+ ],
68
+ "Always": [
69
+ ""
70
+ ],
71
+ "New": [
72
+ "Ny"
73
+ ],
74
+ "Never": [
75
+ ""
76
+ ],
77
+ "Lock": [
78
+ ""
79
+ ],
80
+ "Keep, lock new": [
81
+ ""
82
+ ],
83
+ "Keep, do not lock new": [
84
+ ""
85
+ ],
86
+ "Unlock": [
87
+ ""
88
+ ],
89
+ "Refresh": [
90
+ ""
91
+ ],
92
+ "Keep": [
93
+ ""
94
+ ],
95
+ "Remove": [
96
+ ""
97
+ ],
98
+ "Template Sync": [
99
+ ""
100
+ ],
101
+ "Choose verbosity for Rake task importing templates": [
102
+ ""
103
+ ],
104
+ "Verbosity": [
105
+ ""
106
+ ],
107
+ "Associate templates to OS, organization and location": [
108
+ ""
109
+ ],
110
+ "Associate": [
111
+ ""
112
+ ],
113
+ "The string that will be added as prefix to imported templates": [
114
+ ""
115
+ ],
116
+ "Prefix": [
117
+ ""
118
+ ],
119
+ "The directory within the Git repo containing the templates": [
120
+ ""
121
+ ],
122
+ "Dirname": [
123
+ ""
124
+ ],
125
+ "Import/export names matching this regex (case-insensitive; snippets are not filtered)": [
126
+ ""
127
+ ],
128
+ "Filter": [
129
+ "Filter"
130
+ ],
131
+ "Target path to import/export. Different protocols can be used, for example /tmp/dir, git://example.com, https://example.com, ssh://example.com. When exporting to /tmp, note that production deployments may be configured to use private tmp.": [
132
+ ""
133
+ ],
134
+ "Repo": [
135
+ ""
136
+ ],
137
+ "Negate the filter for import/export": [
138
+ ""
139
+ ],
140
+ "Negate": [
141
+ ""
142
+ ],
143
+ "Default branch in Git repo": [
144
+ ""
145
+ ],
146
+ "Branch": [
147
+ ""
148
+ ],
149
+ "Default metadata export mode, refresh re-renders metadata, keep will keep existing metadata, remove exports template without metadata": [
150
+ ""
151
+ ],
152
+ "Metadata export mode": [
153
+ ""
154
+ ],
155
+ "Should importing overwrite locked templates?": [
156
+ ""
157
+ ],
158
+ "Force import": [
159
+ ""
160
+ ],
161
+ "How to handle lock for imported templates?": [
162
+ ""
163
+ ],
164
+ "Lock templates": [
165
+ ""
166
+ ],
167
+ "Commit message": [
168
+ ""
169
+ ],
170
+ "Sync Templates": [
171
+ ""
172
+ ],
173
+ "Import or Export Templates": [
174
+ ""
175
+ ],
176
+ "Use default value from settings": [
177
+ ""
178
+ ],
179
+ "Page Not Found": [
180
+ ""
181
+ ],
182
+ "The page you are looking for does not exist": [
183
+ ""
184
+ ],
185
+ "You are not authorized to perform this action.": [
186
+ ""
187
+ ],
188
+ "Please request one of the required permissions listed below from a Foreman administrator:": [
189
+ ""
190
+ ],
191
+ "Permission Denied": [
192
+ ""
193
+ ],
194
+ "Back to sync form": [
195
+ ""
196
+ ],
197
+ "Remote action:": [
198
+ ""
199
+ ],
200
+ "Import facts": [
201
+ ""
202
+ ],
203
+ "Action with sub plans": [
204
+ ""
205
+ ],
206
+ "Import Puppet classes": [
207
+ ""
208
+ ]
209
+ }
210
+ }
211
+ };
@@ -0,0 +1,211 @@
1
+ locales['foreman_templates'] = locales['foreman_templates'] || {}; locales['foreman_templates']['zh_CN'] = {
2
+ "domain": "foreman_templates",
3
+ "locale_data": {
4
+ "foreman_templates": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_templates 9.3.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2019-10-14 12:27+0000",
9
+ "Last-Translator": "Amit Upadhye <aupadhye@redhat.com>, 2022",
10
+ "Language-Team": "Chinese (China) (https://www.transifex.com/foreman/teams/114/zh_CN/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "zh_CN",
15
+ "Plural-Forms": "nplurals=1; plural=0;",
16
+ "lang": "zh_CN",
17
+ "domain": "foreman_templates",
18
+ "plural_forms": "nplurals=1; plural=0;"
19
+ },
20
+ "Branch in Git repo.": [
21
+ "Git 仓库中的分支。"
22
+ ],
23
+ "Override the default repo from settings.": [
24
+ "覆盖设置中的默认仓库。"
25
+ ],
26
+ "Export templates with names matching this regex (case-insensitive; snippets are not filtered).": [
27
+ "导出名称与此正则表达式匹配的模板(不区分大小写;不过滤代码段)。"
28
+ ],
29
+ "Negate the prefix (for purging).": [
30
+ "否定前缀(用于清除)。"
31
+ ],
32
+ "The directory within Git repo containing the templates": [
33
+ "Git 仓库中包含模板的目录"
34
+ ],
35
+ "Initiate Import": [
36
+ "启动导入"
37
+ ],
38
+ "The string all imported templates should begin with.": [
39
+ "所有导入的模板应以字符串开头。"
40
+ ],
41
+ "Associate to OS's, Locations & Organizations. Options are: always, new or never.": [
42
+ "与操作系统,位置和机构相关。选项为:总是,新的或永不。"
43
+ ],
44
+ "Update templates that are locked": [
45
+ "更新锁定的模板"
46
+ ],
47
+ "Lock imported templates": [
48
+ "锁定导入的模板"
49
+ ],
50
+ "Show template diff in response": [
51
+ "显示模板差异作为响应"
52
+ ],
53
+ "Initiate Export": [
54
+ "启动导出"
55
+ ],
56
+ "Specify how to handle metadata": [
57
+ "指定如何处理元数据"
58
+ ],
59
+ "Custom commit message for templates export": [
60
+ "模板导出的自定义提交消息"
61
+ ],
62
+ "Using file-based synchronization, but couldn't access %s. ": [
63
+ "使用基于文件的同步,但无法访问 %s。 "
64
+ ],
65
+ "Please check the access permissions/SELinux and make sure it is readable/writable for the web application user account, typically '%s'.": [
66
+ "请检查访问权限/ SELinux,确保 Web 应用程序用户帐户(通常为 '%s')可读写。"
67
+ ],
68
+ "Always": [
69
+ "总是"
70
+ ],
71
+ "New": [
72
+ "新"
73
+ ],
74
+ "Never": [
75
+ "决不"
76
+ ],
77
+ "Lock": [
78
+ "锁定"
79
+ ],
80
+ "Keep, lock new": [
81
+ "keep, 锁定新的"
82
+ ],
83
+ "Keep, do not lock new": [
84
+ "keep,不锁定新的"
85
+ ],
86
+ "Unlock": [
87
+ "开锁"
88
+ ],
89
+ "Refresh": [
90
+ "刷新"
91
+ ],
92
+ "Keep": [
93
+ "保持"
94
+ ],
95
+ "Remove": [
96
+ "移除"
97
+ ],
98
+ "Template Sync": [
99
+ "模板同步"
100
+ ],
101
+ "Choose verbosity for Rake task importing templates": [
102
+ "为 Rake 任务导入模板选择详细程度"
103
+ ],
104
+ "Verbosity": [
105
+ "详细度"
106
+ ],
107
+ "Associate templates to OS, organization and location": [
108
+ "将模板与操作系统,机构和位置相关联"
109
+ ],
110
+ "Associate": [
111
+ "关联"
112
+ ],
113
+ "The string that will be added as prefix to imported templates": [
114
+ "将作为前缀添加到导入模板的字符串"
115
+ ],
116
+ "Prefix": [
117
+ "前缀"
118
+ ],
119
+ "The directory within the Git repo containing the templates": [
120
+ "Git 仓库中包含模板的目录"
121
+ ],
122
+ "Dirname": [
123
+ "Dirname"
124
+ ],
125
+ "Import/export names matching this regex (case-insensitive; snippets are not filtered)": [
126
+ "导入/导出与该正则表达式匹配的名称(不区分大小写;不过滤代码段)"
127
+ ],
128
+ "Filter": [
129
+ "过滤器"
130
+ ],
131
+ "Target path to import/export. Different protocols can be used, for example /tmp/dir, git://example.com, https://example.com, ssh://example.com. When exporting to /tmp, note that production deployments may be configured to use private tmp.": [
132
+ "要导入/导出的目标路径。可以使用不同的协议,如 /tmp/dir、git://example.com、https://example.com、ssh://example.com. 当导出至 /tmp 时,请注意,生产部署可能被配置为使用私有 tmp。"
133
+ ],
134
+ "Repo": [
135
+ "仓库"
136
+ ],
137
+ "Negate the filter for import/export": [
138
+ "导入/导出的负过滤器"
139
+ ],
140
+ "Negate": [
141
+ "否定"
142
+ ],
143
+ "Default branch in Git repo": [
144
+ "Git 仓库中的默认分支"
145
+ ],
146
+ "Branch": [
147
+ "分支"
148
+ ],
149
+ "Default metadata export mode, refresh re-renders metadata, keep will keep existing metadata, remove exports template without metadata": [
150
+ "默认元数据导出模式,刷新后重新渲染元数据,保留将保留现有元数据,删除不包含元数据的导出模板"
151
+ ],
152
+ "Metadata export mode": [
153
+ "元数据导出模式"
154
+ ],
155
+ "Should importing overwrite locked templates?": [
156
+ "是否应该导入覆盖锁定的模板?"
157
+ ],
158
+ "Force import": [
159
+ "强制导入"
160
+ ],
161
+ "How to handle lock for imported templates?": [
162
+ "如何处理导入的模板锁定?"
163
+ ],
164
+ "Lock templates": [
165
+ "锁定模板"
166
+ ],
167
+ "Commit message": [
168
+ "提交消息"
169
+ ],
170
+ "Sync Templates": [
171
+ "同步模板"
172
+ ],
173
+ "Import or Export Templates": [
174
+ "导入或导出模板"
175
+ ],
176
+ "Use default value from settings": [
177
+ "使用设置中的默认值"
178
+ ],
179
+ "Page Not Found": [
180
+ "页没有找到"
181
+ ],
182
+ "The page you are looking for does not exist": [
183
+ "您查找的页面不存在"
184
+ ],
185
+ "You are not authorized to perform this action.": [
186
+ "您没有执行这个操作的授权。"
187
+ ],
188
+ "Please request one of the required permissions listed below from a Foreman administrator:": [
189
+ "请向 Foreman 管理员请求下列所需权限之一:"
190
+ ],
191
+ "Permission Denied": [
192
+ "没有足够权限"
193
+ ],
194
+ "Back to sync form": [
195
+ "返回到同步表单"
196
+ ],
197
+ "Remote action:": [
198
+ "远程操作:"
199
+ ],
200
+ "Import facts": [
201
+ "导入事实"
202
+ ],
203
+ "Action with sub plans": [
204
+ "有子计划的操作"
205
+ ],
206
+ "Import Puppet classes": [
207
+ "导入 Puppet 类"
208
+ ]
209
+ }
210
+ }
211
+ };
@@ -0,0 +1,211 @@
1
+ locales['foreman_templates'] = locales['foreman_templates'] || {}; locales['foreman_templates']['zh_TW'] = {
2
+ "domain": "foreman_templates",
3
+ "locale_data": {
4
+ "foreman_templates": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_templates 9.3.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2019-10-14 12:27+0000",
9
+ "Last-Translator": "Bryan Kearney <bryan.kearney@gmail.com>, 2022",
10
+ "Language-Team": "Chinese (Taiwan) (https://www.transifex.com/foreman/teams/114/zh_TW/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "zh_TW",
15
+ "Plural-Forms": "nplurals=1; plural=0;",
16
+ "lang": "zh_TW",
17
+ "domain": "foreman_templates",
18
+ "plural_forms": "nplurals=1; plural=0;"
19
+ },
20
+ "Branch in Git repo.": [
21
+ ""
22
+ ],
23
+ "Override the default repo from settings.": [
24
+ ""
25
+ ],
26
+ "Export templates with names matching this regex (case-insensitive; snippets are not filtered).": [
27
+ ""
28
+ ],
29
+ "Negate the prefix (for purging).": [
30
+ ""
31
+ ],
32
+ "The directory within Git repo containing the templates": [
33
+ ""
34
+ ],
35
+ "Initiate Import": [
36
+ ""
37
+ ],
38
+ "The string all imported templates should begin with.": [
39
+ ""
40
+ ],
41
+ "Associate to OS's, Locations & Organizations. Options are: always, new or never.": [
42
+ ""
43
+ ],
44
+ "Update templates that are locked": [
45
+ ""
46
+ ],
47
+ "Lock imported templates": [
48
+ ""
49
+ ],
50
+ "Show template diff in response": [
51
+ ""
52
+ ],
53
+ "Initiate Export": [
54
+ ""
55
+ ],
56
+ "Specify how to handle metadata": [
57
+ ""
58
+ ],
59
+ "Custom commit message for templates export": [
60
+ ""
61
+ ],
62
+ "Using file-based synchronization, but couldn't access %s. ": [
63
+ ""
64
+ ],
65
+ "Please check the access permissions/SELinux and make sure it is readable/writable for the web application user account, typically '%s'.": [
66
+ ""
67
+ ],
68
+ "Always": [
69
+ ""
70
+ ],
71
+ "New": [
72
+ "新增"
73
+ ],
74
+ "Never": [
75
+ "永不"
76
+ ],
77
+ "Lock": [
78
+ "鎖定"
79
+ ],
80
+ "Keep, lock new": [
81
+ ""
82
+ ],
83
+ "Keep, do not lock new": [
84
+ ""
85
+ ],
86
+ "Unlock": [
87
+ "解鎖"
88
+ ],
89
+ "Refresh": [
90
+ "重新整理"
91
+ ],
92
+ "Keep": [
93
+ ""
94
+ ],
95
+ "Remove": [
96
+ "移除"
97
+ ],
98
+ "Template Sync": [
99
+ ""
100
+ ],
101
+ "Choose verbosity for Rake task importing templates": [
102
+ ""
103
+ ],
104
+ "Verbosity": [
105
+ ""
106
+ ],
107
+ "Associate templates to OS, organization and location": [
108
+ ""
109
+ ],
110
+ "Associate": [
111
+ ""
112
+ ],
113
+ "The string that will be added as prefix to imported templates": [
114
+ ""
115
+ ],
116
+ "Prefix": [
117
+ ""
118
+ ],
119
+ "The directory within the Git repo containing the templates": [
120
+ ""
121
+ ],
122
+ "Dirname": [
123
+ ""
124
+ ],
125
+ "Import/export names matching this regex (case-insensitive; snippets are not filtered)": [
126
+ ""
127
+ ],
128
+ "Filter": [
129
+ "篩選器"
130
+ ],
131
+ "Target path to import/export. Different protocols can be used, for example /tmp/dir, git://example.com, https://example.com, ssh://example.com. When exporting to /tmp, note that production deployments may be configured to use private tmp.": [
132
+ ""
133
+ ],
134
+ "Repo": [
135
+ "軟體庫"
136
+ ],
137
+ "Negate the filter for import/export": [
138
+ ""
139
+ ],
140
+ "Negate": [
141
+ ""
142
+ ],
143
+ "Default branch in Git repo": [
144
+ ""
145
+ ],
146
+ "Branch": [
147
+ ""
148
+ ],
149
+ "Default metadata export mode, refresh re-renders metadata, keep will keep existing metadata, remove exports template without metadata": [
150
+ ""
151
+ ],
152
+ "Metadata export mode": [
153
+ ""
154
+ ],
155
+ "Should importing overwrite locked templates?": [
156
+ ""
157
+ ],
158
+ "Force import": [
159
+ ""
160
+ ],
161
+ "How to handle lock for imported templates?": [
162
+ ""
163
+ ],
164
+ "Lock templates": [
165
+ ""
166
+ ],
167
+ "Commit message": [
168
+ ""
169
+ ],
170
+ "Sync Templates": [
171
+ ""
172
+ ],
173
+ "Import or Export Templates": [
174
+ ""
175
+ ],
176
+ "Use default value from settings": [
177
+ ""
178
+ ],
179
+ "Page Not Found": [
180
+ ""
181
+ ],
182
+ "The page you are looking for does not exist": [
183
+ ""
184
+ ],
185
+ "You are not authorized to perform this action.": [
186
+ "您未經許可執行這項動作。"
187
+ ],
188
+ "Please request one of the required permissions listed below from a Foreman administrator:": [
189
+ "請從 Foreman 管理者處,要求下列所需權限之一:"
190
+ ],
191
+ "Permission Denied": [
192
+ ""
193
+ ],
194
+ "Back to sync form": [
195
+ ""
196
+ ],
197
+ "Remote action:": [
198
+ "遠端動作:"
199
+ ],
200
+ "Import facts": [
201
+ "匯入詳情"
202
+ ],
203
+ "Action with sub plans": [
204
+ "有子計畫的動作"
205
+ ],
206
+ "Import Puppet classes": [
207
+ "匯入 Puppet 類別"
208
+ ]
209
+ }
210
+ }
211
+ };
@@ -7,6 +7,9 @@ module ForemanTemplates
7
7
  def initialize(args = {})
8
8
  super args
9
9
  @result_lines = []
10
+ @uri = URI(@repo)
11
+ @redacted_uri = @uri.dup
12
+ @redacted_uri.password = '*****' if @uri.password
10
13
  end
11
14
 
12
15
  def export!
@@ -48,7 +51,11 @@ module ForemanTemplates
48
51
  @warning = 'No change detected, skipping the commit and push'
49
52
  end
50
53
  rescue StandardError => e
51
- @error = e.message
54
+ @error = if @uri.password
55
+ e.message.gsub(@uri.to_s, @redacted_uri.to_s)
56
+ else
57
+ e.message
58
+ end
52
59
  ensure
53
60
  FileUtils.remove_entry_secure(@dir) if File.exist?(@dir)
54
61
  end
@@ -132,7 +139,7 @@ module ForemanTemplates
132
139
 
133
140
  def export_result
134
141
  {
135
- :templates => @result_lines, :repo => @repo, :branch => @branch,
142
+ :templates => @result_lines, :repo => @redacted_uri, :branch => @branch,
136
143
  :git_user => foreman_git_user, :error => @error, :warning => @warning
137
144
  }
138
145
  end
@@ -1,5 +1,5 @@
1
1
  class TemplatesSettingsCategoryToDsl < ActiveRecord::Migration[6.0]
2
2
  def up
3
- Setting.where(category: 'Setting::TemplateSync').update_all(category: 'Setting')
3
+ Setting.where(category: 'Setting::TemplateSync').update_all(category: 'Setting') if column_exists?(:settings, :category)
4
4
  end
5
5
  end
@@ -24,7 +24,8 @@ module ForemanTemplates
24
24
 
25
25
  initializer 'foreman_templates.register_plugin', :before => :finisher_hook do
26
26
  Foreman::Plugin.register :foreman_templates do
27
- requires_foreman '>= 3.3'
27
+ requires_foreman '>= 3.7'
28
+ register_gettext
28
29
 
29
30
  apipie_documented_controllers ["#{ForemanTemplates::Engine.root}/app/controllers/api/v2/*.rb"]
30
31
 
@@ -1,3 +1,3 @@
1
1
  module ForemanTemplates
2
- VERSION = '9.3.0'.freeze
2
+ VERSION = "9.4.0".freeze
3
3
  end