Skip to content

Commit

Permalink
support rhsm.processTimeout as a native type option
Browse files Browse the repository at this point in the history
  • Loading branch information
waveclaw committed Apr 29, 2020
1 parent f0582e7 commit 490a937
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020-4-28 5.5.0
- Support rhsm.processTimeout

2020-04-28 5.4.2
- Modernize dependencies to current levels
- Test on EL 8
Expand Down
7 changes: 7 additions & 0 deletions lib/puppet/type/rhsm_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ def self.binary_options
end
end

newproperty(:rhsmd_processTimeout) do
desc 'Control how long to allow the rhsmd cron job to run'
validate do |value|
raise("Require a number. Was given #{value}.") unless value.to_i and value.to_i >= 0
end
end

newproperty(:rhsm_plugindir) do
desc 'The RHN Plugin directory.'
validate do |value|
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waveclaw-subscription_manager",
"version": "5.4.2",
"version": "5.5.0",
"author": "JD Powell <[email protected]>",
"summary": "Manage Katello or Satellite registrations.",
"license": "Apache-2.0",
Expand Down
1 change: 1 addition & 0 deletions spec/unit/type/rhsm_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# rhsm_repo_ca_cert => '/etc/rhsm/ca/',
# rhsm_report_package_profile => 1,
# rhsmcertd_autoattachinterval => 1440,
# rhsm_processTimeout => 3600,
# }

described_class = Puppet::Type.type(:rhsm_config)
Expand Down

1 comment on commit 490a937

@vchepkov
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are wrong here, property is rhsmd_processTimeout, not rhsm_processTimeout

Please sign in to comment.