Starting from 19.107, there are 2 major extensions to SumoLogic collectors:
* You can configure a collector's parameters from a set of json files under a common folder. Each of the json file will represent a source on that collector. Updates made to a json file will then be reflected on its corresponding source. Note that the format of this kind of file is **slightly different** from that of the traditional single json file (sumo.json) and they are **not** compatible. You also need to use the parameter `syncSources` instead of `sources` inside `sumo.conf`. See more details [here](https://service.sumologic.com/help/Default.htm#Using_sumo.conf.htm).
* You can change a collector's existing parameters through local configuration json file(s) continuously. Before this, using collector API was the only option. More information about this is [here](https://service.sumologic.com/help/Default.htm#Using_Local_Configuration_File_Management.htm)
Installation
------------
1. Create an [Access Key](http://help.sumologic.com/i19.69v2/Default.htm#Generating_Collector_Installation_API_Keys.htm)
2. Install the cookbook in your Chef repo (your knife version should be at least 11.10.4 and you should have the [knife github plugin](https://github.com/websterclay/knife-github-cookbooks) installed):
3. Specify data bag and item with your access credentials. The data item should
contain attributes `accessID` and `accessKey`. Note that attribute names are case sensitive. If the cases mismatch, the values will not appear when chef-client runs. The default data bag/item is
`['sumo-creds']['api-creds']`
4. (Optional) Decide if you want to use the Local Configuration Management feature by setting the attribute `default['sumologic']['local_management']` properly. By default this feature is on, to leverage the power of Chef.
4. (Optional) Decide if you want to use the Local Configuration Management feature by setting the attribute `default['sumologic']['local_management']` properly. By default this feature is on, to leverage the power of Chef.
5. (Optional) Select the json configuration option (i.e. through a single file or a folder) by setting the attribute `default['sumologic']['use_json_path_dir']` appropriately. By default a single json file is used.
6. (Optional) Check if the path to the json file or the json folder is set correctly in the attribute `default['sumologic']['sumo_json_path']`. By default this is the path to the json file at `/etc/sumo.json` on Linux or `c:\sumo\sumo.json` on Windows.
6. (Optional) Check if the path to the json file or the json folder is set correctly in the attribute `default['sumologic']['sumo_json_path']`. By default this is the path to the json file at `/etc/sumo.json` on Linux or `c:\sumo\sumo.json` on Windows.
7. Upload the cookbook to your Chef Server:
```knife cookbook upload sumologic-collector```
```
knife cookbook upload sumologic-collector
```
8. Add the `sumologic-collector` receipe to your node run lists. This step depends
on your node configuration, so specifics will not be described in this README.md.
...
...
@@ -78,6 +82,319 @@ Attributes
</tr>
</table>
Resource/Provider
-----------------
sumologic_collector_installer
---------
Allows for additional customisation of the Sumo Logic Collector installer
### Actions
`default` = `:install`
-`:install` - installs the Sumo Logic Collector if it is not already installed
### Attribute Parameters
See the [Sumo Logic documentation](https://service.sumologic.com/help/Default.htm#Using_Quiet_Mode_to_Install_a_Collector.htm)
for more information about these attributes.
-`dir` - Directory where the Collector will be installed
-`source` - URL where installer will be downloaded from
-`collector_name`
-`collector_url`
-`sumo_email`
-`sumo_password`
-`sumo_token_and_url`
-`sumo_access_id`
-`sumo_access_key`
-`proxy_host`
-`proxy_port`
-`proxy_user`
-`proxy_password`
-`proxy_ntlmdomain`
-`sources`
-`sync_sources`
-`ephemeral`
-`clobber`
-`runas_username`
-`winrunas_password`
-`skip_registration`
### Examples
```ruby
# Installs the Collector on Windows and skips registration