1- locals {
2- powervs_workspace_guid = module. standard . powervs_workspace_guid
3- powervs_sshkey_name = module. standard . powervs_ssh_public_key
4- powervs_custom_images = module. standard . powervs_images
5- # powervs_networks = module.standard.powervs_management_subnet.values
6- access_host_or_ip = module. standard . access_host_or_ip
7- proxy_host_or_ip_port = module. standard . proxy_host_or_ip_port
8- dns_host_or_ip = module. standard . dns_host_or_ip
9- ntp_host_or_ip = module. standard . ntp_host_or_ip
10- nfs_host_or_ip_path = module. standard . nfs_host_or_ip_path
11- ansible_host_or_ip = module. standard . ansible_host_or_ip
12- network_services_config = module. standard . network_services_config
13- scc_wp_instance = module. standard . scc_wp_instance
14- }
15-
161locals {
172 powervs_hana_instance = {
183 name = var.powervs_hana_instance_name
@@ -35,8 +20,8 @@ locals {
3520locals {
3621 powervs_instance_init_linux = {
3722 enable = true
38- bastion_host_ip = local .access_host_or_ip
39- ansible_host_or_ip = local .ansible_host_or_ip
23+ bastion_host_ip = module.standard .access_host_or_ip
24+ ansible_host_or_ip = module.standard .ansible_host_or_ip
4025 ssh_private_key = var.ssh_private_key
4126 custom_os_registration = local.use_fls ? null : {
4227 " username" : var.powervs_os_registration_username,
@@ -46,24 +31,24 @@ locals {
4631
4732 powervs_network_services_config = {
4833 squid = {
49- enable = true
50- squid_server_ip_port = local .proxy_host_or_ip_port
34+ enable = false
35+ squid_server_ip_port = module.standard .proxy_host_or_ip_port
5136 no_proxy_hosts = " 161.0.0.0/8,10.0.0.0/8"
5237 }
5338 nfs = {
54- enable = local .nfs_host_or_ip_path != " " ? true : false
55- nfs_server_path = local .nfs_host_or_ip_path
39+ enable = module.standard .nfs_host_or_ip_path != " " ? true : false
40+ nfs_server_path = module.standard .nfs_host_or_ip_path
5641 nfs_client_path = var.nfs_directory
57- opts = local .network_services_config.nfs.opts
58- fstype = local .network_services_config.nfs.fstype
42+ opts = module.standard .network_services_config.nfs.opts
43+ fstype = module.standard .network_services_config.nfs.fstype
5944 }
6045 dns = {
61- enable = local .dns_host_or_ip != " " ? true : false
62- dns_server_ip = local .dns_host_or_ip
46+ enable = module.standard .dns_host_or_ip != " " ? true : false
47+ dns_server_ip = module.standard .dns_host_or_ip
6348 }
6449 ntp = {
65- enable = local .ntp_host_or_ip != " " ? true : false
66- ntp_server_ip = local .ntp_host_or_ip
50+ enable = module.standard .ntp_host_or_ip != " " ? true : false
51+ ntp_server_ip = module.standard .ntp_host_or_ip
6752 }
6853 }
6954}
0 commit comments