Skip to content

Commit

Permalink
chore: allow to provision a new server without hardcoded and outdated…
Browse files Browse the repository at this point in the history
… Ubuntu version

[skip ci]
  • Loading branch information
php-coder committed Dec 1, 2024
1 parent 713690d commit c7972a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infra/terraform/my-stamps.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ provider "digitalocean" {

# Droplet docs: https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/droplet.html
resource "digitalocean_droplet" "web" {
# "ubuntu-16-04-x64" resolves into Ubuntu 16.04.6 while our server is based on Ubuntu 16.04.1
image = "18572320"
image = "ubuntu-24-04-x64"
name = "my-stamps.ru"
region = "fra1"
size = "s-1vcpu-1gb"
# https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle
lifecycle {
ignore_changes = [image]
}
}

# Domain docs: https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/domain.html
Expand Down

0 comments on commit c7972a0

Please sign in to comment.