foreman_azure_rm 3.0.1 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_azure_rm/locale/ca/foreman_azure_rm.js +1 -13
  3. data/app/assets/javascripts/foreman_azure_rm/locale/cs_CZ/foreman_azure_rm.js +1 -13
  4. data/app/assets/javascripts/foreman_azure_rm/locale/de/foreman_azure_rm.js +1 -13
  5. data/app/assets/javascripts/foreman_azure_rm/locale/en/foreman_azure_rm.js +189 -2
  6. data/app/assets/javascripts/foreman_azure_rm/locale/en_GB/foreman_azure_rm.js +1 -13
  7. data/app/assets/javascripts/foreman_azure_rm/locale/es/foreman_azure_rm.js +1 -13
  8. data/app/assets/javascripts/foreman_azure_rm/locale/fr/foreman_azure_rm.js +3 -15
  9. data/app/assets/javascripts/foreman_azure_rm/locale/gl/foreman_azure_rm.js +1 -13
  10. data/app/assets/javascripts/foreman_azure_rm/locale/it/foreman_azure_rm.js +1 -13
  11. data/app/assets/javascripts/foreman_azure_rm/locale/ja/foreman_azure_rm.js +3 -15
  12. data/app/assets/javascripts/foreman_azure_rm/locale/ka/foreman_azure_rm.js +1 -13
  13. data/app/assets/javascripts/foreman_azure_rm/locale/ko/foreman_azure_rm.js +47 -59
  14. data/app/assets/javascripts/foreman_azure_rm/locale/nl_NL/foreman_azure_rm.js +1 -13
  15. data/app/assets/javascripts/foreman_azure_rm/locale/pl/foreman_azure_rm.js +1 -13
  16. data/app/assets/javascripts/foreman_azure_rm/locale/pt_BR/foreman_azure_rm.js +1 -13
  17. data/app/assets/javascripts/foreman_azure_rm/locale/ru/foreman_azure_rm.js +1 -13
  18. data/app/assets/javascripts/foreman_azure_rm/locale/sv_SE/foreman_azure_rm.js +1 -13
  19. data/app/assets/javascripts/foreman_azure_rm/locale/zh_CN/foreman_azure_rm.js +3 -15
  20. data/app/assets/javascripts/foreman_azure_rm/locale/zh_TW/foreman_azure_rm.js +1 -13
  21. data/{lib → app/lib}/foreman_azure_rm/azure_sdk_adapter.rb +24 -25
  22. data/lib/foreman_azure_rm/engine.rb +13 -19
  23. data/lib/foreman_azure_rm/version.rb +1 -1
  24. data/locale/ca/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  25. data/locale/ca/foreman_azure_rm.po +1 -14
  26. data/locale/cs_CZ/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  27. data/locale/cs_CZ/foreman_azure_rm.po +1 -14
  28. data/locale/de/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  29. data/locale/de/foreman_azure_rm.po +1 -14
  30. data/locale/en/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  31. data/locale/en/foreman_azure_rm.po +195 -0
  32. data/locale/en_GB/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  33. data/locale/en_GB/foreman_azure_rm.po +1 -14
  34. data/locale/es/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  35. data/locale/es/foreman_azure_rm.po +1 -14
  36. data/locale/foreman_azure_rm.pot +2 -18
  37. data/locale/fr/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  38. data/locale/fr/foreman_azure_rm.po +4 -17
  39. data/locale/gl/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  40. data/locale/gl/foreman_azure_rm.po +1 -14
  41. data/locale/it/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  42. data/locale/it/foreman_azure_rm.po +1 -14
  43. data/locale/ja/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  44. data/locale/ja/foreman_azure_rm.po +4 -17
  45. data/locale/ka/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  46. data/locale/ka/foreman_azure_rm.po +1 -14
  47. data/locale/ko/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  48. data/locale/ko/foreman_azure_rm.po +49 -60
  49. data/locale/nl_NL/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  50. data/locale/nl_NL/foreman_azure_rm.po +1 -14
  51. data/locale/pl/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  52. data/locale/pl/foreman_azure_rm.po +1 -14
  53. data/locale/pt_BR/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  54. data/locale/pt_BR/foreman_azure_rm.po +1 -14
  55. data/locale/ru/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  56. data/locale/ru/foreman_azure_rm.po +1 -14
  57. data/locale/sv_SE/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  58. data/locale/sv_SE/foreman_azure_rm.po +1 -14
  59. data/locale/zh_CN/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  60. data/locale/zh_CN/foreman_azure_rm.po +4 -17
  61. data/locale/zh_TW/LC_MESSAGES/foreman_azure_rm.mo +0 -0
  62. data/locale/zh_TW/foreman_azure_rm.po +1 -14
  63. metadata +4 -4
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
- "Last-Translator": "Bryan Kearney <bryan.kearney@gmail.com>, 2020",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
10
10
  "Language-Team": "Korean (https://app.transifex.com/foreman/teams/114/ko/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -18,100 +18,91 @@
