Skip to content

Instantly share code, notes, and snippets.

@anthonygrees
Last active June 28, 2018 23:51
Show Gist options
  • Save anthonygrees/9ac779e158ab220b51d0e93e86787836 to your computer and use it in GitHub Desktop.
Save anthonygrees/9ac779e158ab220b51d0e93e86787836 to your computer and use it in GitHub Desktop.

A1 -> A2 - Configure Data Collection

Description

If you’d like to install Automate 2.0 alongside an Automate 1.x deployment, you can relay the data from Automate 1.x using a logstash forwarding filter. Be sure to set

  • the automate_url to point at the Automate 2 instance
  • the automate_token must be set to an api token created in Automate 2.

Step 1 - Create A2 Token

To create your token, login to Automate 2.0 and click Admin, API Keys, Generate API Key.

Step 2 - Set up filter

Download the A2 filter here - https://gist.github.com/itmustbejj/0ae90817d918a55d1ad6bc769332150f

After downloading the filter, replace with your generated token and A2 hostname, and copy to: /opt/delivery/embedded/etc/logstash/conf.d/05-a2-forwarder.conf

and then run:

$ sudo automate-ctl restart logstash

Step 3 - Configure the Data Collector

To send data from your Chef Server or Chef Clients to Automate 2.0, the process is the same as Automate 1.x. See the documentation on how to Configure Data Collection for more info.

Configure Data Collection - https://docs.chef.io/data_collection.html#step-2-configure-your-chef-server-to-point-to-chef-automate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment