foreman_leapp 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1,166 @@
1
- locales['foreman_leapp'] = locales['foreman_leapp'] || {}; locales['foreman_leapp']['ka'] = {"domain":"foreman_leapp","locale_data":{"foreman_leapp":{"":{"Project-Id-Version":"foreman_leapp 0.1.14","Report-Msgid-Bugs-To":"","POT-Creation-Date":"2023-05-18 10:53+0000","PO-Revision-Date":"2022-10-12 12:00+0000","Last-Translator":"Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023","Language-Team":"Georgian (https://app.transifex.com/foreman/teams/114/ka/)","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Language":"ka","Plural-Forms":"nplurals=2; plural=(n!=1);","lang":"ka","domain":"foreman_leapp","plural_forms":"nplurals=2; plural=(n!=1);"},"Missing one of the required permissions: view_hosts":["აკლია ერთ-ერთი საჭირო ნებართვა: view_hosts"],"List Preupgrade reports":["განახლებისწინა ანგარიშების სია"],"Show Preupgrade report":["განახლებისწინა ანგარიშის ჩვენება"],"List Preupgrade reports for Job invocation":["განახლებისწინა ანგარიშების სია დავალების ჩასაწოდებლად"],"Preupgrade check with Leapp":["განახლებისწინა შემოწმება Leapp-ით"],"Upgrade with Leapp":["Leapp-ით განახლება"],"Leapp preupgrade report":["Leapp-ის განახლებისწინა ანგარიში"],"Upgradeability check for RHEL host":["RHEL ჰოსტის განახლებადობის შემოწმება"],"Run Leapp upgrade job for RHEL host":["RHEL ჰოსტზე Leapp-ის გაშვება"],"Remediation plan":["გაუქმების გეგმა"],"Run Remediation plan with Leapp":["გაუქმების გეგმის Leapp-ით გაშვება"],"Could not retrieve data: %(status) - %(msg)":[""],"Failed to fetch preupgrade reports from server.":[""],"Title":["სათაური"],"Risk Factor":["რისკის ფაქტორი"],"Host":["ჰოსტი"],"Fix Type":["გასწორების ტიპი"],"Inhibitor":["ინჰიბიტორი"],"All":["ყველა"],"Low":["დაბალი"],"Medium":["საშუალო"],"High":["მაღალი"],"Info":["ინფორმაცია"],"Hint":["მინიშნება"],"Command":["ბრძანება"],"Yes":["დიახ"],"No":["არა"],"Fix Selected":["არჩეული გასწორება"],"The preupgrade report could not be generated, check the job details for the reason":["განახლებამდელი ანგარიშის შექმნის შეცდომა. მიზეზისთვის იხილეთ დავალების დეტალები"],"The preupgrade report will be available after the job finishes":["განახლებისწინა ანგარიში დავალების დასრულების შემდეგ იქნება ხელმისაწვდომი"],"No Preupgrade Report Available":["განახლებისწინა ანგარიში ხელმისაწვდომი არაა"],"Run Upgrade":["განახლების გაშვება"],"This issue inhibits the upgrade.":["ეს პრობლემა აჩერებს განახლებას."],"Has Remediation?":["აქვს გაუქმება?"],"Inhibitor?":["ინჰიბიტორი?"],"Low Risk Factor":[""],"Medium Risk Factor":[""],"High Risk Factor":[""],"Has Remediation":[""],"Summary":["შეჯამება"],"Tags":[""],"Links":[""],"Action with sub plans":["ქმედება ქვე-გეგმებით"],"Import Puppet classes":["Puppet-ის კლასების შემოტანა"],"Import facts":["ფაქტების შემოტანა"],"Preupgrade job":["განახლებისწინა დავალება"],"Remote action:":["დაშორებული ქმედება:"],"A Foreman plugin to support inplace RHEL upgrades with Leapp utility.":["Foreman-ის დამატება RHEL-ის Leapp-ით ადგილზე განახლების მხარდასაჭერად."]}}};
1
+ locales['foreman_leapp'] = locales['foreman_leapp'] || {}; locales['foreman_leapp']['ka'] = {
2
+ "domain": "foreman_leapp",
3
+ "locale_data": {
4
+ "foreman_leapp": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_leapp 0.1.14",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2022-10-12 12:00+0000",
9
+ "Last-Translator": "Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023",
10
+ "Language-Team": "Georgian (https://app.transifex.com/foreman/teams/114/ka/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "ka",
15
+ "Plural-Forms": "nplurals=2; plural=(n!=1);",
16
+ "lang": "ka",
17
+ "domain": "foreman_leapp",
18
+ "plural_forms": "nplurals=2; plural=(n!=1);"
19
+ },
20
+ "Missing one of the required permissions: view_hosts": [
21
+ "აკლია ერთ-ერთი საჭირო ნებართვა: view_hosts"
22
+ ],
23
+ "List Preupgrade reports": [
24
+ "განახლებისწინა ანგარიშების სია"
25
+ ],
26
+ "Show Preupgrade report": [
27
+ "განახლებისწინა ანგარიშის ჩვენება"
28
+ ],
29
+ "List Preupgrade reports for Job invocation": [
30
+ "განახლებისწინა ანგარიშების სია დავალების ჩასაწოდებლად"
31
+ ],
32
+ "Preupgrade check with Leapp": [
33
+ "განახლებისწინა შემოწმება Leapp-ით"
34
+ ],
35
+ "Upgrade with Leapp": [
36
+ "Leapp-ით განახლება"
37
+ ],
38
+ "Leapp preupgrade report": [
39
+ "Leapp-ის განახლებისწინა ანგარიში"
40
+ ],
41
+ "Upgradeability check for RHEL host": [
42
+ "RHEL ჰოსტის განახლებადობის შემოწმება"
43
+ ],
44
+ "Run Leapp upgrade job for RHEL host": [
45
+ "RHEL ჰოსტზე Leapp-ის გაშვება"
46
+ ],
47
+ "Remediation plan": [
48
+ "გაუქმების გეგმა"
49
+ ],
50
+ "Run Remediation plan with Leapp": [
51
+ "გაუქმების გეგმის Leapp-ით გაშვება"
52
+ ],
53
+ "Could not retrieve data: %(status) - %(msg)": [
54
+ ""
55
+ ],
56
+ "Failed to fetch preupgrade reports from server.": [
57
+ ""
58
+ ],
59
+ "Title": [
60
+ "სათაური"
61
+ ],
62
+ "Risk Factor": [
63
+ "რისკის ფაქტორი"
64
+ ],
65
+ "Host": [
66
+ "ჰოსტი"
67
+ ],
68
+ "Fix Type": [
69
+ "გასწორების ტიპი"
70
+ ],
71
+ "Inhibitor": [
72
+ "ინჰიბიტორი"
73
+ ],
74
+ "All": [
75
+ "ყველა"
76
+ ],
77
+ "Low": [
78
+ "დაბალი"
79
+ ],
80
+ "Medium": [
81
+ "საშუალო"
82
+ ],
83
+ "High": [
84
+ "მაღალი"
85
+ ],
86
+ "Info": [
87
+ "ინფორმაცია"
88
+ ],
89
+ "Hint": [
90
+ "მინიშნება"
91
+ ],
92
+ "Command": [
93
+ "ბრძანება"
94
+ ],
95
+ "Yes": [
96
+ "დიახ"
97
+ ],
98
+ "No": [
99
+ "არა"
100
+ ],
101
+ "Fix Selected": [
102
+ "არჩეული გასწორება"
103
+ ],
104
+ "The preupgrade report could not be generated, check the job details for the reason": [
105
+ "განახლებამდელი ანგარიშის შექმნის შეცდომა. მიზეზისთვის იხილეთ დავალების დეტალები"
106
+ ],
107
+ "The preupgrade report will be available after the job finishes": [
108
+ "განახლებისწინა ანგარიში დავალების დასრულების შემდეგ იქნება ხელმისაწვდომი"
109
+ ],
110
+ "No Preupgrade Report Available": [
111
+ "განახლებისწინა ანგარიში ხელმისაწვდომი არაა"
112
+ ],
113
+ "Run Upgrade": [
114
+ "განახლების გაშვება"
115
+ ],
116
+ "This issue inhibits the upgrade.": [
117
+ "ეს პრობლემა აჩერებს განახლებას."
118
+ ],
119
+ "Has Remediation?": [
120
+ "აქვს გაუქმება?"
121
+ ],
122
+ "Inhibitor?": [
123
+ "ინჰიბიტორი?"
124
+ ],
125
+ "Low Risk Factor": [
126
+ ""
127
+ ],
128
+ "Medium Risk Factor": [
129
+ ""
130
+ ],
131
+ "High Risk Factor": [
132
+ ""
133
+ ],
134
+ "Has Remediation": [
135
+ ""
136
+ ],
137
+ "Summary": [
138
+ "შეჯამება"
139
+ ],
140
+ "Tags": [
141
+ ""
142
+ ],
143
+ "Links": [
144
+ ""
145
+ ],
146
+ "A Foreman plugin to support inplace RHEL upgrades with Leapp utility.": [
147
+ "Foreman-ის დამატება RHEL-ის Leapp-ით ადგილზე განახლების მხარდასაჭერად."
148
+ ],
149
+ "Action with sub plans": [
150
+ "ქმედება ქვე-გეგმებით"
151
+ ],
152
+ "Import Puppet classes": [
153
+ "Puppet-ის კლასების შემოტანა"
154
+ ],
155
+ "Import facts": [
156
+ "ფაქტების შემოტანა"
157
+ ],
158
+ "Preupgrade job": [
159
+ "განახლებისწინა დავალება"
160
+ ],
161
+ "Remote action:": [
162
+ "დაშორებული ქმედება:"
163
+ ]
164
+ }
165
+ }
166
+ };
@@ -0,0 +1,151 @@
1
+ locales['foreman_leapp'] = locales['foreman_leapp'] || {}; locales['foreman_leapp']['zh_CN'] = {
2
+ "domain": "foreman_leapp",
3
+ "locale_data": {
4
+ "foreman_leapp": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_leapp 1.0.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2022-10-12 12:00+0000",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
10
+ "Language-Team": "Chinese (China) (https://app.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_leapp",
18
+ "plural_forms": "nplurals=1; plural=0;"
19
+ },
20
+ "A Foreman plugin to support inplace RHEL upgrades with Leapp utility.": [
21
+ "支持使用 Leapp 的 RHEL 原位升级的 Foreman 插件。"
22
+ ],
23
+ "All": [
24
+ "全部"
25
+ ],
26
+ "Command": [
27
+ "命令"
28
+ ],
29
+ "Could not retrieve data: %(status) - %(msg)": [
30
+ "无法检索数据:%(status) - %(msg)"
31
+ ],
32
+ "Failed to fetch preupgrade reports from server.": [
33
+ "从服务器获取预升级报告失败。"
34
+ ],
35
+ "Fix Selected": [
36
+ "选择的修复"
37
+ ],
38
+ "Fix Type": [
39
+ "修复类型"
40
+ ],
41
+ "Has Remediation": [
42
+ "有补救"
43
+ ],
44
+ "Has Remediation?": [
45
+ "有补救?"
46
+ ],
47
+ "High": [
48
+ "高"
49
+ ],
50
+ "High Risk Factor": [
51
+ "高风险因素"
52
+ ],
53
+ "Hint": [
54
+ "提示"
55
+ ],
56
+ "Host": [
57
+ "主机"
58
+ ],
59
+ "Info": [
60
+ "Info"
61
+ ],
62
+ "Inhibitor": [
63
+ "Inhibitor"
64
+ ],
65
+ "Inhibitor?": [
66
+ "Inhibitor?"
67
+ ],
68
+ "Leapp preupgrade report": [
69
+ "Leapp 预升级报告"
70
+ ],
71
+ "Links": [
72
+ "链接"
73
+ ],
74
+ "List Preupgrade reports": [
75
+ "列出预升级报告"
76
+ ],
77
+ "List Preupgrade reports for Job invocation": [
78
+ "列出作业调用的预升级报告"
79
+ ],
80
+ "Low": [
81
+ "低"
82
+ ],
83
+ "Low Risk Factor": [
84
+ "低风险因素"
85
+ ],
86
+ "Medium": [
87
+ "中"
88
+ ],
89
+ "Medium Risk Factor": [
90
+ "中风险因素"
91
+ ],
92
+ "Missing one of the required permissions: view_hosts": [
93
+ "缺少所需权限之一:view_hosts"
94
+ ],
95
+ "No": [
96
+ "否"
97
+ ],
98
+ "No Preupgrade Report Available": [
99
+ "没有可用的预升级报告"
100
+ ],
101
+ "Preupgrade check with Leapp": [
102
+ "使用 Leapp 的预升级检查"
103
+ ],
104
+ "Remediation plan": [
105
+ "补救计划"
106
+ ],
107
+ "Risk Factor": [
108
+ "风险因素"
109
+ ],
110
+ "Run Leapp upgrade job for RHEL host": [
111
+ "为 RHEL 主机运行 Leapp 升级作业"
112
+ ],
113
+ "Run Remediation plan with Leapp": [
114
+ "使用 Leapp 的运行补救计划"
115
+ ],
116
+ "Run Upgrade": [
117
+ "运行升级"
118
+ ],
119
+ "Show Preupgrade report": [
120
+ "显示预升级报告"
121
+ ],
122
+ "Summary": [
123
+ "摘要"
124
+ ],
125
+ "Tags": [
126
+ "标签"
127
+ ],
128
+ "The preupgrade report could not be generated, check the job details for the reason": [
129
+ "无法生成预升级报告,查看作业详情以了解更多信息"
130
+ ],
131
+ "The preupgrade report will be available after the job finishes": [
132
+ "预升级报告将在作业完成后可用"
133
+ ],
134
+ "This issue inhibits the upgrade.": [
135
+ "此问题会阻止升级。"
136
+ ],
137
+ "Title": [
138
+ "提示"
139
+ ],
140
+ "Upgrade with Leapp": [
141
+ "使用 Leapp 升级"
142
+ ],
143
+ "Upgradeability check for RHEL host": [
144
+ "RHEL 主机的可升级检查"
145
+ ],
146
+ "Yes": [
147
+ "是"
148
+ ]
149
+ }
150
+ }
151
+ };
@@ -6,12 +6,22 @@ description_format: 'Upgradeability check for RHEL host'
6
6
  provider_type: SSH
