NFS share for the itineris pgadmin.
This commit is contained in:
parent
a3066e0e53
commit
5b2b419cb0
|
@ -4,7 +4,7 @@ resource "openstack_sharedfilesystem_share_v2" "webodv_private_data" {
|
|||
name = "sobigdata_webodv_private_data"
|
||||
description = "NFS share for the sobigdata webodv private data"
|
||||
share_proto = "NFS"
|
||||
size = 1000
|
||||
size = 10
|
||||
}
|
||||
|
||||
# Allow access to the NFS share
|
||||
|
@ -24,33 +24,9 @@ resource "openstack_sharedfilesystem_share_access_v2" "webodv_workers_private_da
|
|||
access_level = "rw"
|
||||
}
|
||||
|
||||
resource "openstack_sharedfilesystem_share_v2" "webodv_home_data" {
|
||||
name = "sobigdata_webodv_home_data"
|
||||
description = "NFS share for the sobigdata webodv home data"
|
||||
share_proto = "NFS"
|
||||
size = 10
|
||||
}
|
||||
|
||||
# Allow access to the NFS share
|
||||
resource "openstack_sharedfilesystem_share_access_v2" "webodv_mgr_home_data_share_access" {
|
||||
for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_managers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip }
|
||||
share_id = openstack_sharedfilesystem_share_v2.webodv_home_data.id
|
||||
access_type = "ip"
|
||||
access_to = each.key
|
||||
access_level = "rw"
|
||||
}
|
||||
|
||||
resource "openstack_sharedfilesystem_share_access_v2" "webodv_workers_home_data_share_access" {
|
||||
for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_workers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip }
|
||||
share_id = openstack_sharedfilesystem_share_v2.webodv_home_data.id
|
||||
access_type = "ip"
|
||||
access_to = each.key
|
||||
access_level = "rw"
|
||||
}
|
||||
|
||||
resource "openstack_sharedfilesystem_share_v2" "webodv_public_data" {
|
||||
name = "sobigdata_webodv_home_data"
|
||||
description = "NFS share for the sobigdata webodv home data"
|
||||
name = "sobigdata_webodv_public_data"
|
||||
description = "NFS share for the sobigdata webodv public data"
|
||||
share_proto = "NFS"
|
||||
size = 10
|
||||
}
|
||||
|
@ -72,31 +48,42 @@ resource "openstack_sharedfilesystem_share_access_v2" "webodv_workers_public_dat
|
|||
access_level = "rw"
|
||||
}
|
||||
|
||||
resource "openstack_sharedfilesystem_share_v2" "webodv_mysql_data" {
|
||||
name = "sobigdata_webodv_mysql_data"
|
||||
description = "NFS share for the sobigdata webodv mysql data"
|
||||
share_proto = "NFS"
|
||||
size = 10
|
||||
}
|
||||
|
||||
# Allow access to the NFS share
|
||||
resource "openstack_sharedfilesystem_share_access_v2" "webodv_mgr_mysql_data_share_access" {
|
||||
for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_managers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip }
|
||||
share_id = openstack_sharedfilesystem_share_v2.webodv_mysql_data.id
|
||||
access_type = "ip"
|
||||
access_to = each.key
|
||||
access_level = "rw"
|
||||
}
|
||||
|
||||
resource "openstack_sharedfilesystem_share_access_v2" "webodv_workers_mysql_data_share_access" {
|
||||
for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_workers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip }
|
||||
share_id = openstack_sharedfilesystem_share_v2.webodv_mysql_data.id
|
||||
access_type = "ip"
|
||||
access_to = each.key
|
||||
access_level = "rw"
|
||||
}
|
||||
|
||||
|
||||
output "webodv_nfs_private_data" {
|
||||
value = openstack_sharedfilesystem_share_v2.webodv_private_data
|
||||
}
|
||||
|
||||
output "webodv_nfs_private_data_mgr_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_mgr_private_data_share_access
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_mgr_private_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "webodv_nfs_private_data_workers_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_workers_private_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "webodv_nfs_home_data" {
|
||||
value = openstack_sharedfilesystem_share_v2.webodv_home_data
|
||||
}
|
||||
|
||||
output "webodv_nfs_home_data_mgr_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_mgr_home_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "webodv_nfs_home_data_workers_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_workers_home_data_share_access
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_workers_private_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
|
@ -105,11 +92,25 @@ output "webodv_nfs_public_data" {
|
|||
}
|
||||
|
||||
output "webodv_nfs_public_data_mgr_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_mgr_public_data_share_access
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_mgr_public_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "webodv_nfs_public_data_workers_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_workers_public_data_share_access
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_workers_public_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "webodv_nfs_mysql_data" {
|
||||
value = openstack_sharedfilesystem_share_v2.webodv_mysql_data
|
||||
}
|
||||
|
||||
output "webodv_nfs_mysql_data_mgr_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_mgr_mysql_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "webodv_nfs_mysql_data_workers_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.webodv_workers_mysql_data_share_access
|
||||
sensitive = true
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ resource "openstack_sharedfilesystem_share_v2" "ccp_production_repository_data"
|
|||
name = "ccp_production_repository_data"
|
||||
description = "NFS share for the CCP repository data"
|
||||
share_proto = "NFS"
|
||||
size = 5000
|
||||
size = 5
|
||||
}
|
||||
|
||||
# Allow access to the NFS share
|
||||
|
@ -32,7 +32,7 @@ resource "openstack_sharedfilesystem_share_v2" "ccp_production_methods_logs" {
|
|||
name = "ccp_production_method_logs"
|
||||
description = "NFS share for the CCP method logs"
|
||||
share_proto = "NFS"
|
||||
size = 1000
|
||||
size = 2
|
||||
}
|
||||
|
||||
# Allow access to the NFS share
|
||||
|
@ -58,12 +58,12 @@ output "ccp_production_repository_data" {
|
|||
}
|
||||
|
||||
output "ccp_production_repository_data_mgr_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_repository_access_swarm_mgr
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_repository_access_swarm_mgr
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "ccp_production_repository_workers_acls" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_repository_access_swarm_workers
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_repository_access_swarm_workers
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
|
@ -72,11 +72,11 @@ output "ccp_production_methods_logs" {
|
|||
}
|
||||
|
||||
output "ccp_production_methods_logs_access_swarm_mgr" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_methods_logs_access_swarm_mgr
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_methods_logs_access_swarm_mgr
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "ccp_production_methods_logs_access_swarm_workers" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_methods_logs_access_swarm_workers
|
||||
value = openstack_sharedfilesystem_share_access_v2.ccp_production_methods_logs_access_swarm_workers
|
||||
sensitive = true
|
||||
}
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
# itineris_wp8_pgadmin_data
|
||||
resource "openstack_sharedfilesystem_share_v2" "itineris_wp8_pgadmin" {
|
||||
name = "itineris_wp8_pgadmin"
|
||||
description = "NFS share for the ITINERIS WP8 pgAdmin instance"
|
||||
share_proto = "NFS"
|
||||
size = 6
|
||||
}
|
||||
|
||||
output "itineris_wp8_pgadmin" {
|
||||
value = openstack_sharedfilesystem_share_v2.itineris_wp8_pgadmin
|
||||
}
|
||||
|
||||
# Allow access to the NFS share
|
||||
resource "openstack_sharedfilesystem_share_access_v2" "itineris_wp8_pgadmin_swarm_mgr_acl" {
|
||||
for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_managers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip }
|
||||
share_id = openstack_sharedfilesystem_share_v2.itineris_wp8_pgadmin.id
|
||||
access_type = "ip"
|
||||
access_to = each.key
|
||||
access_level = "rw"
|
||||
}
|
||||
|
||||
output "itineris_wp8_pgadmin_swarm_mgr_acl" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.itineris_wp8_pgadmin_swarm_mgr_acl
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
resource "openstack_sharedfilesystem_share_access_v2" "itineris_wp8_pgadmin_swarm_workers_acl" {
|
||||
for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_workers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip }
|
||||
share_id = openstack_sharedfilesystem_share_v2.itineris_wp8_pgadmin.id
|
||||
access_type = "ip"
|
||||
access_to = each.key
|
||||
access_level = "rw"
|
||||
}
|
||||
|
||||
output "itineris_wp8_pgadmin_swarm_workers_acl" {
|
||||
value = openstack_sharedfilesystem_share_access_v2.itineris_wp8_pgadmin_swarm_workers_acl
|
||||
sensitive = true
|
||||
}
|
Loading…
Reference in New Issue