<commit_before>topology "tier"

server "${back_end_node_fqdn}",
  :ipaddress => "${back_end_ip}/${cidr}",
  :role => "backend",
  :bootstrap => true

backend_vip "${back_end_node_fqdn}",
  :ipaddress => "${back_end_ip}/${cidr}"

server "${front_end_node_fqdn}",
  :ipaddress => "${front_end_ip}/${cidr}",
  :role => "frontend"

api_fqdn "${front_end_node_fqdn}"

# The public IPV6 address is not bound to the network interface of the machine.
# rhel-7 and rhel-8 are able to resolve this but the older rhel-6 is not.
# Using the ipv6 localhost instead of the public IP to fix this.
require 'ipaddr'
if IPAddr.new("${front_end_ip}/${cidr}").ipv6?
  profiles['root_url'] = 'http://[::1]:9998'
else
  profiles['root_url'] = 'http://${front_end_node_fqdn}:9998'
end

opscode_erchef['keygen_start_size'] = 30

opscode_erchef['keygen_cache_size'] = 60

nginx['ssl_dhparam'] = '/etc/opscode/dhparam.pem'

insecure_addon_compat = false<commit_msg>[terraform] Point directly at localhost<commit_after>topology "tier"

server "${back_end_node_fqdn}",
  :ipaddress => "${back_end_ip}/${cidr}",
  :role => "backend",
  :bootstrap => true

backend_vip "${back_end_node_fqdn}",
  :ipaddress => "${back_end_ip}/${cidr}"

server "${front_end_node_fqdn}",
  :ipaddress => "${front_end_ip}/${cidr}",
  :role => "frontend"

api_fqdn "${front_end_node_fqdn}"

# The public IPV6 address is not bound to the network interface of the machine.
# rhel-7 and rhel-8 are able to resolve this but the older rhel-6 is not.
# Using the ipv6 localhost instead of the public IP to fix this.
require 'ipaddr'
if IPAddr.new("${front_end_ip}/${cidr}").ipv6?
  profiles['root_url'] = 'http://[::1]:9998'
else
  profiles['root_url'] = 'http://localhost:9998'
end

opscode_erchef['keygen_start_size'] = 30

opscode_erchef['keygen_cache_size'] = 60

nginx['ssl_dhparam'] = '/etc/opscode/dhparam.pem'

insecure_addon_compat = false
{'fraction_non_alphanumeric': 0.1644632469592808, 'fraction_numerical': 0.02009518773135907, 'mean_word_length': 5.6855123674911665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4336268', 'n_tokens_mistral': 746, 'n_tokens_neox': 738, 'n_words': 163}