18
18
  "plural_forms": "nplurals=1; plural=0;"
19
19
  },
20
20
  "%{vm_size} VM Size": [
21
- ""
22
- ],
23
- "Action with sub plans": [
24
- "하위 계획이 있는 작업"
21
+ "%{vm_size} VM 크기"
25
22
  ],
26
23
  "Actions": [
27
24
  "동작 "
28
25
  ],
29
26
  "Additional number of disks can be added based on VM Size. For more details, please refer to Microsoft Azure's documentation": [
30
- ""
27
+ "VM 크기에 따라 추가 디스크 수를 추가할 수 있습니다. 자세한 내용은 Microsoft Azure 설명서를 참조하세요."
31
28
  ],
32
29
  "Azure Image Name": [
33
- ""
30
+ "Azure 이미지 이름"
34
31
  ],
35
32
  "Azure Region": [
36
- ""
33
+ "Azure 지역"
37
34
  ],
38
35
  "Azure Resource Manager as a compute resource for Foreman": [
39
- ""
36
+ "Foreman의 컴퓨팅 리소스로서의 Azure Resource Manager"
40
37
  ],
41
38
  "Azure Subnet": [
42
- ""
39
+ "Azure 서브넷"
43
40
  ],
44
41
  "Azure Tags": [
45
- ""
42
+ "Azure 태그"
46
43
  ],
47
44
  "Azure's Default": [
48
- ""
45
+ "Azure의 기본값"
49
46
  ],
50
47
  "Client ID": [
51
- ""
48
+ "클라이언트 ID"
52
49
  ],
53
50
  "Client ID for AzureRm": [
54
- ""
51
+ "AzureRm의 클라이언트 ID"
55
52
  ],
56
53
  "Client Secret": [
57
- ""
54
+ "클라이언트 시크릿"
58
55
  ],
59
56
  "Client Secret for AzureRm": [
60
- ""
57
+ "AzureRm의 클라이언트 시크릿"
61
58
  ],
62
59
  "Cloud": [
63
- ""
60
+ "클라우드"
64
61
  ],
65
62
  "Comma seperated file URIs": [
66
- ""
63
+ "쉼표로 구분된 파일 URI"
67
64
  ],
68
65
  "Comma seperated list of name=value pairs for tags on this VM in Azure": [
69
- ""
66
+ "Azure에서 이 VM의 태그에 대한 이름=값 쌍의 쉼표로 구분된 목록"
70
67
  ],
71
68
  "Custom Script Command": [
72
- ""
69
+ "사용자 정의 스크립트 명령"
73
70
  ],
74
71
  "Data Disk Caching": [
75
- ""
72
+ "데이터 디스크 캐싱"
76
73
  ],
77
74
  "Default ReadWrite": [
78
- ""
75
+ "기본 읽기쓰기"
79
76
  ],
80
77
  "Deploy NVIDIA GPU driver and CUDA (Azure Extension Microsoft.HpcCompute/NvidiaGpuDriver{Linux,Windows}/1.3)": [
81
- ""
78
+ "NVIDIA GPU 드라이버 및 CUDA(Azure Extension Microsoft.HpcCompute/NvidiaGpuDriver)를 배포합니다.{Linux,Windows} /1.3)"
82
79
  ],
83
80
  "Does this image support user data input?": [
84
81
  "이 이미지는 사용자 데이터 입력을 지원하고 있습니까?"
85
82
  ],
