A formula for installing Threat Stack agent
This formula supports installing agent 1.x and agent 2.x
The following states are available:
threatstack: Installs the Threatstack agent.
pkg_url:[optional] Path to an alternate repository site. Set if you manage your own package repository.deploy_key:[required] Your organization's deploy key.- ex. "xxxx-xxxx-your-secret-key-xxxx"
ts_configure_agent:[optional] If the agent should be configured during run. Set to False if installing agent into an AMI.- ex. True
ts_agent_version:[optional] Version of agent to install. By default if this setting is omitted, the latest version will be installed. Set a version to maintain consistency in an environment.- ex. "1.4.5.0ubuntu14.0"
ts_agent_config_args:[optional] Optional arguments to be passed tocloudsight configortsagent config(depends on version of agent). Use this to enable optional features.- agent 1.x ex. "--enable_foo=1"
- agent 2.x ex. "--set enable_foo 1"
ts_agent_extra_args:[optional] Optional arguments to be passed tocloudsight setuportsagent setup(depends on version of agent).- Please refer to the agent documentation or check the appropriate help output for
cloudsight setup/tsagent setup.
- Please refer to the agent documentation or check the appropriate help output for
ts_agent_1x_platforms:[required] This list defines the linux distributions (and versions) that should use the 1.x agent. This should only be changed if you have reviewed this salt formula, and understand the ramifications.
There is currently no spec testing as a saltstack rspec module does not exist.
Integration testing can be configured two different ways.
This method requires the following:
- Uncommenting the section for
threatstack.slsin.kitchen.yml - Commenting out the
pillars_from_filessection in.kitchen.yml - Setting
TS_DEPLOY_KEYin the environment to a valid key value for tests to succeed.
export TS_DEPLOY_KEY='<deploy_key>'
bundle exec kitchen test
For setting additional configuration changes in the environment, see .kitchen.yml for all available pillar items
This method requires the following:
- Uncommenting the
pillars_from_filessection in.kitchen.yml - Commenting out the section for
threatstack.slsin.kitchen.ymlThis method requires updatingdeploy_keypillar item inpillar.exampleto a valid key value for tests to succeed.
<Edit `pillar.example`>
bundle exec kitchen test