Skip to content

Commit b59fc12

Browse files
authored
Merge pull request #354 from openaustralia/new-openaustralia-terraform
Update Terraform configuration for new OpenAustralia server
2 parents 5b07bf3 + d8b6bcc commit b59fc12

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ module "openaustralia" {
9494
security_group_service = aws_security_group.openaustralia
9595
instance_profile = aws_iam_instance_profile.logging
9696
ami = var.ubuntu_16_ami
97+
ubuntu_22_ami = var.ubuntu_22_ami
9798
ubuntu_24_ami = var.ubuntu_24_ami
9899
cloudflare_account_id = var.cloudflare_account_id
99100
}

terraform/openaustralia/production.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# New OpenAustralia Production Server on Ubuntu 24.04
1+
# New OpenAustralia Production Server on Ubuntu 22.04
22
# This creates a parallel production environment for OpenAustralia
33

44
# After discussion with Brenda, this new server will house both staging and production.
5+
# Note: Using Ubuntu 22.04 due to Ansible 2.10 compatibility issues with Ubuntu 24.04
56

67
resource "aws_instance" "production" {
7-
ami = var.ubuntu_24_ami
8+
ami = var.ubuntu_22_ami
89

910
instance_type = "t3.small"
1011
ebs_optimized = true
11-
key_name = "test"
12+
key_name = "terraform"
1213
tags = {
13-
Name = "openaustralia"
14+
Name = "openaustralia-prod"
1415
}
1516

1617
# Increase root volume size to 20GB to allow for more packages and data
@@ -44,7 +45,7 @@ resource "aws_ebs_volume" "production_data" {
4445
size = 20
4546
type = "gp3"
4647
tags = {
47-
Name = "openaustralia_data"
48+
Name = "openaustralia-prod-data"
4849
}
4950
}
5051

terraform/openaustralia/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ variable "security_group_service" {}
33
variable "instance_profile" {}
44
variable "ami" {}
55
variable "cloudflare_account_id" {}
6+
variable "ubuntu_22_ami" {}
67
variable "ubuntu_24_ami" {}

0 commit comments

Comments
 (0)