86
83
  "For custom or shared gallery image, use prefix 'custom://' or 'gallery://'. For public and RHEL-byos images, prefix the uuid with 'marketplace://'. (e.g. 'marketplace://OpenLogic:CentOS:7.5:latest' or 'custom://image-name')": [
87
- ""
84
+ "사용자 지정 또는 공유 갤러리 이미지의 경우 접두사 'custom://' 또는 'gallery://'를 사용합니다. 공개 및 RHEL-byos 이미지의 경우 uuid에 'marketplace://'를 접두사로 붙입니다. (예: 'marketplace://OpenLogic:CentOS:7.5:latest' 또는 'custom://image-name')"
88
85
  ],
89
86
  "Image": [
90
87
  "이미지 "
91
88
  ],
92
- "Import Puppet classes": [
93
- "Puppet 클래스 가져오기"
94
- ],
95
- "Import facts": [
96
- "팩트 불러오기"
97
- ],
98
89
  "Leave empty to use default image size": [
99
- ""
90
+ "기본 이미지 크기를 사용하려면 비워두세요."
100
91
  ],
101
92
  "Load Regions": [
102
93
  "지역 로드 "
103
94
  ],
104
95
  "NVIDIA driver / CUDA": [
105
- ""
96
+ "NVIDIA 드라이버 / CUDA"
106
97
  ],
107
98
  "Name": [
108
99
  "이름 "
109
100
  ],
110
101
  "OS Disk Caching": [
111
- ""
102
+ "OS 디스크 캐싱"
112
103
  ],
113
104
  "Override OS Disk Size (GB)": [
114
- ""
105
+ "OS 디스크 크기 재정의(GB)"
115
106
  ],
116
107
  "Password": [
117
108
  "암호 "
@@ -120,46 +111,43 @@
120
111
  "인증에 사용될 암호 - SSH 마지막 단계에서 사용됩니다."
121
112
  ],
122
113
  "Platform": [
123
- ""
114
+ "플랫폼"
124
115
  ],
125
116
  "Please select a Resource Group": [
126
- ""
117
+ "리소스 그룹을 선택하세요"
127
118
  ],
128
119
  "Please select a VM Size": [
129
- ""
120
+ "VM 크기를 선택하세요"
130
121
  ],
131
122
  "Please select an image": [
132
123
  "이미지를 선택하십시오"
133
124
  ],
134
125
  "Premium OS Disk": [
135
- ""
126
+ "프리미엄 OS 디스크"
136
127
  ],
137
128
  "Properties": [
138
129
  "속성 "
139
130
  ],
140
131
  "Public IP": [
141
- ""
132
+ "공개 IP"
142
133
  ],
143
134
  "Region": [
144
135
  "지역 "
145
136
  ],
146
137
  "Reload Images, Sizes, vNets": [
147
- ""
148
- ],
149
- "Remote action:": [
150
- "원격 작업:"
138
+ "이미지, 크기, vNet 다시 로드"
151
139
  ],
152
140
  "Resource Group": [
153
- ""
141
+ "리소스 그룹"
154
142
  ],
155
143
  "SSH Key": [
156
- ""
144
+ "SSH 키"
157
145
  ],
158
146
  "Select": [
159
147
  "선택 "
160
148
  ],
161
149
  "Size": [
162
- "사이즈"
150
+ "크기"
163
151
  ],
164
152
  "Size (GB)": [
165
153
  "크기 (GB)"
@@ -168,43 +156,43 @@
168
156
  "상태 "
169
157
  ],
170
158
  "Static Private IP": [
171
- ""
159
+ "정적 개인 IP"
172
160
  ],
173
161
  "Subscription ID": [
174
162
  "서브스크립션 ID"
175
163
  ],
176
164
  "Subscription ID for AzureRm": [
177
- ""
165
+ "AzureRm에 대한 서브스크립션 ID"
178
166
  ],
179
167
  "Tenant ID": [
180
- ""
168
+ "테넌트 ID"
181
169
  ],
182
170
  "The region you selected has no sizes associated with it": [
183
- ""
171
+ "선택한 지역에는 연관된 크기가 없습니다."
184
172
  ],
185
173
  "The selected image has no associated compute resource": [
186
- ""
174
+ "선택한 이미지에 연관된 컴퓨팅 리소스가 없습니다."
187
175
  ],
