ibm-cloud-architecture / terraform-icp-vmware

Terraform recipe to deploy IBM Cloud Private on VMware
10 stars 15 forks source link

Possible to select install type CE - EE ? #33

Open ethilesen opened 5 years ago

ethilesen commented 5 years ago

Hi,

I used this to install 3.1 CE. I ended up (with some help from Hans M) to comment out all vip+proxy+docker stuff from ice-deploy.tf. I think it will be better to have a install type selector so only CE needed components are included...

jesusmah commented 5 years ago

@hassenius do you remember what needs to be commented out to get ICP CE deployed rather than ICP EE? would you @ethilesen be able to help remembering? Thks

ethilesen commented 5 years ago

icp_configuration = { "network_cidr" = "${var.network_cidr}" "service_cluster_ip_range" = "${var.service_network_cidr}"

"cluster_access_ip" = "${var.cluster_vip}"

 # "proxy_access_ip"                 = "${var.proxy_vip}"
  # "cluster_vip"                     = "${var.cluster_vip}"
  # "proxy_vip"                       = "${var.proxy_vip}"
  # "vip_iface"                       = "${var.cluster_vip_iface}"
  # "proxy_vip_iface"                 = "${var.proxy_vip_iface}"
  # "cluster_lb_address"              = "${var.cluster_lb_address}"
  # "proxy_lb_address"                = "${var.proxy_lb_address}"
  #"vip_manager"                     = "etcd"
  "cluster_name"                    = "${var.instance_name}-cluster"
  "calico_ip_autodetection_method"  = "first-found"
  "default_admin_password"          = "${var.icppassword}"
  # This is the list of disabled management services
  "management_services"             = "${local.disabled_management_services}"
  # "private_registry_enabled"        = "${length(var.private_registry) > 1 ? "true" : "false"}"
  # "private_registry_server"         = "${var.private_registry}"
  # "image_repo"                      = "${length(var.private_registry) > 1 ? "${dirname(local.image)}" : ""}"
  # "docker_username"                 = "${length(var.registry_username) > 1 ? "${var.registry_username}" : "'null'"}"
  # "docker_password"                 = "${length(var.registry_password) > 1 ? "${var.registry_password}" : "'null'"}"
}
ethilesen commented 5 years ago

That was what I used - if it's correct or not... it did create this config.yaml config.yaml

ansible_become: true ansible_user: icpadmin calico_ip_autodetection_method: first-found cluster_name: icp-ffi-cluster default_admin_password: xxxxxxxx default_admin_user: admin etcd_extra_args: