foreman_discovery 4.0.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +12 -3
  3. data/app/models/host/discovered.rb +28 -25
  4. data/app/models/host/managed_extensions.rb +24 -3
  5. data/app/services/foreman_discovery/host_converter.rb +16 -2
  6. data/app/services/foreman_discovery/node_api/node_resource.rb +117 -0
  7. data/app/services/foreman_discovery/node_api/power.rb +57 -0
  8. data/{lib → app/services}/foreman_discovery/proxy_operations.rb +0 -0
  9. data/app/views/foreman_discovery/redhat_kexec.erb +44 -0
  10. data/db/seeds.d/50_discovery_templates.rb +18 -0
  11. data/lib/foreman_discovery/engine.rb +1 -1
  12. data/lib/foreman_discovery/version.rb +1 -1
  13. data/locale/de/foreman_discovery.po +146 -64
  14. data/locale/en_GB/foreman_discovery.po +146 -64
  15. data/locale/es/foreman_discovery.po +146 -64
  16. data/locale/foreman_discovery.pot +97 -41
  17. data/locale/fr/foreman_discovery.po +146 -64
  18. data/locale/gl/foreman_discovery.po +100 -59
  19. data/locale/it/foreman_discovery.po +106 -59
  20. data/locale/ja/foreman_discovery.po +132 -61
  21. data/locale/ko/foreman_discovery.po +104 -58
  22. data/locale/pt_BR/foreman_discovery.po +106 -59
  23. data/locale/ru/foreman_discovery.po +152 -66
  24. data/locale/sv_SE/foreman_discovery.po +103 -59
  25. data/locale/zh_CN/foreman_discovery.po +104 -58
  26. data/locale/zh_TW/foreman_discovery.po +104 -58
  27. data/test/functional/api/v2/discovered_hosts_controller_test.rb +30 -11
  28. data/test/functional/discovered_hosts_controller_test.rb +30 -26
  29. data/test/unit/discovered_extensions_test.rb +8 -8
  30. metadata +10 -34
  31. data/app/views/api/v2/discovered_hosts/auto_provision.json.rabl +0 -3
  32. data/app/views/api/v2/discovered_hosts/auto_provision_all.json.rabl +0 -3
  33. data/locale/Makefile +0 -62
  34. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/de/foreman_discovery.pox +0 -40
  36. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  37. data/locale/en_GB/foreman_discovery.pox +0 -0
  38. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/es/foreman_discovery.pox +0 -41
  40. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/fr/foreman_discovery.pox +0 -69
  42. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  43. data/locale/gl/foreman_discovery.pox +0 -21
  44. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/it/foreman_discovery.pox +0 -0
  46. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  47. data/locale/ja/foreman_discovery.pox +0 -29
  48. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  49. data/locale/ko/foreman_discovery.pox +0 -189
  50. data/locale/messages.mo +0 -0
  51. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  52. data/locale/pt_BR/foreman_discovery.pox +0 -0
  53. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/ru/foreman_discovery.pox +0 -0
  55. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/zanata.xml +0 -28
  57. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  58. data/locale/zh_CN/foreman_discovery.pox +0 -33
  59. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  60. data/locale/zh_TW/foreman_discovery.pox +0 -23