188
176
  "The selected region has no subnets": [
189
- ""
177
+ "선택한 지역에 서브넷이 없습니다."
190
178
  ],
191
179
  "The user that will be used to SSH into the VM for completion": [
192
- ""
180
+ "완료를 위해 VM에 SSH하는 데 사용할 사용자"
193
181
  ],
194
182
  "To perform commands as root, prefix it with 'sudo'": [
195
- ""
183
+ "루트로 명령을 수행하려면 접두사로 'sudo'를 붙입니다."
196
184
  ],
197
185
  "Username": [
198
- "사용자 이름 "
186
+ "사용자 이름"
199
187
  ],
200
188
  "VM Size": [
201
- ""
189
+ "VM 크기"
202
190
  ],
203
191
  "is not valid, must be lowercase eg. 'eastus'. No special characters allowed.": [
204
- ""
192
+ "유효하지 않습니다. 소문자여야 합니다. 예: 'eastus'. 특수 문자는 허용되지 않습니다."
205
193
  ],
206
194
  "is not valid. Valid choices are %s.": [
207
- ""
195
+ "유효하지 않습니다. 유효한 선택 사항은 다음과 같습니다.%s"
208
196
  ]
209
197
  }
210
198
  }
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
9
  "Last-Translator": "EmielK <emiel@kremers.us>, 2020",
@@ -20,9 +20,6 @@
20
20
  "%{vm_size} VM Size": [
21
21
  ""
22
22
  ],
23
- "Action with sub plans": [
24
- ""
25
- ],
26
23
  "Actions": [
27
24
  "Acties"
28
25
  ],
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  ""
91
88
  ],
92
- "Import Puppet classes": [
93
- ""
94
- ],
95
- "Import facts": [
96
- ""
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  ""
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  ""
148
139
  ],
149
- "Remote action:": [
150
- ""
151
- ],
152
140
  "Resource Group": [
153
141
  ""
154
142
  ],
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
9
  "Last-Translator": "Michał Foryt <michal.foryt@gmail.com>, 2020",
@@ -20,9 +20,6 @@
20
20
  "%{vm_size} VM Size": [
21
21
  ""
22
22
  ],
23
- "Action with sub plans": [
24
- ""
25
- ],
26
23
  "Actions": [
27
24
  "Akcja"
28
25
  ],
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  "Obraz"
91
88
  ],
92
- "Import Puppet classes": [
93
- ""
94
- ],
95
- "Import facts": [
96
- ""
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  ""
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  ""
148
139
  ],
149
- "Remote action:": [
150
- ""
151
- ],
152
140
  "Resource Group": [
153
141
  ""
154
142
  ],
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
9
  "Last-Translator": "Amit Upadhye <aupadhye@redhat.com>, 2022",
@@ -20,9 +20,6 @@
20
20
  "%{vm_size} VM Size": [
21
21
  "Tamanho da MV"
22
22
  ],
23
- "Action with sub plans": [
24
- "Ação com subplanos "
25
- ],
26
23
  "Actions": [
27
24
  "Ações"
28
25
  ],
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  "Imagem"
91
88
  ],
92
- "Import Puppet classes": [
93
- "Importar classes de Puppet"
94
- ],
95
- "Import facts": [
96
- "Importar fatos"
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  "Deixar vazio para usar o tamanho de imagem padrão"
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  "Recarregar imagens, tamanhos, vNets"
148
139
  ],
149
- "Remote action:": [
150
- "Ação remota:"
151
- ],
152
140
  "Resource Group": [
153
141
  "Grupo de recursos"
154
142
  ],
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
9
  "Last-Translator": "Bryan Kearney <bryan.kearney@gmail.com>, 2020",
@@ -20,9 +20,6 @@
20
20
  "%{vm_size} VM Size": [
21
21
  ""
22
22
  ],
23
- "Action with sub plans": [
24
- "Действия с подпланами"
25
- ],
26
23
  "Actions": [
27
24
  "Действия"
28
25
  ],
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  "Образ"
91
88
  ],
92
- "Import Puppet classes": [
93
- "Импорт классов Puppet"
94
- ],
95
- "Import facts": [
96
- "Импорт фактов"
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  ""
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  ""
148
139
  ],
149
- "Remote action:": [
150
- "Удаленное действие:"
151
- ],
152
140
  "Resource Group": [
153
141
  ""
154
142
  ],
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
9
  "Last-Translator": "johnny.westerlund <johnny.westerlund@gmail.com>, 2020",
@@ -20,9 +20,6 @@
20
20
  "%{vm_size} VM Size": [
21
21
  ""
22
22
  ],
23
- "Action with sub plans": [
24
- ""
25
- ],
26
23
  "Actions": [
27
24
  "Åtgärder"
28
25
  ],
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  "Avbildning"
91
88
  ],
92
- "Import Puppet classes": [
93
- ""
94
- ],
95
- "Import facts": [
96
- ""
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  ""
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  ""
148
139
  ],
149
- "Remote action:": [
150
- ""
151
- ],
152
140
  "Resource Group": [
153
141
  ""
154
142
  ],
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
- "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
10
10
  "Language-Team": "Chinese (China) (https://app.transifex.com/foreman/teams/114/zh_CN/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -18,10 +18,7 @@
18
18
  "plural_forms": "nplurals=1; plural=0;"
19
19
  },
20
20
  "%{vm_size} VM Size": [
21
- "虚拟机大小"
22
- ],
23
- "Action with sub plans": [
24
- "有子计划的操作"
21
+ "%{vm_size} 虚拟机大小"
25
22
  ],
26
23
  "Actions": [
27
24
  "操作"
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  "镜像"
91
88
  ],
92
- "Import Puppet classes": [
93
- "导入 Puppet 类"
94
- ],
95
- "Import facts": [
96
- "导入事实"
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  "留空以使用默认镜像大小"
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  "重新加载镜像,大小,vNet"
148
139
  ],
149
- "Remote action:": [
150
- "远程操作:"
151
- ],
152
140
  "Resource Group": [
153
141
  "资源组"
154
142
  ],
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_azure_rm": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_azure_rm 3.0.0",
6
+ "Project-Id-Version": "foreman_azure_rm 3.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2020-04-21 13:58+0000",
9
9
  "Last-Translator": "Bryan Kearney <bryan.kearney@gmail.com>, 2020",
@@ -20,9 +20,6 @@
20
20
  "%{vm_size} VM Size": [
21
21
  ""
22
22
  ],
23
- "Action with sub plans": [
24
- "有子計畫的動作"
25
- ],
26
23
  "Actions": [
27
24
  "動作"
28
25
  ],
@@ -89,12 +86,6 @@
89
86
  "Image": [
90
87
  "影像"
91
88
  ],
92
- "Import Puppet classes": [
93
- "匯入 Puppet 類別"
94
- ],
95
- "Import facts": [
96
- "匯入詳情"
97
- ],
98
89
  "Leave empty to use default image size": [
99
90
  ""
100
91
  ],
@@ -146,9 +137,6 @@
146
137
  "Reload Images, Sizes, vNets": [
147
138
  ""
148
139
  ],
149
- "Remote action:": [
150
- "遠端動作:"
151
- ],
152
140
  "Resource Group": [
153
141
  ""
154
142
  ],
@@ -11,7 +11,7 @@ module ForemanAzureRm
11
11
  end
12
12
 
13
13
  def resource_client
14
- #resource_manager_endpoint_url
14
+ # resource_manager_endpoint_url
15
15
  @resource_client ||= Resources::Client.new(azure_credentials(@environment_settings.resource_manager_endpoint_url))
16
16
  end
17
17
 
@@ -33,11 +33,12 @@ module ForemanAzureRm
33
33
 
34
34
  def azure_credentials(base_url)
35
35
  provider = MsRestAzure::ApplicationTokenProvider.new(
36
- @tenant,
37
- @app_ident,
38
- @secret_key,
39
- @ad_settings)
40
-
36
+ @tenant,
37
+ @app_ident,
38
+ @secret_key,
39
+ @ad_settings
40
+ )
41
+
41
42
  credentials = MsRest::TokenCredentials.new(provider)
42
43
 
43
44
  {
@@ -46,7 +47,7 @@ module ForemanAzureRm
46
47
  client_id: @app_ident,
47
48
  client_secret: @secret_key,
48
49
  subscription_id: @sub_id,
49
- base_url: base_url
50
+ base_url: base_url,
50
51
  }
51
52
  end
52
53
 
@@ -91,7 +92,7 @@ module ForemanAzureRm
91
92
  end
92
93
 
93
94
  def rgs
94
- rgs = resource_client.resource_groups.list
95
+ rgs = resource_client.resource_groups.list
95
96
  rgs.map(&:name)
96
97
  end
97
98
 
@@ -107,7 +108,7 @@ module ForemanAzureRm
107
108
  network_client.public_ipaddresses.get(rg_name, pip_name)
108
109
  end
109
110
 
110
- def vm_nic(rg_name,nic_name)
111
+ def vm_nic(rg_name, nic_name)
111
112
  network_client.network_interfaces.get(rg_name, nic_name)
112
113
  end
113
114
 
@@ -120,14 +121,15 @@ module ForemanAzureRm
120
121
  end
121
122
 
122
123
  def list_vm_sizes(region)
123
- return [] unless region.present?
124
+ return [] if region.blank?
125
+
124
126
  stripped_region = region.gsub(/\s+/, '').downcase
125
- compute_client.virtual_machine_sizes.list(stripped_region).value()
127
+ compute_client.virtual_machine_sizes.list(stripped_region).value
126
128
  end
127
129
 
128
130
  def list_vms(region)
129
131
  # List all VMs in a resource group
130
- virtual_machines = compute_client.virtual_machines.list_by_location(region)
132
+ compute_client.virtual_machines.list_by_location(region)
131
133
  end
132
134
 
133
135
  def get_vm(rg_name, vm_name)
@@ -166,7 +168,7 @@ module ForemanAzureRm
166
168
  compute_client.gallery_image_versions.list_by_gallery_image(rg_name, gallery_name, gallery_image_name)
167
169
  end
168
170
 
169
- def get_storage_accts
171
+ def get_storage_accts # rubocop:disable Naming/AccessorMethodName
170
172
  result = storage_client.storage_accounts.list
171
173
  result.value
172
174
  end
@@ -177,9 +179,9 @@ module ForemanAzureRm
177
179
 
178
180
  def create_or_update_vm_extensions(rg_name, vm_name, vm_extension_name, extension_params)
179
181
  compute_client.virtual_machine_extensions.create_or_update(rg_name,
180
- vm_name,
181
- vm_extension_name,
182
- extension_params)
182
+ vm_name,
183
+ vm_extension_name,
184
+ extension_params)
183
185
  end
184
186
 
185
187
  def create_or_update_pip(rg_name, pip_name, parameters)
@@ -207,7 +209,7 @@ module ForemanAzureRm
207
209
  end
208
210
 
209
211
  def check_vm_status(rg_name, vm_name)
210
- virtual_machine = compute_client.virtual_machines.get(rg_name, vm_name, expand:'instanceView')
212
+ virtual_machine = compute_client.virtual_machines.get(rg_name, vm_name, expand: 'instanceView')
211
213
  get_status(virtual_machine)
212
214
  end
213
215
 
@@ -215,9 +217,7 @@ module ForemanAzureRm
215
217
  vm_statuses = virtual_machine.instance_view.statuses
216
218
  vm_status = nil
217
219
  vm_statuses.each do |status|
218
- if status.code.include? 'PowerState'
219
- vm_status = status.code.split('/')[1]
220
- end
220
+ vm_status = status.code.split('/')[1] if status.code.include? 'PowerState'
221
221
  end
222
222
  vm_status
223
223
  end
@@ -238,11 +238,10 @@ module ForemanAzureRm
238
238
 
239
239
  def actual_gallery_image_id(rg_name, image_id)
240
240
  gallery_names = list_galleries.map(&:name)
241
- gallery_names.each do |gallery|
242
- gallery_image = list_gallery_images(rg_name, gallery).detect { |image| image.name == image_id }
243
- return gallery_image&.id
244
- end
245
- nil
241
+ return unless (gallery = gallery_names.first)
242
+
243
+ gallery_image = list_gallery_images(rg_name, gallery).detect { |image| image.name == image_id }
244
+ gallery_image&.id
246
245
  end
247
246
 
248
247
  def fetch_gallery_image_id(rg_name, image_id)