Unverified Commit 33613dc3 authored by Ben Abrams's avatar Ben Abrams Committed by GitHub
Browse files

feat: allow the ability to cleanup previously configured local sources (#191)



* allow the ability to cleanup previously configured local sources

In some cases even if temporarily one may want to remove a source from being ingested into sumologic. In other cases it's cleaning up dead code for something that no longer generates logs in the environment.
Signed-off-by: default avatarBen Abrams <me@benabrams.it>

* adding changelog
Signed-off-by: default avatarBen Abrams <me@benabrams.it>
parent 5ac91fa5
......@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG (now) follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased]
### Added
- new `action` of `:remove` to cleanup sumo collectors [#191]
## [1.7.0] - 2022-05-11
### Added
- feat: add JSON support to windows sources [#193]
......
......@@ -338,6 +338,7 @@ sumo_source_local_file
`default` = `:create`
- `:create` - creates a JSON Source configuration
- `:remove` - removes a previously configured JSON source configuration
### Attribute Parameters
......
......@@ -35,6 +35,12 @@ class Chef
end
end
action :remove do
file source_json_path do
action :delete
end
end
def api_version
'v1'
end
......
......@@ -10,7 +10,7 @@ class Chef
default_action :create
actions :create
actions :create, :remove
attribute :owner, regex: Chef::Config[:user_valid_regex]
attribute :group, regex: Chef::Config[:group_valid_regex]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment