#
# Cookbook:: chef-server
# Attributes:: default
#
# Copyright:: 2012-2019, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
default['chef-server']['version'] = nil
default['chef-server']['package_source'] = nil
default['chef-server']['options'] = nil

# The Chef Server must have an API FQDN set.
# Ref. http://docs.chef.io/install_server_pre.html#hostnames
default['chef-server']['api_fqdn'] = node['fqdn']

default['chef-server']['topology'] = 'standalone'
default['chef-server']['addons'] = []
# For a complete list of product names for use in the addons attribute see https://github.com/chef/mixlib-install/blob/master/PRODUCT_MATRIX.md
#
# Example of installing specific version of Chef Manage:
#   default['chef-server']['addons'] = {'manage' => '2.5.16'}
#
# Example of installing specific version of Chef Push Jobs Server:
#   default['chef-server']['addons'] = {'push-jobs-server' => '2.2.8'}

# Chef Licensing requirements
# https://docs.chef.io/install_server.html
# Chef Ingredient parameter
# https://github.com/chef-cookbooks/chef-ingredient/pull/101

default['chef-server']['accept_license'] = false

#
# Chef Server Tunables
#
# For a complete list see:
# https://docs.chef.io/config_rb_server_optional_settings.html
#
# Example:
#
# In a recipe:
#
#     node.override['chef-server']['configuration'] = <<~EOS
#       nginx['ssl_port'] = 4433
#     EOS
#
# In a role:
#
#     default_attributes(
#       'chef-server' => {
#         'configuration' => <<~EOS
#           nginx['ssl_port'] = 4433
#         EOS
#       }
#     )
#
default['chef-server']['configuration'] = ''