7
7
  feature: leapp_preupgrade
8
8
  model: JobTemplate
9
+ template_inputs:
10
+ - name: Channel
11
+ description: "Set if the target OS is required to use the General Availability (GA) channel - the default - or a specific channel among: Update Services for SAP Solutions (E4S), Extended Upgrade Support (EUS) or Advanced Update Support (AUS)."
12
+ input_type: user
13
+ required: true
14
+ default: "ga"
15
+ options: "ga\ne4s\neus\naus"
16
+ %>
17
+ <%
18
+ channel_opts = input('Channel') == 'ga' ? '' : "--channel #{input('Channel')}"
9
19
  %>
10
20
 
11
21
  <%= render_template 'Check Leapp' %>
12
22
 
13
23
  rm -f /var/log/leapp/leapp-report.json
14
- leapp preupgrade
24
+ leapp preupgrade <%= channel_opts %>
15
25
 
16
26
  echo "===leap_upgrade_report_start==="
17
27
  cat /var/log/leapp/leapp-report.json
@@ -7,6 +7,12 @@ provider_type: Ansible
7
7
  feature: leapp_upgrade
8
8
  model: JobTemplate
9
9
  template_inputs:
10
+ - name: Channel
11
+ description: "Set if the target OS is required to use the General Availability (GA) channel - the default - or a specific channel among: Update Services for SAP Solutions (E4S), Extended Upgrade Support (EUS) or Advanced Update Support (AUS)."
12
+ input_type: user
13
+ required: true
14
+ default: "ga"
15
+ options: "ga\ne4s\neus\naus"
10
16
  - name: Reboot
