hammer_cli_foreman_discovery 1.3.0 → 1.4.0

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 +1 -1
  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 +11 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 802f7f3eeb1690a136f1fee27ef62216fe8beab061640a9139d3050eb3f1d722
4
- data.tar.gz: b26d74acfcdcf2d119b3dfc07cf2c57861b14b37d0766971078edcbf3659b78a
3
+ metadata.gz: d14c0988a3a97c1f70f9cc409b9ed0c7abce119b0a9bcab0560e6ebb48b1029e
4
+ data.tar.gz: 9afaee8c52eb1ebe7fd9e73ee32d286d60414562bb5003c92704840aa0e64b17
5
5
  SHA512:
6
- metadata.gz: 9a345994e82071f26f6eae485267e51504b97e9235053029675aa2d8f5b19211218c9ebce97636649e6bb1e96588e2a54c68a3d989f53aaae3b1e2a74fe770ed
7
- data.tar.gz: 491c79e6275f61b06bd712483458b234380ffea78122bc4ebcaf4162a50f196f304dc1db66b15cc79edd59ddbcf4f97fe95bc69a3fc7be15181abc37eb708cc5
6
+ metadata.gz: 3a88af3510ae899b06c438ed94901766dc0839af28af85595493ec32c6f331aec3825494d34723e8858f1ea9afbfeb7ba7b28e26dfc370cd86254216efedab35
7
+ data.tar.gz: 730395d82a7b11419f5d3af1d690dca1b5e83d9d6e2ed779750c5b46489b6c4d9c3a03cee3b1510f5ba2b4093dd8de05eb8b48504159cc2943bd5ab408ee27fb
@@ -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.4.0')
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.1\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.1\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.1\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.1\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.1\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.1\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.1\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 <ewoud"
15
+ "+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.1\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.1\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.1\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.1\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.1\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.1\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"
@@ -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.1\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.1\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,30 +1,35 @@
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.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ohad Levy
8
8
  - Ori Rabin
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-03-25 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: hammer_cli_foreman
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - "~>"
17
+ - - ">="
19
18
  - !ruby/object:Gem::Version
20
19
  version: '3.10'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6.0'
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
- - - "~>"
27
+ - - ">="
26
28
  - !ruby/object:Gem::Version
27
29
  version: '3.10'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6.0'
28
33
  description: 'Contains the code for managing host discovery in foreman(results and
29
34
  progress) in the Hammer CLI.
30
35
 
@@ -84,7 +89,6 @@ homepage: https://github.com/theforeman/hammer-cli-foreman-discovery
84
89
  licenses:
85
90
  - GPL-3.0-or-later
86
91
  metadata: {}
87
- post_install_message:
88
92
  rdoc_options: []
89
93
  require_paths:
90
94
  - lib
@@ -102,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
106
  - !ruby/object:Gem::Version
103
107
  version: '0'
104
108
  requirements: []
105
- rubygems_version: 3.1.6
106
- signing_key:
109
+ rubygems_version: 4.0.10
107
110
  specification_version: 4
108
111
  summary: Foreman CLI plugin for managing discovery hosts in foreman
109
112
  test_files: []