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

Merge pull request #167 from rickjuryxero/fields-support

Fields support
parents 33ee1058 75b67daa
......@@ -6,6 +6,7 @@ This CHANGELOG (now) follows the format listed at [Keep A Changelog](http://keep
## [Unreleased]
### Added
- Added securefiles boolean flag in installer to enable or disable enhanced file security.
- added fields support to user.properties
## [1.4.0] - 2018-06-26
### Added
......
......@@ -211,6 +211,7 @@ for more information about these attributes.
| `runas_username` | `String` | Which user the daemon will run as | `nil` | `false` | `:install_and_configure`, `:install` |
| `winrunas_password` | `String` | On Windows, the password for the user the service will run as | `nil` | `false` | `:install_and_configure`, `:install` |
| `skip_registration` | `Boolean` | When `true` the collector will not register upon installation | `false` | `nil` | `:install_and_configure` |
| `fields` | `Hash` | Sets the fields property in user.properties used by ingest budgets and other future features | `nil` | `false` | `:install_and_configure`, `:configure` |
sumologic_collector_installer
---------
......
......@@ -42,6 +42,7 @@ attribute :time_zone, kind_of: String, default: nil
attribute :target_cpu, kind_of: Integer, default: nil
attribute :wrapper_java_initmemory, kind_of: Integer, default: nil
attribute :wrapper_java_maxmemory, kind_of: Integer, default: nil
attribute :fields, kind_of: Hash, default: nil
# Misc
attribute :installed, kind_of: [TrueClass, FalseClass], default: false
......
......@@ -36,3 +36,4 @@ name=<%= @resource.collector_name %>
<%= "targetCPU=#{@resource.target_cpu}" unless @resource.target_cpu.nil? %>
<%= "wrapper.java.initmemory=#{@resource.wrapper_java_initmemory}" unless @resource.wrapper_java_initmemory.nil? %>
<%= "wrapper.java.maxmemory=#{@resource.wrapper_java_maxmemory}" unless @resource.wrapper_java_maxmemory.nil? %>
<%= "fields=#{@resource.fields.map { |key, val| "#{key}=#{val}"}.join(",")}" unless @resource.fields.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