11
17
  description: Reboot the host automaticaly to continue with the upgrade
12
18
  input_type: user
@@ -16,9 +22,12 @@ template_inputs:
16
22
  %>
17
23
  ---
18
24
  - hosts: all
25
+ vars:
26
+ - channel_opts: <% input('Channel') == 'ga' ? '' : "--channel #{input('Channel')}" %>
19
27
  tasks:
20
28
  - name: Run Leapp Upgrade
21
- command: leapp upgrade
29
+ command: leapp upgrade {{ channel_opts }}
30
+
22
31
  <%- if input('Reboot') == "true" -%>
23
32
  - name: Reboot the machine
24
33
  reboot:
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'foreman_ansible'
4
+ require 'foreman_remote_execution'
5
+
3
6
  module ForemanLeapp
4
7
  class Engine < ::Rails::Engine
5
8
  engine_name 'foreman_leapp'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanLeapp
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -15,7 +15,7 @@ end
15
15
  # Tests
16
16
  namespace :test do
17
17
  desc 'Test ForemanLeapp'
18
- Rake::TestTask.new(:foreman_leapp) do |t|
18
+ Rake::TestTask.new(:foreman_leapp => ['db:test:prepare']) do |t|
19
19
  test_dir = File.join(File.dirname(__FILE__), '../..', 'test')
