hammer_cli_foreman_discovery 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_foreman_discovery/command_extensions/provision_with_puppet.rb +2 -0
  3. data/lib/hammer_cli_foreman_discovery/discovery.rb +5 -5
  4. data/lib/hammer_cli_foreman_discovery/discovery_references.rb +2 -0
  5. data/lib/hammer_cli_foreman_discovery/discovery_rule.rb +2 -0
  6. data/lib/hammer_cli_foreman_discovery/i18n.rb +2 -0
  7. data/lib/hammer_cli_foreman_discovery/version.rb +3 -1
  8. data/lib/hammer_cli_foreman_discovery.rb +2 -0
  9. data/locale/ca/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  10. data/locale/ca/hammer_cli_foreman_discovery.po +1 -1
  11. data/locale/cs_CZ/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  12. data/locale/cs_CZ/hammer_cli_foreman_discovery.po +1 -1
  13. data/locale/de/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  14. data/locale/de/hammer_cli_foreman_discovery.po +1 -1
  15. data/locale/en/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  16. data/locale/en/hammer_cli_foreman_discovery.po +1 -1
  17. data/locale/en_GB/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  18. data/locale/en_GB/hammer_cli_foreman_discovery.po +1 -1
  19. data/locale/es/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  20. data/locale/es/hammer_cli_foreman_discovery.po +3 -3
  21. data/locale/fr/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  22. data/locale/fr/hammer_cli_foreman_discovery.po +6 -4
  23. data/locale/it/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  24. data/locale/it/hammer_cli_foreman_discovery.po +1 -1
  25. data/locale/ja/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  26. data/locale/ja/hammer_cli_foreman_discovery.po +1 -1
  27. data/locale/ka/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  28. data/locale/ka/hammer_cli_foreman_discovery.po +1 -1
  29. data/locale/ko/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  30. data/locale/ko/hammer_cli_foreman_discovery.po +13 -13
  31. data/locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  32. data/locale/pt_BR/hammer_cli_foreman_discovery.po +1 -1
  33. data/locale/ru/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  34. data/locale/ru/hammer_cli_foreman_discovery.po +4 -4
  35. data/locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  36. data/locale/zh_CN/hammer_cli_foreman_discovery.po +1 -1
  37. data/locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_discovery.mo +0 -0
  38. data/locale/zh_TW/hammer_cli_foreman_discovery.po +1 -1
  39. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 802f7f3eeb1690a136f1fee27ef62216fe8beab061640a9139d3050eb3f1d722
4
- data.tar.gz: b26d74acfcdcf2d119b3dfc07cf2c57861b14b37d0766971078edcbf3659b78a
3
+ metadata.gz: 2136f373f31218b6fa7f15fce18eb87f28c9d9065ae142340bfffd0019fa069e
4
+ data.tar.gz: e8420f46b1fd21c241d00b18a67537be926d0bd9a069c33871af20d9a1002ba7
5
5
  SHA512:
6
- metadata.gz: 9a345994e82071f26f6eae485267e51504b97e9235053029675aa2d8f5b19211218c9ebce97636649e6bb1e96588e2a54c68a3d989f53aaae3b1e2a74fe770ed
7
- data.tar.gz: 491c79e6275f61b06bd712483458b234380ffea78122bc4ebcaf4162a50f196f304dc1db66b15cc79edd59ddbcf4f97fe95bc69a3fc7be15181abc37eb708cc5
6
+ metadata.gz: 172cbd67a5d87a5c359080b69fb0fe6937717c60bdf0a78e8aabf5eb9f53dac2e606485c89c25357e31b871090f91f6e4c2ac337d1eb0fbed7ea7869d33a1bee
7
+ data.tar.gz: ddd391539737c8fc97a3d8e1a00e859b4198cf92482dc7cc8d14b8846b5a9ef81f0807a52c5a3947ddc3af44fca528e81b17f3cf350b0c5cffbbbdf82454576f
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HammerCLIForemanDiscovery
2
4
  module CommandExtensions
3
5
  class ProvisionWithPuppet < HammerCLI::CommandExtensions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'hammer_cli'
2
4
  require 'hammer_cli_foreman'
3
5
  require 'hammer_cli_foreman/fact'
@@ -106,9 +108,7 @@ module HammerCLIForemanDiscovery
106
108
  params['discovered_host']['root_pass'] = option_root_password unless option_root_password.nil?
107
109
  params['discovered_host']['overwrite'] = option_overwrite unless option_overwrite.nil?
108
110
 
109
- if option_ask_root_password
110
- params['discovered_host']['root_pass'] = ask_password
111
- end
111
+ params['discovered_host']['root_pass'] = ask_password if option_ask_root_password
112
112
 
113
113
  params
114
114
  end
@@ -124,8 +124,8 @@ module HammerCLIForemanDiscovery
124
124
  end
125
125
  end
126
126
 
127
- build_options without: [
128
- :root_pass, :ptable_id, :host_parameters_attributes, :puppet_class_ids, :environment_id, :puppet_proxy_id, :puppet_ca_proxy_id
127
+ build_options without: %i[
128
+ root_pass ptable_id host_parameters_attributes puppet_class_ids environment_id puppet_proxy_id puppet_ca_proxy_id
129
129
  ] do |o|
130
130
  # TODO: Until the API is cleaned up
131
131
  o.expand.except(:environments)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HammerCLIForemanDiscovery
2
4
  module DiscoveryReferences
3
5
  def self.hosts(dsl)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'hammer_cli'
2
4
  require 'hammer_cli_foreman'
3
5
  require 'hammer_cli_foreman_discovery/discovery_references'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'hammer_cli/i18n'
2
4
 
3
5
  module HammerCLIForemanDiscovery
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HammerCLIForemanDiscovery
2
4
  def self.version
3
- @version ||= Gem::Version.new('1.3.0')
5
+ @version ||= Gem::Version.new('1.3.1')
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module HammerCLIForemanDiscovery
2
4
  require 'hammer_cli_foreman_discovery/version'
3
5
 
@@ -6,7 +6,7 @@
6
6
  # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
12
12
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Pavel Borecki <pavel.borecki@gmail.com>, 2018,2020
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
12
12
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -9,7 +9,7 @@
9
9
  # pdolinic, 2021
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
12
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
15
15
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
11
11
  "PO-Revision-Date: 2019-07-31 09:22+0200\n"
@@ -7,7 +7,7 @@
7
7
  # 0868a4d1af5275b3f70b0a6dac4c99a4, 2015
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
10
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
13
13
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -3,14 +3,14 @@
3
3
  # This file is distributed under the same license as the hammer_cli_foreman_discovery package.
4
4
  #
5
5
  # Translators:
6
- # Sergio Ocón-Cárdenas <sergio.ocon@redhat.com>, 2015
6
+ # Sergio Ocón-Cárdenas, 2015
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
12
12
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
13
- "Last-Translator: Sergio Ocón-Cárdenas <sergio.ocon@redhat.com>, 2015\n"
13
+ "Last-Translator: Sergio Ocón-Cárdenas, 2015\n"
14
14
  "Language-Team: Spanish (http://app.transifex.com/foreman/foreman/language/"
15
15
  "es/)\n"
16
16
  "MIME-Version: 1.0\n"
@@ -4,13 +4,15 @@
4
4
  #
5
5
  # Translators:
6
6
  # Claer <transiblu@claer.hammock.fr>, 2015-2016
7
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
7
8
  msgid ""
8
9
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
10
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
10
11
  "Report-Msgid-Bugs-To: \n"
11
12
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
12
13
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
13
- "Last-Translator: Claer <transiblu@claer.hammock.fr>, 2015-2016\n"
14
+ "Last-Translator: Ewoud Kohl van Wijngaarden "
15
+ "<ewoud+transifex@kohlvanwijngaarden.nl>, 2025\n"
14
16
  "Language-Team: French (http://app.transifex.com/foreman/foreman/language/"
15
17
  "fr/)\n"
16
18
  "MIME-Version: 1.0\n"
@@ -90,7 +92,7 @@ msgid "Interface parameters"
90
92
  msgstr "Paramètres d'interface"
91
93
 
92
94
  msgid "Enter the root password for the host:"
93
- msgstr "Saisir le mot de passe root de l'hôte :"
95
+ msgstr "Saisir le mot de passe root de l'hôte:"
94
96
 
95
97
  msgid "Auto provision a host"
96
98
  msgstr "Provisionner un hôte automatiquement"
@@ -123,7 +125,7 @@ msgid "Host facts refreshed"
123
125
  msgstr "Facts de l'hôte rafraichis"
124
126
 
125
127
  msgid "Could not refresh the facts of the host"
126
- msgstr "Impossible de rafraichir les facts de l'hôte"
128
+ msgstr "Impossible de rafraîchir les facts de l'hôte"
127
129
 
128
130
  msgid "Hosts"
129
131
  msgstr "Hôtes"
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
11
11
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -7,7 +7,7 @@
7
7
  # 山田 修司 🍣 Shuji Yamada <uzy.exe@gmail.com>, 2015
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
10
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
13
13
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
11
11
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
11
11
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -37,22 +37,22 @@ msgid "CPUs"
37
37
  msgstr "CPU"
38
38
 
39
39
  msgid "Memory"
40
- msgstr "메모리 "
40
+ msgstr "메모리"
41
41
 
42
42
  msgid "Disk count"
43
- msgstr "디스크 수 "
43
+ msgstr "디스크 수"
44
44
 
45
45
  msgid "Disks size"
46
- msgstr "디스크 크기 "
46
+ msgstr "디스크 크기"
47
47
 
48
48
  msgid "Subnet"
49
- msgstr "서브넷 "
49
+ msgstr "서브넷"
50
50
 
51
51
  msgid "Last report"
52
52
  msgstr "마지막 보고 "
53
53
 
54
54
  msgid "IP"
55
- msgstr "IP "
55
+ msgstr "IP"
56
56
 
57
57
  msgid "Model"
58
58
  msgstr "모델 "
@@ -61,7 +61,7 @@ msgid "Organization"
61
61
  msgstr "조직 "
62
62
 
63
63
  msgid "Location"
64
- msgstr "위치 "
64
+ msgstr "위치"
65
65
 
66
66
  msgid "Fact"
67
67
  msgstr "정보 "
@@ -94,19 +94,19 @@ msgid "Auto provision a host"
94
94
  msgstr "호스트를 자동 프로비저닝"
95
95
 
96
96
  msgid "Auto provision all discovered hosts"
97
- msgstr ""
97
+ msgstr "검색된 모든 호스트를 자동으로 프로비저닝함"
98
98
 
99
99
  msgid "Hosts created"
100
- msgstr ""
100
+ msgstr "호스트 생성됨"
101
101
 
102
102
  msgid "Reboot a host"
103
103
  msgstr "호스트 재부팅 "
104
104
 
105
105
  msgid "Reboot all discovered hosts"
106
- msgstr ""
106
+ msgstr "검색된 모든 호스트를 재부팅합니다."
107
107
 
108
108
  msgid "Rebooting hosts"
109
- msgstr ""
109
+ msgstr "호스트 재부팅"
110
110
 
111
111
  msgid "Host reboot started"
112
112
  msgstr "호스트 재부팅을 시작했습니다"
@@ -133,13 +133,13 @@ msgid "Search"
133
133
  msgstr "검색 "
134
134
 
135
135
  msgid "Host Group"
136
- msgstr "호스트 그룹 "
136
+ msgstr "호스트 그룹"
137
137
 
138
138
  msgid "Hosts Limit"
139
139
  msgstr "호스트 제한"
140
140
 
141
141
  msgid "Enabled"
142
- msgstr "활성화됨 "
142
+ msgstr "활성화됨"
143
143
 
144
144
  msgid "Hostname template"
145
145
  msgstr "호스트 이름 템플릿"
@@ -7,7 +7,7 @@
7
7
  # Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 2015
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
10
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
13
13
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -6,7 +6,7 @@
6
6
  # Vladimir Pavlov <v.pavlov@i-teco.ru>, 2015
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
12
12
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -17,9 +17,9 @@ msgstr ""
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Language: ru\n"
20
- "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
21
- "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
22
- "%100>=11 && n%100<=14)? 2 : 3);\n"
20
+ "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21
+ "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22
+ "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23
23
 
24
24
  msgid "Manipulate discovered hosts."
25
25
  msgstr "Управление обнаруженными узлами."
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
11
11
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_discovery 1.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_discovery 1.3.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2019-07-31 09:22+0200\n"
11
11
  "PO-Revision-Date: 2015-01-21 10:30+0000\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_discovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ohad Levy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-25 00:00:00.000000000 Z
12
+ date: 2025-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hammer_cli_foreman
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.1.6
105
+ rubygems_version: 3.5.23
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Foreman CLI plugin for managing discovery hosts in foreman