chef / chef-web-docs

All The Documentation
https://docs.chef.io
Other
132 stars 436 forks source link

Document using Data Collector as scheduled/ongoing task. #2442

Open kagarmoe opened 4 years ago

kagarmoe commented 4 years ago

The data collector tutorial changed to use chef-run and ~/.chef-workstation/config.toml on the local workstation.

Document to use:

[data_collector]
url="https://54.89.218.145/data-collector/v0/"
token="g7iyI5wfaGx0W1xgM3RwWGaB6BY="

on the target node….but for chef-run we put that in

SteveDelFante commented 4 years ago

I was reworking the Audit Cookbook module in the Automate Compliance course and I decided to use chef-run instead of setting up chef server etc…chef-run require this - [data_collector] url="https://54.89.218.145/data-collector/v0/" token="g7iyI5wfaGx0W1xgM3RwWGaB6BY=" to be set on the workstation at ~/.chef-workstation/config.toml but…when we run audit cookbook as a scheduled task, it seems that info must go into /etc/chef/client.rb on the audit cookbook node….

So I might be trying to teach the wrong pattern.