<commit_before># Copyright (c) 2015 Intel Corporation
#
# 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.
#

provider "openstack" {
  auth_url = "${var.auth_url}"
  tenant_name = "${var.tenant_name}"
  user_name = "${var.username}"
  password = "${<PASSWORD>}"
}

module "cf-install" {
  source = "./cf-install"
  network = "${var.network}"
  auth_url = "${var.auth_url}"
  tenant_name = "${var.tenant_name}"
  tenant_id = "${var.tenant_id}"
  username = "${var.username}"
  password = "${<PASSWORD>}"
  public_key_path = "${var.jumpbox_public_key_path}"
  key_path = "${var.jumpbox_key_path}"
  floating_ip_pool = "${var.floating_ip_pool}"
  region = "${var.region}"
  network_external_id = "${var.network_external_id}"
  cf_admin_pass = "${var.cf_admin_pass}"
  cf_client_pass = "${var.cf_client_pass}"
  image_name="${var.ubuntu_image_name}"
  install_docker_services="${var.install_docker_services}"
  install_logsearch="${var.install_logsearch}"
  http_proxy="${var.http_proxy}"
  https_proxy="${var.https_proxy}"
  deployment_size="${var.deployment_size}"
  cf_release_version="${var.cf_release_version}"
  cf_boshworkspace_version = "${var.cf_boshworkspace_version}"
  debug = "${var.debug}"
  private_cf_domains="${var.private_cf_domains}"
  backbone_resource_pool        = "${var.backbone_resource_pool}"
  data_resource_pool            = "${var.data_resource_pool}"
  public_haproxy_resource_pool  = "${var.public_haproxy_resource_pool}"
  private_haproxy_resource_pool = "${var.private_haproxy_resource_pool}"
  api_resource_pool             = "${var.api_resource_pool}"
  services_resource_pool        = "${var.services_resource_pool}"
  health_resource_pool          = "${var.health_resource_pool}"
  runner_resource_pool          = "${var.runner_resource_pool}"
  install_logsearch             = "${var.install_logsearch}"
  dns1                          = "${var.dns1}"
  dns2                          = "${var.dns2}"
  docker_boshworkspace_version  = "${var.docker_boshworkspace_version}"
  os_timeout                    = "${var.os_timeout}"
  additional_cf_sg_allow_1="${module.cloudera.cdh_cidr}"
  offline_java_buildpack = "${var.offline_java_buildpack}"
  ntp_servers = "${var.ntp_servers}"
}

module "cloudera" {
  source = "./cdh"
  network = "${var.network}"
  network = "${var.network}"
  auth_url = "${var.auth_url}"
  tenant_name = "${var.tenant_name}"
  tenant_id = "${var.tenant_id}"
  username = "${var.username}"
  password = "${<PASSWORD>}"
  floating_ip_pool = "${var.floating_ip_pool}"
  region = "${var.region}"
  jumpbox_public_key_path = "${var.jumpbox_public_key_path}"
  jumpbox_key_path = "${var.jumpbox_key_path}"
  cdh_public_key_path = "${var.cdh_public_key_path}"
  cdh_key_path = "${var.cdh_key_path}"
  ansible_repo_path = "${var.ansible_repo_path}"
  worker_size="${var.worker_size}"
  master_size="${var.master_size}"
  cf_sg_id="${module.cf-install.cf_sg_id}"
  router_id="${module.cf-install.router_id}"
  image_name="${var.centos_image_name}"
  http_proxy="${var.http_proxy}"
  https_proxy="${var.https_proxy}"
  dns1="${var.dns1}"
  dns2="${var.dns2}"
}


output "cf_api" {
  value = "${module.cf-install.cf_api}"
}

output "bastion_ip" {
  value = "${module.cf-install.bastion_ip}"
}

