# Splunk host generation script

## Overview

This is a small script that does the following:
* Pulls down Splunk host CSV from S3
* Uses knife to append host information into this CSV
* Upload the CSV back into S3 as a new object version

## Getting Started

### Requirements

* Ruby
* Bundler
* Knife and Chef server configuration

### Installation

```
# Use AWS prod credentials (AWS configs defined in config.yml)
export AWS_PROFILE=prod

# Make sure bundler is installed
gem install bundler # or chef gem install bundler, depending on your configuration

# Install aws-sdk
bundle install

# Run the script, making sure you are knife block using the correct Chef server for your node
knife exec ./generate_splunk_spreadsheet.rb ${node_name}
```
