Skip to content

Commit

Permalink
Change threatstack_ruleset type from string to array of strings to su…
Browse files Browse the repository at this point in the history
…pport multiple rulesets
  • Loading branch information
John Baublitz committed Aug 9, 2018
1 parent e2de58a commit a649898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ threatstack_pkg_state: installed
# to set a version of the agent use threatstack-agent=X.Y.Z
threatstack_pkg: threatstack-agent
#threatstack_hostname:
#threatstack_ruleset:
threatstack_ruleset:
- 'Base Rule Set'
threatstack_config_dir: '/etc/threatstack'
threatstack_config: "{{ threatstack_config_dir }}/tsconfig.json"
threatstack_configure_agent: true
Expand Down
4 changes: 2 additions & 2 deletions templates/config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{% if threatstack_hostname is defined %}
"hostname": "{{ threatstack_hostname }}",
{% endif %}
{% if threatstack_ruleset is defined %}
"ruleset": "{{ threatstack_ruleset }}",
{% if threatstack_ruleset.len() > 0 %}
"ruleset": "{{ threatstack_ruleset.join(",") }}"
{% endif %}
"deploy-key": "{{ threatstack_deploy_key | mandatory }}"
}

0 comments on commit a649898

Please sign in to comment.