output "username" {
  value = "${module.cf-install.username}"
}
output "password" {
  value = "${module.cf-install.password}"
}
output "tenant_name" {
  value = "${module.cf-install.tenant_name}"
}
output "auth_url" {
  value = "${module.cf-install.auth_url}"
}
output "region" {
  value = "${module.cf-install.region}"
}
output "internal_network_id" {<commit_msg>Pass NTP addresses to Cloudera module<commit_after># Copyright (c) 2015 Intel Corporation
#
# 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.
#

provider "openstack" {
  auth_url = "${var.auth_url}"
  tenant_name = "${var.tenant_name}"
  user_name = "${var.username}"
  password = "${<PASSWORD>}"
}

module "cf-install" {
  source = "./cf-install"
  network = "${var.network}"
  auth_url = "${var.auth_url}"
  tenant_name = "${var.tenant_name}"
  tenant_id = "${var.tenant_id}"
  username = "${var.username}"
  password = "${<PASSWORD>}"
  public_key_path = "${var.jumpbox_public_key_path}"
  key_path = "${var.jumpbox_key_path}"
  floating_ip_pool = "${var.floating_ip_pool}"
  region = "${var.region}"
  network_external_id = "${var.network_external_id}"
  cf_admin_pass = "${var.<PASSWORD>admin_<PASSWORD>}"
  cf_client_pass = "${var.cf_client_pass}"
  image_name="${var.ubuntu_image_name}"
  install_docker_services="${var.install_docker_services}"
  install_logsearch="${var.install_logsearch}"
  http_proxy="${var.http_proxy}"
  https_proxy="${var.https_proxy}"
  deployment_size="${var.deployment_size}"
  cf_release_version="${var.cf_release_version}"
  cf_boshworkspace_version = "${var.cf_boshworkspace_version}"
  debug = "${var.debug}"
  private_cf_domains="${var.private_cf_domains}"
  backbone_resource_pool        = "${var.backbone_resource_pool}"
  data_resource_pool            = "${var.data_resource_pool}"
  public_haproxy_resource_pool  = "${var.public_haproxy_resource_pool}"
  private_haproxy_resource_pool = "${var.private_haproxy_resource_pool}"
  api_resource_pool             = "${var.api_resource_pool}"
  services_resource_pool        = "${var.services_resource_pool}"
  health_resource_pool          = "${var.health_resource_pool}"
  runner_resource_pool          = "${var.runner_resource_pool}"
  install_logsearch             = "${var.install_logsearch}"
  dns1                          = "${var.dns1}"
  dns2                          = "${var.dns2}"
  docker_boshworkspace_version  = "${var.docker_boshworkspace_version}"
  os_timeout                    = "${var.os_timeout}"
  additional_cf_sg_allow_1="${module.cloudera.cdh_cidr}"
  offline_java_buildpack = "${var.offline_java_buildpack}"
  ntp_servers = "${var.ntp_servers}"
}

module "cloudera" {
  source = "./cdh"
  network = "${var.network}"
  network = "${var.network}"
  auth_url = "${var.auth_url}"
  tenant_name = "${var.tenant_name}"
  tenant_id = "${var.tenant_id}"
  username = "${var.username}"
  password = "${<PASSWORD>}"
  floating_ip_pool = "${var.floating_ip_pool}"
  region = "${var.region}"
  jumpbox_public_key_path = "${var.jumpbox_public_key_path}"
  jumpbox_key_path = "${var.jumpbox_key_path}"
  cdh_public_key_path = "${var.cdh_public_key_path}"
  cdh_key_path = "${var.cdh_key_path}"
  ansible_repo_path = "${var.ansible_repo_path}"
  worker_size="${var.worker_size}"
  master_size="${var.master_size}"
  cf_sg_id="${module.cf-install.cf_sg_id}"
  router_id="${module.cf-install.router_id}"
  image_name="${var.centos_image_name}"
  http_proxy="${var.http_proxy}"
  https_proxy="${var.https_proxy}"
  dns1="${var.dns1}"
  dns2="${var.dns2}"
  ntp_servers = "${var.ntp_servers}"
}


output "cf_api" {
  value = "${module.cf-install.cf_api}"
}

output "bastion_ip" {
  value = "${module.cf-install.bastion_ip}"
}

output "username" {
  value = "${module.cf-install.username}"
}
output "password" {
  value = "${module.cf-install.password}"
}
output "tenant_name" {
  value = "${module.cf-install.tenant_name}"
}
output "auth_url" {
  value = "${module.cf-install.auth_url}"
}
output "region" {
  value = "${module.cf-install.region}"
}
output "internal_network_id" {
{'fraction_non_alphanumeric': 0.15404162633107454, 'fraction_numerical': 0.004114230396902226, 'mean_word_length': 4.592016238159675, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5943750', 'n_tokens_mistral': 2849, 'n_tokens_neox': 2844, 'n_words': 483}