Unverified Commit 33ee1058 authored by Duc Ha's avatar Duc Ha Committed by GitHub
Browse files

Merge pull request #164 from Madankapoor/feature/enhanced_file_system

Feature/enhanced file system
parents 8093be89 a46b69d8
......@@ -4,6 +4,8 @@ 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
- Added securefiles boolean flag in installer to enable or disable enhanced file security.
## [1.4.0] - 2018-06-26
### Added
......
......@@ -12,6 +12,7 @@ gem 'test-kitchen'
group :lint do
gem 'foodcritic', '~> 11.2.0'
gem 'gherkin', '~> 5.1'
gem 'rainbow'
gem 'rubocop', '~> 0.48.0'
end
......
......@@ -185,6 +185,7 @@ for more information about these attributes.
| `source` | `String` | URL to download collector installer from | none (uses the latest installer from SumoLogic) | `false` | `:install`, `:install_and_configure` |
| `collector_name` | `String` | Name of this Collector | `nil` | `false` | `:install_and_configure`, `:configure` |
| `collector_url` | `String` | URL used to register Collector for data collection API | `nil` | `false` | `:install_and_configure`, `:configure` |
| `collector_secure_files` | `Boolean` | Enable or disable enhanced file security | `nil` | `false` | `:install_and_configure`, `:install` |
| `host_name` | `String` | Hostname of this collector + default hostname of sources on it | `nil` | `false` | `:install_and_configure`, `:configure` |
| `description` | `String` | Description of this collector | `nil` | `false` | `:install_and_configure`, `:configure` |
| `category` | `String` | Default category for sources on this collector | `nil` | `false` | `:install_and_configure`, `:configure` |
......
......@@ -180,6 +180,7 @@ def installer_opts # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexit
args << "-dir #{new_resource.dir}"
args << "-Vcollector.name=#{new_resource.collector_name}" unless new_resource.collector_name.nil?
args << "-Vcollector.url=#{new_resource.collector_url}" unless new_resource.collector_url.nil?
args << "-Vcollector.secureFiles=#{new_resource.collector_secure_files}" unless new_resource.collector_secure_files.nil?
args << "-Vsumo.token_and_url=#{new_resource.sumo_token_and_url}" unless new_resource.sumo_token_and_url.nil?
args << "-Vsumo.accessid=#{new_resource.sumo_access_id}" unless new_resource.sumo_access_id.nil?
args << "-Vsumo.accesskey=#{new_resource.sumo_access_key}" unless new_resource.sumo_access_key.nil?
......
......@@ -17,6 +17,7 @@ attribute :skip_registration, kind_of: [TrueClass, FalseClass], default: false
# Configuration attributes
attribute :collector_name, kind_of: String, default: nil
attribute :collector_url, kind_of: String, default: nil
attribute :collector_secure_files, kind_of: [TrueClass, FalseClass], default: nil
attribute :host_name, kind_of: String, default: nil
attribute :description, kind_of: String, default: nil
attribute :category, kind_of: String, default: nil
......
Markdown is supported
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