File without changes
@@ -1,41 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: foreman_discovery 3.0.0\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-28 17:53+0100\n"
6
- "PO-Revision-Date: 2015-03-21 22:53+0000\n"
7
- "Last-Translator: Sergio Ocón <sergio.ocon@redhat.com>\n"
8
- "Language-Team: Spanish "
9
- "(http://www.transifex.com/foreman/foreman/language/es/)\n"
10
- "Language: es\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Translate Toolkit 1.9.0\n"
16
-
17
- # (pofilter) variables: Do not translate: %s, %s
18
- # (pofilter) printf: Different number of printf variables
19
- msgid "Failed to auto provision host %s: %s"
20
- msgstr "Error al provisionar el host automáticamente: %s"
21
-
22
- # (pofilter) endwhitespace: Different whitespace at the end
23
- msgid "The default location to place discovered hosts in"
24
- msgstr "La ubicación predeterminada para colocar hosts descubiertos "
25
-
26
- # (pofilter) endwhitespace: Different whitespace at the end
27
- msgid "The default organization to place discovered hosts in"
28
- msgstr "La ubicación predeterminada para colocar organizaciones descubiertas "
29
-
30
- # (pofilter) endpunc: Different punctuation at the end
31
- msgid ""
32
- "This might take a while, as all hosts, facts and reports will be destroyed "
33
- "as well"
34
- msgstr "Esta acción puede tardar un rato, ya que se eliminarán todos los equipos, datos e informes."
35
-
36
- # (pofilter) endpunc: Different punctuation at the end
37
- msgid ""
38
- "When creating hostname patterns, make sure the resulting host names are "
39
- "unique. Hostnames must not start with numbers. A good approach is to use "
40
- "unique information provided by facter (MAC address, BIOS or serial ID)."
41
- msgstr "Cuando cree patrones para nombres, asegúrese de que los nombre de host resultantes son únicos. Los nombres de host no deben comenzar por números. Una buena técnica es usar información única del facter (dirección MAC, BIOS o ID)"
@@ -1,69 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: foreman_discovery 3.0.0\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-28 17:53+0100\n"
6
- "PO-Revision-Date: 2015-03-21 12:54+0000\n"
7
- "Last-Translator: Claer <transiblu@claer.hammock.fr>\n"
8
- "Language-Team: French "
9
- "(http://www.transifex.com/foreman/foreman/language/fr/)\n"
10
- "Language: fr\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
- "X-Generator: Translate Toolkit 1.9.0\n"
16
-
17
- # (pofilter) endpunc: Different punctuation at the end
18
- msgid "Are you sure?"
19
- msgstr "Êtes vous sûr ?"
20
-
21
- # (pofilter) endpunc: Different punctuation at the end
22
- msgid "Delete %s?"
23
- msgstr "Supprimer %s ?"
24
-
25
- # (pofilter) endpunc: Different punctuation at the end
26
- msgid "Disable rule?"
27
- msgstr "Désactiver la règle ?"
28
-
29
- # (pofilter) endpunc: Different punctuation at the end
30
- msgid ""
31
- "Domain will be appended automatically. A hostname based on MAC address will "
32
- "be used when left blank. In addition to @host attribute function rand for "
33
- "random integers is available. Examples:"
34
- msgstr "Le nom de domaine va être ajouté automatiquement. Un nom d'hôte basé sur l'adresse MAC va être utilisé si ce champ reste vide. En complément de l'attribut @host, la fonction rand pour des entiers aléatoires est disponible. Ex :"
35
-
36
- # (pofilter) endpunc: Different punctuation at the end
37
- msgid "Enable rule?"
38
- msgstr "Activer la règle ?"
39
-
40
- # (pofilter) puncspacing: Different spacing around punctuation
41
- msgid "Failed to reboot host %{hostname} with error %{error_message}"
42
- msgstr "Échec de redémarrage de l'hôte %{hostname}. Erreur : %{error_message}"
43
-
44
- # (pofilter) endpunc: Different punctuation at the end
45
- msgid ""
46
- "Specify target hostname template pattern in the same syntax as in "
47
- "Provisioning Templates (ERB)."
48
- msgstr "Spécifier un modèle de nom d'hôte cible en utilisant la même syntaxe que les modèles de provisionnement (en ERB)"
49
-
50
- # (pofilter) endpunc: Different punctuation at the end
51
- msgid "The default prefix to use for the host name, must start with a letter"
52
- msgstr "Le préfixe par défaut à utiliser pour les noms d'hôtes. Le préfixe doit commencer par une lettre."
53
-
54
- # (pofilter) endpunc: Different punctuation at the end
55
- msgid ""
56
- "When creating hostname patterns, make sure the resulting host names are "
57
- "unique. Hostnames must not start with numbers. A good approach is to use "
58
- "unique information provided by facter (MAC address, BIOS or serial ID)."
59
- msgstr "Lors de la création des modèles de nom d'hôtes, soyez sûrs que les noms résultant soient uniques. Les nom d'hôtes ne doivent pas commencer par un chiffre. Une bonne approche est d'utiliser une information propre à une machine fournie par facter (Par ex: adresse MAC, BIOS, numéro de série)"
60
-
61
- # (pofilter) endpunc: Different punctuation at the end
62
- msgid "must start with a letter or ERB."
63
- msgstr "doit commencer par une lettre ou être au format ERB"
64
-
65
- # (pofilter) endpunc: Different punctuation at the end
66
- msgid ""
67
- "required if value is not inherited from host group or default password in "
68
- "settings"
69
- msgstr "requis si la valeur n'est pas héritée d'un groupe d'hôtes ou si le mot de passe par défaut n'est pas défini dans les paramètres généraux."
@@ -1,21 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: foreman_discovery 3.0.0\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-28 17:53+0100\n"
6
- "PO-Revision-Date: 2015-03-21 22:54+0000\n"
7
- "Last-Translator: Lukáš Zapletal\n"
8
- "Language-Team: Galician "
9
- "(http://www.transifex.com/foreman/foreman/language/gl/)\n"
10
- "Language: gl\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Translate Toolkit 1.9.0\n"
16
-
17
- # (pofilter) endpunc: Different punctuation at the end
18
- msgid ""
19
- "This might take a while, as all hosts, facts and reports will be destroyed "
20
- "as well"
21
- msgstr "Esta acción pode tardar un anaco, xa que se eliminarán tódolos equipos, datos e informes."
File without changes
@@ -1,29 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: foreman_discovery 3.0.0\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-28 17:53+0100\n"
6
- "PO-Revision-Date: 2015-04-05 12:23+0000\n"
7
- "Last-Translator: Shuji Yamada <uzy.exe@gmail.com>\n"
8
- "Language-Team: Japanese "
9
- "(http://www.transifex.com/foreman/foreman/language/ja/)\n"
10
- "Language: ja\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=1; plural=0;\n"
15
- "X-Generator: Translate Toolkit 1.9.0\n"
16
-
17
- # (pofilter) endpunc: Different punctuation at the end
18
- msgid "Disable rule?"
19
- msgstr "ルールを無効にしますか?"
20
-
21
- # (pofilter) puncspacing: Different spacing around punctuation
22
- msgid "Rule priority (lower integer means higher priority)"
23
- msgstr "ルール優先度 ( 小さい整数ほど、より高い優先順位を意味します )"
24
-
25
- # (pofilter) endpunc: Different punctuation at the end
26
- msgid ""
27
- "This might take a while, as all hosts, facts and reports will be destroyed "
28
- "as well"
29
- msgstr "ホスト、ファクトおよびレポートがすべて破棄されるため、時間がかかる場合があります。"
@@ -1,189 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: foreman_discovery 3.0.0\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-28 17:53+0100\n"
6
- "PO-Revision-Date: 2015-03-21 22:53+0000\n"
7
- "Last-Translator: Lukáš Zapletal\n"
8
- "Language-Team: Korean "
9
- "(http://www.transifex.com/foreman/foreman/language/ko/)\n"
10
- "Language: ko\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=1; plural=0;\n"
15
- "X-Generator: Translate Toolkit 1.9.0\n"
16
-
17
- # (pofilter) endwhitespace: Different whitespace at the end
18
- msgid "%s - The following hosts are about to be changed"
19
- msgstr "%s - 다음 호스트는 즉시 변경됩니다 "
20
-
21
- # (pofilter) endwhitespace: Different whitespace at the end
22
- msgid "%s ago"
23
- msgstr "%s 전 "
24
-
25
- # (pofilter) endwhitespace: Different whitespace at the end
26
- msgid "Are you sure?"
27
- msgstr "정말로 삭제하시겠습니까? "
28
-
29
- # (pofilter) endwhitespace: Different whitespace at the end
30
- msgid "Assign Location"
31
- msgstr "위치 지정 "
32
-
33
- # (pofilter) endwhitespace: Different whitespace at the end
34
- msgid "Assign Organization"
35
- msgstr "조직 지정 "
36
-
37
- # (pofilter) endwhitespace: Different whitespace at the end
38
- msgid "Cancel"
39
- msgstr "취소 "
40
-
41
- # (pofilter) endwhitespace: Different whitespace at the end
42
- msgid "Delete"
43
- msgstr "삭제 "
44
-
45
- # (pofilter) endwhitespace: Different whitespace at the end
46
- msgid "Delete hosts"
47
- msgstr "호스트 삭제 "
48
-
49
- # (pofilter) endwhitespace: Different whitespace at the end
50
- msgid "Discovered hosts"
51
- msgstr "검색된 호스트 "
52
-
53
- # (pofilter) endwhitespace: Different whitespace at the end
54
- msgid "Fact"
55
- msgstr "정보 "
56
-
57
- # (pofilter) endwhitespace: Different whitespace at the end
58
- msgid "Facts discovered on this host"
59
- msgstr "이 호스트에서 검색된 정보 "
60
-
61
- # (pofilter) endwhitespace: Different whitespace at the end
62
- msgid "Facts refreshed for %s"
63
- msgstr "%s에 대해 업데이트된 정보 "
64
-
65
- # (pofilter) endwhitespace: Different whitespace at the end
66
- msgid "Failed to refresh facts for %s"
67
- msgstr "%s에 대한 정보를 새로고침하는데 실패했습니다 "
68
-
69
- # (pofilter) endwhitespace: Different whitespace at the end
70
- msgid "Host"
71
- msgstr "호스트 "
72
-
73
- # (pofilter) endwhitespace: Different whitespace at the end
74
- msgid "Host group"
75
- msgstr "호스트 그룹 "
76
-
77
- # (pofilter) endwhitespace: Different whitespace at the end
78
- msgid "Invalid facts, must be a Hash"
79
- msgstr "잘못된 정보, 해시여야 합니다 "
80
-
81
- # (pofilter) endwhitespace: Different whitespace at the end
82
- msgid "Invalid facts: hash does not contain the required fact '%s'"
83
- msgstr "잘못된 정보: 해시에 필요한 정보 '%s'가 포함되어 있지 않습니다 "
84
-
85
- # (pofilter) endwhitespace: Different whitespace at the end
86
- msgid "Last facts upload"
87
- msgstr "마지막 정보 업로드 "
88
-
89
- # (pofilter) endwhitespace: Different whitespace at the end
90
- msgid "Location"
91
- msgstr "위치 "
92
-
93
- # (pofilter) endwhitespace: Different whitespace at the end
94
- msgid "Memory"
95
- msgstr "메모리 "
96
-
97
- # (pofilter) endwhitespace: Different whitespace at the end
98
- msgid "Model"
99
- msgstr "모델 "
100
-
101
- # (pofilter) endwhitespace: Different whitespace at the end
102
- msgid "N/A"
103
- msgstr "해당 없음 "
104
-
105
- # (pofilter) endwhitespace: Different whitespace at the end
106
- msgid "Name"
107
- msgstr "이름 "
108
-
109
- # (pofilter) endwhitespace: Different whitespace at the end
110
- msgid "No hosts selected"
111
- msgstr "선택된 호스트가 없음 "
112
-
113
- # (pofilter) endwhitespace: Different whitespace at the end
114
- msgid "No hosts were found with that id or name"
115
- msgstr "해당 ID 또는 이름의 호스트를 찾을 수 없습니다 "
116
-
117
- # (pofilter) endwhitespace: Different whitespace at the end
118
- msgid "Organization"
119
- msgstr "조직 "
120
-
121
- # (pofilter) endwhitespace: Different whitespace at the end
122
- msgid "Please Confirm"
123
- msgstr "확인해 주십시오 "
124
-
125
- # (pofilter) endwhitespace: Different whitespace at the end
126
- msgid "Provision"
127
- msgstr "프로비저닝 "
128
-
129
- # (pofilter) endwhitespace: Different whitespace at the end
130
- msgid "Rebooting %s"
131
- msgstr "%s 재부팅 중 "
132
-
133
- # (pofilter) endwhitespace: Different whitespace at the end
134
- msgid "Refresh facts"
135
- msgstr "정보 새로 고침 "
136
-
137
- # (pofilter) endwhitespace: Different whitespace at the end
138
- msgid "Select Action"
139
- msgstr "작업 선택 "
140
-
141
- # (pofilter) endwhitespace: Different whitespace at the end
142
- msgid "Select all items in this page"
143
- msgstr "이 페이지에 있는 모든 항목을 선택 "
144
-
145
- # (pofilter) endwhitespace: Different whitespace at the end
146
- msgid "Select location"
147
- msgstr "위치 선택 "
148
-
149
- # (pofilter) endwhitespace: Different whitespace at the end
150
- msgid "Select organization"
151
- msgstr "조직 선택 "
152
-
153
- # (pofilter) endwhitespace: Different whitespace at the end
154
- msgid "Submit"
155
- msgstr "제출 "
156
-
157
- # (pofilter) endwhitespace: Different whitespace at the end
158
- msgid "Subnet"
159
- msgstr "서브넷 "
160
-
161
- # (pofilter) endwhitespace: Different whitespace at the end
162
- msgid "The default fact name to use for the MAC of the system"
163
- msgstr "시스템의 MAC에 사용할 기본 정보 이름 "
164
-
165
- # (pofilter) endwhitespace: Different whitespace at the end
166
- msgid "The default location to place discovered hosts in"
167
- msgstr "검색된 호스트를 배치하기 위한 기본 위치 "
168
-
169
- # (pofilter) endwhitespace: Different whitespace at the end
170
- msgid "The default organization to place discovered hosts in"
171
- msgstr "검색된 호스트를 배치하기 위한 기본 조직 "
172
-
173
- # (pofilter) endwhitespace: Different whitespace at the end
174
- msgid ""
175
- "This might take a while, as all hosts, facts and reports will be destroyed "
176
- "as well"
177
- msgstr "모든 호스트, 정보, 보고서가 모두 삭제되기 때문에 시간이 걸릴 수 있습니다 "
178
-
179
- # (pofilter) endwhitespace: Different whitespace at the end
180
- msgid "Value"
181
- msgstr "값 "
182
-
183
- # (pofilter) endwhitespace: Different whitespace at the end
184
- msgid "Warning"
185
- msgstr "경고 "
186
-
187
- # (pofilter) endwhitespace: Different whitespace at the end
188
- msgid "items selected. Uncheck to Clear"
189
- msgstr "항목이 선택되어 있습니다. 삭제하려면 선택 해제합니다 "
data/locale/messages.mo DELETED
Binary file
File without changes
File without changes
data/locale/zanata.xml DELETED
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <config xmlns="http://zanata.org/namespace/config/">
3
- <url>https://translate.zanata.org/zanata/</url>
4
- <project>satellite6-foreman-discovery</project>
5
- <project-version>6.0</project-version>
6
- <project-type>podir</project-type>
7
- <locales>
8
- <locale>fr</locale>
9
- <locale>it</locale>
10
- <locale>ja</locale>
11
- <locale>ko</locale>
12
- <locale>gu</locale>
13
- <locale>hi</locale>
14
- <locale>mr</locale>
15
- <locale>or</locale>
16
- <locale>ru</locale>
17
- <locale>te</locale>
18
- <locale>pa</locale>
19
- <locale>kn</locale>
20
- <locale map-from="de">de-DE</locale>
21
- <locale map-from="es">es-ES</locale>
22
- <locale map-from="pt_BR">pt-BR</locale>
23
- <locale map-from="bn">bn-IN</locale>
24
- <locale map-from="ta">ta-IN</locale>
25
- <locale map-from="zh_CN">zh-Hans-CN</locale>
26
- <locale map-from="zh_TW">zh-Hant-TW</locale>
27
- </locales>
28
- </config>
@@ -1,33 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: foreman_discovery 3.0.0\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-01-28 17:53+0100\n"
6
- "PO-Revision-Date: 2015-03-21 22:54+0000\n"
7
- "Last-Translator: Lukáš Zapletal\n"
8
- "Language-Team: Chinese (China) "
9
- "(http://www.transifex.com/foreman/foreman/language/zh_CN/)\n"
10
- "Language: zh_CN\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=1; plural=0;\n"
15
- "X-Generator: Translate Toolkit 1.9.0\n"
16
-
17
- # (pofilter) endpunc: Different punctuation at the end
18
- msgid "Are you sure?"
19
- msgstr "您确定吗?"
20
-
21
- # (pofilter) endpunc: Different punctuation at the end
22
- msgid "Delete %s?"
23
- msgstr "删除 %s"
24
-
25
- # (pofilter) endpunc: Different punctuation at the end
26
- msgid ""
27
- "This might take a while, as all hosts, facts and reports will be destroyed "
28
- "as well"
29
- msgstr "这需要一些时间,因为同时还要删除所有主机、详情及报告。"
30
-
31
- # (pofilter) endpunc: Different punctuation at the end
32
- msgid "items selected. Uncheck to Clear"
33
- msgstr "已选择项目。取消选择清除。"