Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#649) Enumerate sensu_enterprise_dashboard_config instances #716

Merged

Conversation

jeffmccune
Copy link
Collaborator

Without this patch the resources resource cannot be used to purge unmanaged
API endpoints as requested in #649. This patch implements the instances class
method providing this functionality.

resolves #649

@jeffmccune jeffmccune force-pushed the 649_se_dashboard_api_config_instances branch from 382bfab to 147bc99 Compare July 6, 2017 20:50
@ghoneycutt
Copy link
Collaborator

What's with the empty commit?

@jeffmccune
Copy link
Collaborator Author

What's with the empty commit?

Made the empty commit to trigger Waffle so I'd be assigned the issue and it'd move over to in-progress.

@jeffmccune jeffmccune force-pushed the 649_se_dashboard_api_config_instances branch 2 times, most recently from 07e2abb to ed64333 Compare July 7, 2017 04:57
@jeffmccune jeffmccune changed the title [WIP] (#649) Enumerate sensu_enterprise_dashboard_config instances (#649) Enumerate sensu_enterprise_dashboard_config instances Jul 7, 2017
@jeffmccune
Copy link
Collaborator Author

This is ready for review / merge.

@@ -1,4 +1,5 @@
require 'puppetlabs_spec_helper/module_spec_helper'
require 'pry'
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be removed. It is what's causing Travis to fail.

Gemfile Outdated
@@ -50,4 +50,8 @@ group :development do
gem 'listen', '~> 3.0.0', :require => false
end

if File.exists? "#{__FILE__}.local"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This would be more clear if it read Gemfile.local instead of being variable, since the name of the Gemfile will not change.

@ghoneycutt
Copy link
Collaborator

Could you please add documentation of this new feature in the README.

@jeffmccune jeffmccune force-pushed the 649_se_dashboard_api_config_instances branch from ed64333 to dd3ad05 Compare July 7, 2017 14:50
@ghoneycutt
Copy link
Collaborator

Thanks @jeffmccune

Could you add the README portion and then this is good to go.

@jeffmccune jeffmccune force-pushed the 649_se_dashboard_api_config_instances branch 3 times, most recently from e65f4c0 to 027ebf2 Compare July 7, 2017 17:49
This patch implements the `instances` class method of the
sensu_enterprise_dashboard_api_config json provider to enable `puppet
resource` and resource purging using the resources resource.

Maintenance changes include:

 * Add Gemfile.local to enable pry debugging.
 * Defensively access the catalog from the provider initializer.

resolves sensu#649
@jeffmccune jeffmccune force-pushed the 649_se_dashboard_api_config_instances branch from 027ebf2 to 5e1b0c4 Compare July 7, 2017 17:51
@jeffmccune
Copy link
Collaborator Author

@ghoneycutt README updated, review comments have been addressed. Should be ready for merge / release now.

@ghoneycutt ghoneycutt merged commit 8255d5a into sensu:master Jul 7, 2017
@ghoneycutt
Copy link
Collaborator

Released in v2.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement an instances method for the sensu_enterprise_dashboard_api_config json provider
3 participants