20
20
  t.libs << ['test', test_dir]
21
21
  t.pattern = "#{test_dir}/**/*_test.rb"
data/locale/Makefile CHANGED
@@ -6,8 +6,8 @@
6
6
  # make tx-update - download and merge translations from Transifex
7
7
  # make clean - clean everything
8
8
  #
9
- DOMAIN = foreman_leapp
10
- VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version')
9
+ DOMAIN = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).name')
10
+ VERSION = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).version')
11
11
  POTFILE = $(DOMAIN).pot
12
12
  MOFILE = $(DOMAIN).mo
13
13
  POFILES = $(shell find . -name '$(DOMAIN).po')
@@ -43,7 +43,7 @@ uniq-po:
43
43
  done
44
44
 
45
45
  tx-pull: $(EDITFILES)
46
- cd .. && tx pull -f
46
+ cd .. && tx pull -f --all
47
47
  for f in $(EDITFILES) ; do \
48
48
  sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
49
49
  done
Binary file
@@ -28,9 +28,6 @@ msgstr ""
28
28
  msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
29
29
  msgstr ""
30
30
 
31
- msgid "Action with sub plans"
32
- msgstr "Aktion mit Unterplänen"
33
-
34
31
  msgid "All"
35
32
  msgstr "Alle"
36
33
 
