hammer_cli_foreman_discovery 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/hammer_cli_foreman_discovery/discovery.rb +12 -12
- data/lib/hammer_cli_foreman_discovery/discovery_rule.rb +3 -0
- data/lib/hammer_cli_foreman_discovery/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/ca/hammer_cli_foreman_discovery.po +154 -0
- data/locale/de/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/de/hammer_cli_foreman_discovery.po +100 -45
- data/locale/en/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/en/hammer_cli_foreman_discovery.po +84 -31
- data/locale/en_GB/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/en_GB/hammer_cli_foreman_discovery.po +106 -50
- data/locale/es/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/es/hammer_cli_foreman_discovery.po +97 -42
- data/locale/fr/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/fr/hammer_cli_foreman_discovery.po +93 -39
- data/locale/hammer_cli_foreman_discovery.pot +21 -21
- data/locale/it/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/it/hammer_cli_foreman_discovery.po +105 -47
- data/locale/ja/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/ja/hammer_cli_foreman_discovery.po +103 -47
- data/locale/ko/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/ko/hammer_cli_foreman_discovery.po +103 -46
- data/locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/pt_BR/hammer_cli_foreman_discovery.po +105 -47
- data/locale/ru/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/ru/hammer_cli_foreman_discovery.po +109 -51
- data/locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/zh_CN/hammer_cli_foreman_discovery.po +106 -48
- data/locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
- data/locale/zh_TW/hammer_cli_foreman_discovery.po +105 -47
- metadata +13 -10
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YjRmMDBhMzQ4MGU4OGRlZmI1YmY3ZTk1YTliMTNlZGI5NjM2ZDI4Mg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a2895d0c39e0846f037bf0f5f2abee4b98033032
|
4
|
+
data.tar.gz: 6af194699553ece8db24a19e301f7e490adfb859
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
Yjg1OWZhZjc2N2E0YWQ5ZDNjZTQ0YmRlMzQxYTlmN2Q0OTQ1MzIxYTBlNjRh
|
11
|
-
YTA0MmE5NDY2NWQyYWFmNmIwM2M0MmE4OTc2MjZkZDkwZDBjZDU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MDIwMDIxNzMzNWUwMGViOWMyOGNiZDQyOGNlODkzZTM4YzEyZTRkYTk3Mjcy
|
14
|
-
MzQ2YzQzMDcwNTFhYjRhMGJlNTU5ZDAyY2EyNTdkNTZhMDFjMTQ4ODgyYTlh
|
15
|
-
MWQ1NGI1MTc5ZDk4Njc0MDUyMjIxZWY0YTY0ZTg1NmJmMDljNWQ=
|
6
|
+
metadata.gz: 9055580e4449417b6eee1cb8815d9f6555ee7022d641859d93e824941c75d93c59ce109e472bf82879dc2cce3c5910a40a98b2fe278153430bd3455e292662dd
|
7
|
+
data.tar.gz: bcf97e743fb8b3b76be01cff39f837debe09c2dde07b83a17172a411b794750fd15afc688c0fa2fd7ceade82dc12222c6760279c362c0ba85c7d7f418d479da2
|
@@ -1,7 +1,11 @@
|
|
1
1
|
require 'hammer_cli'
|
2
2
|
require 'hammer_cli_foreman'
|
3
|
+
require 'hammer_cli_foreman/fact'
|
3
4
|
|
4
5
|
module HammerCLIForemanDiscovery
|
6
|
+
def self.exception_handler_class
|
7
|
+
HammerCLIForeman::ExceptionHandler
|
8
|
+
end
|
5
9
|
|
6
10
|
class DiscoveredHost < HammerCLIForeman::Command
|
7
11
|
|
@@ -12,13 +16,12 @@ module HammerCLIForemanDiscovery
|
|
12
16
|
field :id, _("ID")
|
13
17
|
field :name, _("Name")
|
14
18
|
field :mac, _("MAC")
|
15
|
-
field :last_report, _('Last report'), Fields::Date
|
16
19
|
field :cpus, _('CPUs')
|
17
20
|
field :memory, _('Memory')
|
18
21
|
field :disk_count, _('Disk count')
|
19
22
|
field :disks_size, _('Disks size')
|
20
23
|
field nil, _("Subnet"), Fields::SingleReference, :key => :subnet
|
21
|
-
field :last_report, _('Last
|
24
|
+
field :last_report, _('Last report'), Fields::Date
|
22
25
|
end
|
23
26
|
|
24
27
|
build_options
|
@@ -27,7 +30,7 @@ module HammerCLIForemanDiscovery
|
|
27
30
|
class InfoCommand < HammerCLIForeman::InfoCommand
|
28
31
|
output ListCommand.output_definition do
|
29
32
|
field :ip, _('IP')
|
30
|
-
field :
|
33
|
+
field :model_name, _('Model')
|
31
34
|
field nil, _("Organization"), Fields::SingleReference, :key => :organization
|
32
35
|
field nil, _("Location"), Fields::SingleReference, :key => :location
|
33
36
|
end
|
@@ -35,22 +38,19 @@ module HammerCLIForemanDiscovery
|
|
35
38
|
build_options
|
36
39
|
end
|
37
40
|
|
38
|
-
|
41
|
+
|
42
|
+
class FactsCommand < HammerCLIForeman::AssociatedResourceListCommand
|
39
43
|
command_name "facts"
|
44
|
+
resource :fact_values, :index
|
45
|
+
parent_resource :discovered_hosts
|
40
46
|
|
41
47
|
output do
|
42
48
|
field :fact, _("Fact")
|
43
49
|
field :value, _("Value")
|
44
50
|
end
|
45
51
|
|
46
|
-
def
|
47
|
-
|
48
|
-
{ :fact => fact, :value => value }
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def adapter
|
53
|
-
:table
|
52
|
+
def send_request
|
53
|
+
HammerCLIForeman::Fact::ListCommand.unhash_facts(super)
|
54
54
|
end
|
55
55
|
|
56
56
|
build_options
|
Binary file
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# SOME DESCRIPTIVE TITLE.
|
2
|
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3
|
+
# This file is distributed under the same license as the PACKAGE package.
|
4
|
+
#
|
5
|
+
# Translators:
|
6
|
+
# Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: hammer_cli_foreman_discovery 0.0.2\n"
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
11
|
+
"PO-Revision-Date: 2015-12-09 11:08+0000\n"
|
12
|
+
"Last-Translator: Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>\n"
|
13
|
+
"Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
|
14
|
+
"\n"
|
15
|
+
"MIME-Version: 1.0\n"
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
18
|
+
"Language: ca\n"
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
|
+
|
21
|
+
msgid "Manipulate discovered hosts."
|
22
|
+
msgstr "Manipula els amfitrions descoberts."
|
23
|
+
|
24
|
+
msgid "Manipulate discovered rules."
|
25
|
+
msgstr "Manipula les regles descobertes."
|
26
|
+
|
27
|
+
msgid "ID"
|
28
|
+
msgstr "ID"
|
29
|
+
|
30
|
+
msgid "Name"
|
31
|
+
msgstr "Nom"
|
32
|
+
|
33
|
+
msgid "MAC"
|
34
|
+
msgstr "MAC"
|
35
|
+
|
36
|
+
msgid "Last report"
|
37
|
+
msgstr "Últim informe"
|
38
|
+
|
39
|
+
msgid "CPUs"
|
40
|
+
msgstr "Les CPU"
|
41
|
+
|
42
|
+
msgid "Memory"
|
43
|
+
msgstr "Memòria"
|
44
|
+
|
45
|
+
msgid "Disk count"
|
46
|
+
msgstr "Nombre de disc"
|
47
|
+
|
48
|
+
msgid "Disks size"
|
49
|
+
msgstr "Mida de disc"
|
50
|
+
|
51
|
+
msgid "Subnet"
|
52
|
+
msgstr "Subxarxa"
|
53
|
+
|
54
|
+
msgid "Last Report"
|
55
|
+
msgstr "Últim informe"
|
56
|
+
|
57
|
+
msgid "IP"
|
58
|
+
msgstr "IP"
|
59
|
+
|
60
|
+
msgid "Model"
|
61
|
+
msgstr "Model"
|
62
|
+
|
63
|
+
msgid "Organization"
|
64
|
+
msgstr "Organització"
|
65
|
+
|
66
|
+
msgid "Location"
|
67
|
+
msgstr "Ubicació"
|
68
|
+
|
69
|
+
msgid "Fact"
|
70
|
+
msgstr "Objecte d'interès"
|
71
|
+
|
72
|
+
msgid "Value"
|
73
|
+
msgstr "Valor"
|
74
|
+
|
75
|
+
msgid "Host deleted"
|
76
|
+
msgstr "S'ha suprimit l'amfitrió"
|
77
|
+
|
78
|
+
msgid "Could not delete the host"
|
79
|
+
msgstr "No s'ha pogut suprimir l'amfitrió"
|
80
|
+
|
81
|
+
msgid "Host created"
|
82
|
+
msgstr "S'ha creat l'amfitrió"
|
83
|
+
|
84
|
+
msgid "Could not create the host"
|
85
|
+
msgstr "No s'ha pogut crear l'amfitrió"
|
86
|
+
|
87
|
+
msgid "Host parameters"
|
88
|
+
msgstr "Paràmetres de l'amfitrió"
|
89
|
+
|
90
|
+
msgid "Interface parameters"
|
91
|
+
msgstr "Paràmetres de la interfície"
|
92
|
+
|
93
|
+
msgid "Enter the root password for the host:"
|
94
|
+
msgstr "Introduïu la contrasenya de root per a l'amfitrió:"
|
95
|
+
|
96
|
+
msgid "Auto provision a host"
|
97
|
+
msgstr "Auto aprovisiona un amfitrió"
|
98
|
+
|
99
|
+
msgid "Reboot a host"
|
100
|
+
msgstr "Reinicia un amfitrió"
|
101
|
+
|
102
|
+
msgid "Host reboot started"
|
103
|
+
msgstr "S'ha iniciat el reinici de l'amfitrió"
|
104
|
+
|
105
|
+
msgid "Could not reboot the host"
|
106
|
+
msgstr "No s'ha pogut reiniciar l'amfitrió"
|
107
|
+
|
108
|
+
msgid "Refresh the facts of a host"
|
109
|
+
msgstr "Refresca els objectes d'interès d'un amfitrió"
|
110
|
+
|
111
|
+
msgid "Host facts refreshed"
|
112
|
+
msgstr "S'han refrescat els objectes d'interès de l'amfitrió"
|
113
|
+
|
114
|
+
msgid "Could not refresh the facts of the host"
|
115
|
+
msgstr "No s'ha pogut refrescar els objectes d'interès de l'amfitrió"
|
116
|
+
|
117
|
+
msgid "Hosts"
|
118
|
+
msgstr "Amfitrions"
|
119
|
+
|
120
|
+
msgid "Priority"
|
121
|
+
msgstr "Prioritat"
|
122
|
+
|
123
|
+
msgid "Search"
|
124
|
+
msgstr "Cerca"
|
125
|
+
|
126
|
+
msgid "Host Group"
|
127
|
+
msgstr "Grup dels amfitrions"
|
128
|
+
|
129
|
+
msgid "Hosts Limit"
|
130
|
+
msgstr "Límit d'amfitrions"
|
131
|
+
|
132
|
+
msgid "Enabled"
|
133
|
+
msgstr "Habilitat"
|
134
|
+
|
135
|
+
msgid "Hostname template"
|
136
|
+
msgstr "Plantilla de nom d'amfitrió"
|
137
|
+
|
138
|
+
msgid "Rule created"
|
139
|
+
msgstr "S'ha creat la regla"
|
140
|
+
|
141
|
+
msgid "Could not create the rule"
|
142
|
+
msgstr "No s'ha pogut crear la regla"
|
143
|
+
|
144
|
+
msgid "Rule updated"
|
145
|
+
msgstr "S'ha actualitzat la regla"
|
146
|
+
|
147
|
+
msgid "Could not update the rule"
|
148
|
+
msgstr "No s'ha pogut actualitzar la regla"
|
149
|
+
|
150
|
+
msgid "Rule deleted"
|
151
|
+
msgstr "S'ha suprimit la regla"
|
152
|
+
|
153
|
+
msgid "Could not delete the rule"
|
154
|
+
msgstr "No s'ha pogut suprimir la regla"
|
Binary file
|
@@ -3,97 +3,152 @@
|
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
4
4
|
#
|
5
5
|
# Translators:
|
6
|
+
# Christina Gurski <Gurski_christina@yahoo.de>, 2015
|
6
7
|
# Ettore Atalan <atalanttore@googlemail.com>, 2015
|
7
8
|
msgid ""
|
8
9
|
msgstr ""
|
9
10
|
"Project-Id-Version: hammer_cli_foreman_discovery 0.0.2\n"
|
10
11
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"Language
|
12
|
+
"PO-Revision-Date: 2015-06-18 19:38+0000\n"
|
13
|
+
"Last-Translator: Christina Gurski <Gurski_christina@yahoo.de>\n"
|
14
|
+
"Language-Team: German (http://www.transifex.com/foreman/foreman/language/de/)\n"
|
15
|
+
"Language: de\n"
|
15
16
|
"MIME-Version: 1.0\n"
|
16
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
17
18
|
"Content-Transfer-Encoding: 8bit\n"
|
18
|
-
"Language: de\n"
|
19
19
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
msgid "Manipulate discovered hosts."
|
22
|
+
msgstr "Entdeckte Hosts bearbeiten"
|
23
|
+
|
24
|
+
msgid "Manipulate discovered rules."
|
25
|
+
msgstr "Entdeckte Regeln bearbeiten"
|
26
|
+
|
27
|
+
msgid "ID"
|
23
28
|
msgstr "Kennung"
|
24
29
|
|
25
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:12
|
26
30
|
msgid "Name"
|
27
31
|
msgstr "Name"
|
28
32
|
|
29
|
-
|
30
|
-
msgid "Mac"
|
33
|
+
msgid "MAC"
|
31
34
|
msgstr "MAC"
|
32
35
|
|
33
|
-
|
34
|
-
msgid "Last Report"
|
36
|
+
msgid "Last report"
|
35
37
|
msgstr "Letzter Bericht"
|
36
38
|
|
37
|
-
|
39
|
+
msgid "CPUs"
|
40
|
+
msgstr "CPUs"
|
41
|
+
|
42
|
+
msgid "Memory"
|
43
|
+
msgstr "Speicher"
|
44
|
+
|
45
|
+
msgid "Disk count"
|
46
|
+
msgstr "Festplattenanzahl"
|
47
|
+
|
48
|
+
msgid "Disks size"
|
49
|
+
msgstr "Festplattengröße"
|
50
|
+
|
38
51
|
msgid "Subnet"
|
39
52
|
msgstr "Subnetz"
|
40
53
|
|
41
|
-
|
54
|
+
msgid "Last Report"
|
55
|
+
msgstr "Letzter Bericht"
|
56
|
+
|
57
|
+
msgid "IP"
|
58
|
+
msgstr "IP"
|
59
|
+
|
60
|
+
msgid "Model"
|
61
|
+
msgstr "Modell"
|
62
|
+
|
42
63
|
msgid "Organization"
|
43
64
|
msgstr "Organisation"
|
44
65
|
|
45
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:17
|
46
66
|
msgid "Location"
|
47
67
|
msgstr "Ort"
|
48
68
|
|
49
|
-
|
50
|
-
|
51
|
-
msgstr "IP"
|
69
|
+
msgid "Fact"
|
70
|
+
msgstr "Fakt"
|
52
71
|
|
53
|
-
|
54
|
-
|
55
|
-
msgstr "Modell"
|
72
|
+
msgid "Value"
|
73
|
+
msgstr "Wert"
|
56
74
|
|
57
|
-
|
58
|
-
|
59
|
-
|
75
|
+
msgid "Host deleted"
|
76
|
+
msgstr "Host gelöscht"
|
77
|
+
|
78
|
+
msgid "Could not delete the host"
|
79
|
+
msgstr "Host konnte nicht gelöscht werden"
|
60
80
|
|
61
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:36
|
62
81
|
msgid "Host created"
|
63
82
|
msgstr "Host erstellt"
|
64
83
|
|
65
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:37
|
66
84
|
msgid "Could not create the host"
|
67
85
|
msgstr "Host konnte nicht erstellt werden"
|
68
86
|
|
69
|
-
|
70
|
-
|
71
|
-
|
87
|
+
msgid "Host parameters"
|
88
|
+
msgstr "Hostparameter"
|
89
|
+
|
90
|
+
msgid "Interface parameters"
|
91
|
+
msgstr "Schnittstellenparameter"
|
92
|
+
|
93
|
+
msgid "Enter the root password for the host:"
|
94
|
+
msgstr "Geben Sie das Root-Passwort für den Host ein:"
|
72
95
|
|
73
|
-
|
74
|
-
|
75
|
-
msgstr "Schnittstellenparameter."
|
96
|
+
msgid "Auto provision a host"
|
97
|
+
msgstr "Host automatisch bereitstellen"
|
76
98
|
|
77
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:89
|
78
99
|
msgid "Reboot a host"
|
79
|
-
msgstr "Host
|
100
|
+
msgstr "Host neu starten"
|
80
101
|
|
81
|
-
|
82
|
-
|
83
|
-
msgstr "Host wird neu gestartet."
|
102
|
+
msgid "Host reboot started"
|
103
|
+
msgstr "Host wird neu gestartet"
|
84
104
|
|
85
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:91
|
86
105
|
msgid "Could not reboot the host"
|
87
|
-
msgstr ""
|
106
|
+
msgstr "Host konnte nicht neu gestartet werden"
|
88
107
|
|
89
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:99
|
90
108
|
msgid "Refresh the facts of a host"
|
91
|
-
msgstr ""
|
109
|
+
msgstr "Aktualisieren Sie die Daten eines Hosts"
|
92
110
|
|
93
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:100
|
94
111
|
msgid "Host facts refreshed"
|
95
|
-
msgstr ""
|
112
|
+
msgstr "Hostdaten aktualisiert"
|
96
113
|
|
97
|
-
#: lib/hammer_cli_foreman_discovery/discovery.rb:101
|
98
114
|
msgid "Could not refresh the facts of the host"
|
99
|
-
msgstr ""
|
115
|
+
msgstr "Daten des Hosts konnten nicht aktualisiert werden"
|
116
|
+
|
117
|
+
msgid "Hosts"
|
118
|
+
msgstr "Hosts"
|
119
|
+
|
120
|
+
msgid "Priority"
|
121
|
+
msgstr "Priorität"
|
122
|
+
|
123
|
+
msgid "Search"
|
124
|
+
msgstr "Suche"
|
125
|
+
|
126
|
+
msgid "Host Group"
|
127
|
+
msgstr "Hostgruppe"
|
128
|
+
|
129
|
+
msgid "Hosts Limit"
|
130
|
+
msgstr "Hosts-Limit"
|
131
|
+
|
132
|
+
msgid "Enabled"
|
133
|
+
msgstr "Aktiviert"
|
134
|
+
|
135
|
+
msgid "Hostname template"
|
136
|
+
msgstr "Hostnamenvorlage"
|
137
|
+
|
138
|
+
msgid "Rule created"
|
139
|
+
msgstr "Regel erstellt"
|
140
|
+
|
141
|
+
msgid "Could not create the rule"
|
142
|
+
msgstr "Regel konnte nicht erstellt werden"
|
143
|
+
|
144
|
+
msgid "Rule updated"
|
145
|
+
msgstr "Regel aktualisiert"
|
146
|
+
|
147
|
+
msgid "Could not update the rule"
|
148
|
+
msgstr "Regel konnte nicht aktualisiert werden"
|
149
|
+
|
150
|
+
msgid "Rule deleted"
|
151
|
+
msgstr "Regel gelöscht"
|
152
|
+
|
153
|
+
msgid "Could not delete the rule"
|
154
|
+
msgstr "Regel konnte nicht gelöscht werden"
|