Added static-web service
This commit is contained in:
parent
13f5384652
commit
6dfdf42e30
|
@ -44,7 +44,7 @@ resource "openstack_compute_instance_v2" "static_web_service" {
|
|||
key_pair = module.ssh_settings.ssh_key_name
|
||||
security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers]
|
||||
block_device {
|
||||
uuid = module.common_variables.ubuntu_1804.uuid
|
||||
uuid = module.common_variables.ubuntu_2204.uuid
|
||||
source_type = "image"
|
||||
volume_size = 40
|
||||
boot_index = 0
|
||||
|
@ -62,7 +62,7 @@ resource "openstack_compute_instance_v2" "static_web_service" {
|
|||
|
||||
|
||||
# user_data script used
|
||||
user_data = file("${module.common_variables.ubuntu_1804.user_data_file}")
|
||||
user_data = file("${module.common_variables.ubuntu_2204.user_data_file}")
|
||||
# Do not replace the instance when the ssh key changes
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
|
@ -86,7 +86,7 @@ module "dns_records_create" {
|
|||
source = "../../modules/dns_resources"
|
||||
|
||||
dns_resources_map = {
|
||||
access-service = {
|
||||
static-web = {
|
||||
zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id
|
||||
name = join(".", ["static-web", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name])
|
||||
description = "Static-Web service"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.6.4",
|
||||
"serial": 3,
|
||||
"serial": 19,
|
||||
"lineage": "ff03bc33-bac1-cc22-30ba-8ec3ad084038",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
|
@ -403,7 +403,7 @@
|
|||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"access_ip_v4": "10.1.41.220",
|
||||
"access_ip_v4": "10.1.43.93",
|
||||
"access_ip_v6": "",
|
||||
"admin_pass": null,
|
||||
"all_metadata": {},
|
||||
|
@ -420,18 +420,18 @@
|
|||
"guest_format": "",
|
||||
"multiattach": false,
|
||||
"source_type": "image",
|
||||
"uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89",
|
||||
"uuid": "54768889-8556-4be4-a2eb-82a4d9b34627",
|
||||
"volume_size": 40,
|
||||
"volume_type": ""
|
||||
}
|
||||
],
|
||||
"config_drive": null,
|
||||
"created": "2024-04-29 14:30:46 +0000 UTC",
|
||||
"created": "2024-04-29 14:40:00 +0000 UTC",
|
||||
"flavor_id": "3",
|
||||
"flavor_name": "c1.small",
|
||||
"floating_ip": null,
|
||||
"force_delete": false,
|
||||
"id": "85efb1e0-46c3-40fd-b395-de742c3d7bf5",
|
||||
"id": "cc6e4930-43c0-490c-869a-c00552dbd0b9",
|
||||
"image_id": "Attempt to boot from volume - no image supplied",
|
||||
"image_name": null,
|
||||
"key_pair": "Giancarlo Panichi",
|
||||
|
@ -440,10 +440,10 @@
|
|||
"network": [
|
||||
{
|
||||
"access_network": false,
|
||||
"fixed_ip_v4": "10.1.41.220",
|
||||
"fixed_ip_v4": "10.1.43.93",
|
||||
"fixed_ip_v6": "",
|
||||
"floating_ip": "",
|
||||
"mac": "fa:16:3e:8b:14:e3",
|
||||
"mac": "fa:16:3e:0b:55:c8",
|
||||
"name": "d4s-production-cloud-main",
|
||||
"port": "",
|
||||
"uuid": "020df98d-ae72-452a-b376-3b6dc289acac"
|
||||
|
@ -461,8 +461,8 @@
|
|||
"stop_before_destroy": false,
|
||||
"tags": null,
|
||||
"timeouts": null,
|
||||
"updated": "2024-04-29 14:31:28 +0000 UTC",
|
||||
"user_data": "47d4769e61324c305c4b70ed6673de4fad84150d",
|
||||
"updated": "2024-04-29 14:40:47 +0000 UTC",
|
||||
"user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608",
|
||||
"vendor_options": [],
|
||||
"volume": []
|
||||
},
|
||||
|
@ -482,12 +482,12 @@
|
|||
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
|
||||
"instances": [
|
||||
{
|
||||
"index_key": "access-service",
|
||||
"index_key": "static-web",
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"description": "Static-Web service",
|
||||
"disable_status_check": false,
|
||||
"id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/113eb450-5ec2-4411-b6fb-1c54a4a70180",
|
||||
"id": "74135b34-1a9c-4c01-8cf0-22450a5660c4/8b3c0ff8-72f3-4814-8832-0e3a24091721",
|
||||
"name": "static-web.cloud.d4science.org.",
|
||||
"project_id": "1b45adf388934758b56d0dfdb4bfacf3",
|
||||
"records": [
|
||||
|
|
Loading…
Reference in New Issue