File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 5454
55553 . (Optional) Set the ` node['threatstack']['policy'] ` to define which policy will apply to this node (defaults to 'Default Policy')
5656
57- 4 . Add this recipe to your runlist or include in another recipe
57+ 4 . (Optional) Set the ` node['threatstack']['hostname'] ` if you want to register the agent in the UI by a specific name (defaults to hostname)
58+
59+ 5 . Add this recipe to your runlist or include in another recipe
Original file line number Diff line number Diff line change 2222default [ 'threatstack' ] [ 'pkg_action' ] = :install
2323default [ 'threatstack' ] [ 'deploy_key' ] = nil
2424default [ 'threatstack' ] [ 'policy' ] = 'Default Policy'
25+ default [ 'threatstack' ] [ 'hostname' ] = nil
Original file line number Diff line number Diff line change 2929# in the Threat Stack UI
3030
3131cmd = "cloudsight setup --deploy-key=#{ node [ 'threatstack' ] [ 'deploy_key' ] } "
32- cmd += "--policy='#{ node [ 'threatstack' ] [ 'policy' ] } '" if node [ 'threatstack' ] [ 'policy' ]
32+ cmd += "--policy='#{ node [ 'threatstack' ] [ 'policy' ] } ' " if node [ 'threatstack' ] [ 'policy' ]
33+ cmd += "--hostname='#{ node [ 'threatstack' ] [ 'hostname' ] } '" if node [ 'threatstack' ] [ 'hostname' ]
3334
3435execute 'cloudsight setup' do
3536 command cmd
You can’t perform that action at this time.
0 commit comments