@@ -67,12 +64,6 @@ msgstr "Hinweis"
67
64
  msgid "Host"
68
65
  msgstr "Host"
69
66
 
70
- msgid "Import Puppet classes"
71
- msgstr "Puppet-Klassen importieren"
72
-
73
- msgid "Import facts"
74
- msgstr "Fakten importieren"
75
-
76
67
  msgid "Info"
77
68
  msgstr "Info"
78
69
 
@@ -118,15 +109,9 @@ msgstr ""
118
109
  msgid "Preupgrade check with Leapp"
119
110
  msgstr ""
120
111
 
121
- msgid "Preupgrade job"
122
- msgstr "Pre-Upgrade-Job"
123
-
124
112
  msgid "Remediation plan"
125
113
  msgstr "Sanierungsplan"
126
114
 
127
- msgid "Remote action:"
128
- msgstr "Entfernte Aktion:"
129
-
130
115
  msgid "Risk Factor"
131
116
  msgstr "Risikofaktor"
132
117
 
@@ -3,7 +3,6 @@
3
3
  # This file is distributed under the same license as the foreman_leapp package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
- #, fuzzy
7
6
  msgid ""
8
7
  msgstr ""
9
8
  "Project-Id-Version: foreman_leapp 1.0.0\n"
@@ -20,9 +19,6 @@ msgstr ""
20
19
  msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
21
20
  msgstr ""
22
21
 
23
- msgid "Action with sub plans"
24
- msgstr ""
25
-
26
22
  msgid "All"
27
23
  msgstr ""
28
24
 
@@ -59,12 +55,6 @@ msgstr ""
59
55
  msgid "Host"
60
56
  msgstr ""
61
57
 
62
- msgid "Import Puppet classes"
63
- msgstr ""
64
-
65
- msgid "Import facts"
66
- msgstr ""
67
-
68
58
  msgid "Info"
69
59
  msgstr ""
70
60
 
@@ -110,15 +100,9 @@ msgstr ""
110
100
  msgid "Preupgrade check with Leapp"
111
101
  msgstr ""
112
102
 
113
- msgid "Preupgrade job"
114
- msgstr ""
115
-
116
103
  msgid "Remediation plan"
117
104
  msgstr ""
118
105
 
119
- msgid "Remote action:"
120
- msgstr ""
121
-
122
106
  msgid "Risk Factor"
123
107
  msgstr ""
124
108
 
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_leapp 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-05-18 10:53+0000\n"
12
- "PO-Revision-Date: 2023-05-18 10:53+0000\n"
11
+ "POT-Creation-Date: 2023-11-28 22:30+0100\n"
12
+ "PO-Revision-Date: 2023-11-28 22:30+0100\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -204,26 +204,6 @@ msgstr ""
204
204
  msgid "Links"
205
205
  msgstr ""
206
206
 
207
- #: action_names.rb:2
208
- msgid "Action with sub plans"
209
- msgstr ""
210
-
211
- #: action_names.rb:3
212
- msgid "Import Puppet classes"
213
- msgstr ""
214
-
215
- #: action_names.rb:4
216
- msgid "Import facts"
217
- msgstr ""
218
-
219
- #: action_names.rb:5
220
- msgid "Preupgrade job"
221
- msgstr ""
222
-
223
- #: action_names.rb:6
224
- msgid "Remote action:"
225
- msgstr ""
226
-
227
207
  #: gemspec.rb:4
228
208
  msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
229
209
  msgstr ""