Data Collection with a Chef High Availability Cluster

[edit on GitHub]

Important

Previous step: Setup Data Collection

To configure front-end servers in your HA cluster to send their object data, first configure a Chef server for data collection and ensure that the fqdn field in all of your front-end Chef server /etc/opscode/chef-server.rb files are the same.

The following example sets the fqdn field to "my-chef-server.mycompany.com" in two front-end servers.

chef-server.rb.FE1

# This file generated by chef-backend-ctl gen-server-config
# Modify with extreme caution.
fqdn "my-chef-server.mycompany.com"
use_chef_backend true
data_collector['root_url'] = 'https://my-automate-server.mycompany.com/data-collector/v0/'
data_collector['token'] = 'TOKEN'

chef-server.rb.FE2

# This file generated by chef-backend-ctl gen-server-config
# Modify with extreme caution.
fqdn "my-chef-server.mycompany.com"
use_chef_backend true
data_collector['root_url'] = 'https://my-automate-server.mycompany.com/data-collector/v0/'
data_collector['token'] = 'TOKEN'

Warning

Failure to set the fqdn field to the same value will result in Chef Automate treating data from each of these front-end servers as separate Chef servers.