|
@ -1,8 +1,8 @@ |
|
|
# Define IntServ group number |
|
|
|
|
|
|
|
|
# Define CloudComp group number |
|
|
# TODO: change to use OS env vars etc. |
|
|
# TODO: change to use OS env vars etc. |
|
|
variable "group_number" { |
|
|
variable "group_number" { |
|
|
type = string |
|
|
type = string |
|
|
default = "19" |
|
|
|
|
|
|
|
|
default = "22" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
## OpenStack credentials can be used in a more secure way by using |
|
|
## OpenStack credentials can be used in a more secure way by using |
|
@ -11,11 +11,11 @@ variable "group_number" { |
|
|
# Define OpenStack credentials, project config etc. |
|
|
# Define OpenStack credentials, project config etc. |
|
|
locals { |
|
|
locals { |
|
|
auth_url = "https://private-cloud.informatik.hs-fulda.de:5000/v3" |
|
|
auth_url = "https://private-cloud.informatik.hs-fulda.de:5000/v3" |
|
|
user_name = "IntServ${var.group_number}" |
|
|
|
|
|
|
|
|
user_name = "CloudComp${var.group_number}" |
|
|
user_password = "<password of your group here, private-cloud is only reachable via vpn>" |
|
|
user_password = "<password of your group here, private-cloud is only reachable via vpn>" |
|
|
tenant_name = "IntServ${var.group_number}" |
|
|
|
|
|
#network_name = "IntServ${var.group_number}-net" |
|
|
|
|
|
router_name = "IntServ${var.group_number}-router" |
|
|
|
|
|
|
|
|
tenant_name = "CloudComp${var.group_number}" |
|
|
|
|
|
#network_name = "CloudComp${var.group_number}-net" |
|
|
|
|
|
router_name = "CloudComp${var.group_number}-router" |
|
|
image_name = "Ubuntu 20.04 - Focal Fossa - 64-bit - Cloud Based Image" |
|
|
image_name = "Ubuntu 20.04 - Focal Fossa - 64-bit - Cloud Based Image" |
|
|
flavor_name = "m1.medium" |
|
|
flavor_name = "m1.medium" |
|
|
region_name = "RegionOne" |
|
|
region_name = "RegionOne" |
|
@ -35,11 +35,11 @@ required_version = ">= 0.14.0" |
|
|
required_providers { |
|
|
required_providers { |
|
|
openstack = { |
|
|
openstack = { |
|
|
source = "terraform-provider-openstack/openstack" |
|
|
source = "terraform-provider-openstack/openstack" |
|
|
version = ">= 1.46.0" |
|
|
|
|
|
|
|
|
version = ">= 1.47.0" |
|
|
} |
|
|
} |
|
|
rancher2 = { |
|
|
rancher2 = { |
|
|
source = "rancher/rancher2" |
|
|
source = "rancher/rancher2" |
|
|
version = ">= 1.22.2" |
|
|
|
|
|
|
|
|
version = ">= 1.24.0" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|