hammer_cli_foreman_puppet 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
- data/lib/hammer_cli_foreman_puppet/command_extensions/host.rb +6 -2
- data/lib/hammer_cli_foreman_puppet/version.rb +1 -1
- data/lib/hammer_cli_foreman_puppet.rb +0 -8
- metadata +5 -8
- data/lib/hammer_cli_foreman_puppet/command_extensions/discovery.rb +0 -16
- data/lib/hammer_cli_foreman_puppet/discovery.rb +0 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb434e53e9e04daa2080f72e8194162bbd4f336e242387ee59324dbb3cd59946
|
|
4
|
+
data.tar.gz: a09d9b608bd2ed784d7a75fdc4a156d46102b15cceb152bc5ac3dd8625e80615
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb79af2cd152c7c74abbff609b07515b2cd4bd1e84da31f147676963ff5c152ac7c0045ab9486aedc0be4d2ab01a5768858d3a28a88337c5579f86c1374abc71
|
|
7
|
+
data.tar.gz: ff88674f1581845eb009a482fa1266102327f370248493181a3f3faf39c8336d5d2213c010cdafb60c86425ef2f7ae1f18cab9fa51de3ac34c6466491471a801
|
|
@@ -17,8 +17,12 @@ module HammerCLIForemanPuppet
|
|
|
17
17
|
child '--puppet-classes', 'PUPPET_CLASS_NAMES', '',
|
|
18
18
|
attribute_name: :option_puppetclass_names
|
|
19
19
|
end
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
option_family associate: 'puppet_proxy' do
|
|
21
|
+
child '--puppet-proxy', 'PUPPET_PROXY_NAME', _('Name of Puppet proxy')
|
|
22
|
+
end
|
|
23
|
+
option_family associate: 'puppet_ca_proxy' do
|
|
24
|
+
child '--puppet-ca-proxy', 'PUPPET_CA_PROXY_NAME', _('Name of Puppet CA proxy')
|
|
25
|
+
end
|
|
22
26
|
|
|
23
27
|
request_params do |params, command_object|
|
|
24
28
|
if command_object.option_puppet_proxy
|
|
@@ -49,12 +49,4 @@ module HammerCLIForemanPuppet
|
|
|
49
49
|
'HammerCLIForemanPuppet::SmartClassParameter',
|
|
50
50
|
'hammer_cli_foreman_puppet/smart_class_parameter'
|
|
51
51
|
)
|
|
52
|
-
|
|
53
|
-
# Plugins extensions
|
|
54
|
-
begin
|
|
55
|
-
require 'hammer_cli_foreman_puppet/discovery'
|
|
56
|
-
rescue Exception => e
|
|
57
|
-
logger = Logging.logger['HammerCLIForemanPuppet::Discovery']
|
|
58
|
-
logger.debug("Discovery plugin was not found: #{e}")
|
|
59
|
-
end
|
|
60
52
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli_foreman_puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amir Fefer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hammer_cli_foreman
|
|
@@ -46,7 +46,6 @@ files:
|
|
|
46
46
|
- lib/hammer_cli_foreman_puppet/combination.rb
|
|
47
47
|
- lib/hammer_cli_foreman_puppet/command_extensions.rb
|
|
48
48
|
- lib/hammer_cli_foreman_puppet/command_extensions/combination.rb
|
|
49
|
-
- lib/hammer_cli_foreman_puppet/command_extensions/discovery.rb
|
|
50
49
|
- lib/hammer_cli_foreman_puppet/command_extensions/environment.rb
|
|
51
50
|
- lib/hammer_cli_foreman_puppet/command_extensions/environments.rb
|
|
52
51
|
- lib/hammer_cli_foreman_puppet/command_extensions/host.rb
|
|
@@ -55,7 +54,6 @@ files:
|
|
|
55
54
|
- lib/hammer_cli_foreman_puppet/command_extensions/organization.rb
|
|
56
55
|
- lib/hammer_cli_foreman_puppet/commands.rb
|
|
57
56
|
- lib/hammer_cli_foreman_puppet/config_group.rb
|
|
58
|
-
- lib/hammer_cli_foreman_puppet/discovery.rb
|
|
59
57
|
- lib/hammer_cli_foreman_puppet/environment.rb
|
|
60
58
|
- lib/hammer_cli_foreman_puppet/environment_name_mapping.rb
|
|
61
59
|
- lib/hammer_cli_foreman_puppet/host.rb
|
|
@@ -112,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
110
|
- !ruby/object:Gem::Version
|
|
113
111
|
version: '0'
|
|
114
112
|
requirements: []
|
|
115
|
-
|
|
116
|
-
rubygems_version: 2.7.6.3
|
|
113
|
+
rubygems_version: 3.1.2
|
|
117
114
|
signing_key:
|
|
118
115
|
specification_version: 4
|
|
119
116
|
summary: Foreman Puppet plugin for Hammer CLI
|
|
@@ -121,17 +118,17 @@ test_files:
|
|
|
121
118
|
- test/data/2.1/foreman_api.json
|
|
122
119
|
- test/data/3.0/foreman_api.json
|
|
123
120
|
- test/data/README.md
|
|
121
|
+
- test/test_helper.rb
|
|
122
|
+
- test/unit/apipie_resource_mock.rb
|
|
124
123
|
- test/unit/helpers/command.rb
|
|
125
124
|
- test/unit/helpers/fake_searchables.rb
|
|
126
125
|
- test/unit/helpers/resource_disabled.rb
|
|
127
|
-
- test/unit/apipie_resource_mock.rb
|
|
128
126
|
- test/unit/puppet_class_test.rb
|
|
129
127
|
- test/unit/puppet_environment_test.rb
|
|
130
128
|
- test/unit/smart_class_parameter_test.rb
|
|
131
129
|
- test/unit/test_helper.rb
|
|
132
130
|
- test/unit/test_output_adapter.rb
|
|
133
131
|
- test/unit/config_group_test.rb
|
|
134
|
-
- test/test_helper.rb
|
|
135
132
|
- test/functional/config_group_test.rb
|
|
136
133
|
- test/functional/host/create_test.rb
|
|
137
134
|
- test/functional/host/update_test.rb
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module HammerCLIForemanPuppet
|
|
2
|
-
module CommandExtensions
|
|
3
|
-
class Provision < HammerCLI::CommandExtensions
|
|
4
|
-
option_family(
|
|
5
|
-
format: HammerCLI::Options::Normalizers::List.new,
|
|
6
|
-
aliased_resource: 'puppet-class',
|
|
7
|
-
description: 'Names/Ids of associated Puppet classes'
|
|
8
|
-
) do
|
|
9
|
-
parent '--puppet-class-ids', 'PUPPET_CLASS_IDS', _('List of Puppet class ids'),
|
|
10
|
-
attribute_name: :option_puppetclass_ids
|
|
11
|
-
child '--puppet-classes', 'PUPPET_CLASS_NAMES', '',
|
|
12
|
-
attribute_name: :option_puppetclass_names
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
require 'hammer_cli_foreman_discovery/discovery'
|
|
2
|
-
require 'hammer_cli_foreman_puppet/command_extensions/discovery'
|
|
3
|
-
require 'hammer_cli_foreman_puppet/command_extensions/environment'
|
|
4
|
-
|
|
5
|
-
module HammerCLIForemanPuppet
|
|
6
|
-
HammerCLIForemanDiscovery::DiscoveredHost::ProvisionCommand.extend_with(
|
|
7
|
-
HammerCLIForemanPuppet::CommandExtensions::Provision.new,
|
|
8
|
-
HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment.new
|
|
9
|
-
)
|
|
10
|
-
end
|