<commit_before>################################################
#
#              Generated by Chef
#
################################################

[DEFAULT]

# If using qpid...
#rpc_backend=nova.openstack.common.rpc.impl_qpid
#qpid_hostname=<%=node['bcpc']['management']['vip']%>
#qpid_username=admin
#qpid_password=<%=get_config('rabbitmq-password')%>

# memcached settings
memcached_servers=<%=@servers.map{|x| x['bcpc']['management']['ip'] + ":11211"}.join(",")%>

# Nova API settings
auth_strategy=keystone
api_paste_config=/etc/nova/api-paste.ini
s3_host=<%=node['bcpc']['management']['vip']%>
osapi_compute_listen=<%= node['bcpc']['management']['ip'] %>
osapi_compute_workers=<%=node['bcpc']['nova']['workers']%>
metadata_listen=169.254.169.254
metadata_host=169.254.169.254
metadata_workers=<%=node['bcpc']['nova']['workers']%>
dmz_cidr=169.254.169.254/32
<% if @servers.include?(node) -%>
enabled_apis=ec2,osapi_compute,metadata
<% else -%>
enabled_apis=metadata
<% end %>
<% if not node["bcpc"]["vendordata_driver"].nil? %>
vendordata_driver = <%=node["bcpc"]["vendordata_driver"] %>
<% end %>

# EC2 compatibility API settings
ec2_listen = <%= node['bcpc']['management']['ip'] %>
ec2_host = <%= node['bcpc']['management']['vip'] %>
ec2_workers = <%= node['bcpc']['nova']['workers'] %>
ec2_private_dns_show_ip = True
keystone_ec2_url = <%=node['bcpc']['protocol']['keystone']%>://openstack.<%=node['bcpc']['cluster_domain']%>:5000/v2.0/ec2tokens

<% if node['bcpc']['nova']['notifications']['enabled'] %>
# Nova notification settings
notification_topics=<%= node['bcpc']['nova']['notifications']['notification_topics'] %>
notification_driver=<%= node['bcpc']['nova']['notifications']['notification_driver'] %>
notify_on_state_change=<%= node['bcpc']['nova']['notifications']['notify_on_state_change'] %>
<% end %>

# Nova Scheduler
scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
scheduler_default_filters=<%=node['bcpc']['nova']['scheduler_default_filters'].join(',')%>
ram_allocation_ratio=<%=node['bcpc']['nova']['ram_allocation_ratio']%>
reserved_host_memory_mb=<%=node['bcpc']['nova']['reserved_host_memory_mb']%>
cpu_allocation_ratio=<%=node['bcpc']['nova']['cpu_allocation_ratio']%>
scheduler_host_subset_size=<%= node['bcpc']['nova']['scheduler_host_subset_size'] %>
max_concurrent_builds=<%= node['bcpc']['nova']['max_concurrent_builds'] %><commit_msg>Parameterize the remainder of the Keystone EC2 URL<commit_after>################################################
#
#              Generated by Chef
#
################################################

[DEFAULT]

# If using qpid...
#rpc_backend=nova.openstack.common.rpc.impl_qpid
#qpid_hostname=<%=node['bcpc']['management']['vip']%>
#qpid_username=admin
#qpid_password=<%=get_config('rabbitmq-password')%>

# memcached settings
memcached_servers=<%=@servers.map{|x| x['bcpc']['management']['ip'] + ":11211"}.join(",")%>

# Nova API settings
auth_strategy=keystone
api_paste_config=/etc/nova/api-paste.ini
s3_host=<%=node['bcpc']['management']['vip']%>
osapi_compute_listen=<%= node['bcpc']['management']['ip'] %>
osapi_compute_workers=<%=node['bcpc']['nova']['workers']%>
metadata_listen=169.254.169.254
metadata_host=169.254.169.254
metadata_workers=<%=node['bcpc']['nova']['workers']%>
dmz_cidr=169.254.169.254/32
<% if @servers.include?(node) -%>
enabled_apis=ec2,osapi_compute,metadata
<% else -%>
enabled_apis=metadata
<% end %>
<% if not node["bcpc"]["vendordata_driver"].nil? %>
vendordata_driver = <%=node["bcpc"]["vendordata_driver"] %>
<% end %>

# EC2 compatibility API settings
ec2_listen = <%= node['bcpc']['management']['ip'] %>
ec2_host = <%= node['bcpc']['management']['vip'] %>
ec2_workers = <%= node['bcpc']['nova']['workers'] %>
ec2_private_dns_show_ip = True
keystone_ec2_url = <%=node['bcpc']['protocol']['keystone']%>://openstack.<%=node['bcpc']['cluster_domain']%>:<%= node['bcpc']['catalog']['identity']['ports']['public'] %>/<%= node['bcpc']['catalog']['identity']['uris']['public'] %>/ec2tokens

<% if node['bcpc']['nova']['notifications']['enabled'] %>
# Nova notification settings
notification_topics=<%= node['bcpc']['nova']['notifications']['notification_topics'] %>
notification_driver=<%= node['bcpc']['nova']['notifications']['notification_driver'] %>
notify_on_state_change=<%= node['bcpc']['nova']['notifications']['notify_on_state_change'] %>
<% end %>

# Nova Scheduler
scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
scheduler_default_filters=<%=node['bcpc']['nova']['scheduler_default_filters'].join(',')%>
ram_allocation_ratio=<%=node['bcpc']['nova']['ram_allocation_ratio']%>
reserved_host_memory_mb=<%=node['bcpc']['nova']['reserved_host_memory_mb']%>
cpu_allocation_ratio=<%=node['bcpc']['nova']['cpu_allocation_ratio']%>
scheduler_host_subset_size=<%= node['bcpc']['nova']['scheduler_host_subset_size'] %>
max_concurrent_builds=<%= node['bcpc']['nova']['max_concurrent_builds'] %>
{'fraction_non_alphanumeric': 0.26743714517437145, 'fraction_numerical': 0.022506082725060828, 'mean_word_length': 12.225201072386058, 'pattern_counts': {'":': 2, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '6711305', 'n_tokens_mistral': 1848, 'n_tokens_neox': 1680, 'n_words': 168}