F #6150: Upgrade Ubuntu Focal to Jammy in provision (#2536)

This commit is contained in:
Jan Orel authored and GitHub committed 2023-03-08 15:58:45 +01:00
1 parent 75ee27eb32
commit f89696410d
17 files changed
+24 -23

No files matched your search

@@ -2,8 +2,9 @@
- name: Check supported platform
assert:
that: |
ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04'
that:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_version in ['20.04', '22.04']
msg: "Unsupported target OS"
- name: Disable ufw
@@ -15,7 +15,7 @@
- name: Add frr repository
ansible.builtin.apt_repository:
repo: deb https://deb.frrouting.org/frr focal frr-stable
repo: "deb https://deb.frrouting.org/frr {{ ansible_distribution_release }} frr-stable"
state: present
- name: Install FRR
@@ -12,7 +12,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 't2.micro'
@@ -12,7 +12,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 't2.micro'
@@ -12,7 +12,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 't2.micro'
@@ -12,7 +12,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 't2.micro'
@@ -12,9 +12,9 @@ connection:
inputs:
- name: 'google_image'
type: 'list'
default: 'ubuntu-2004-focal-v20220118'
default: 'ubuntu-2204-jammy-v20221214'
options:
- 'ubuntu-2004-focal-v20220118'
- 'ubuntu-2204-jammy-v20221214'
- name: 'google_machine_type'
type: 'list'
default: 'e2-standard-2'
@@ -12,9 +12,9 @@ connection:
inputs:
- name: 'google_image'
type: 'list'
default: 'ubuntu-2004-focal-v20220118'
default: 'ubuntu-2204-jammy-v20221214'
options:
- 'ubuntu-2004-focal-v20220118'
- 'ubuntu-2204-jammy-v20221214'
- name: 'google_machine_type'
type: 'list'
default: 'e2-standard-2'
@@ -12,9 +12,9 @@ connection:
inputs:
- name: 'google_image'
type: 'list'
default: 'ubuntu-2004-focal-v20220118'
default: 'ubuntu-2204-jammy-v20221214'
options:
- 'ubuntu-2004-focal-v20220118'
- 'ubuntu-2204-jammy-v20221214'
- name: 'google_machine_type'
type: 'list'
default: 'e2-standard-2'
@@ -12,9 +12,9 @@ connection:
inputs:
- name: 'google_image'
type: 'list'
default: 'ubuntu-2004-focal-v20220118'
default: 'ubuntu-2204-jammy-v20221214'
options:
- 'ubuntu-2004-focal-v20220118'
- 'ubuntu-2204-jammy-v20221214'
- name: 'google_machine_type'
type: 'list'
default: 'e2-standard-2'
@@ -24,7 +24,7 @@ inputs:
- name: 'google_image'
type: text
description: 'Google image used for host deployments'
default: 'ubuntu-2004-focal-v20220118'
default: 'ubuntu-2204-jammy-v20221214'
- name: 'google_machine_type'
type: text
@@ -15,7 +15,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 'c5.metal'
@@ -15,7 +15,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 'c5.metal'
@@ -15,7 +15,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 'c5.metal'
@@ -15,7 +15,7 @@ inputs:
- name: 'aws_ami_image'
type: 'text'
default: 'default'
description: 'AWS AMI image (default = Ubuntu Focal)'
description: 'AWS AMI image (default = Ubuntu Jammy)'
- name: 'aws_instance_type'
type: 'list'
default: 'c5.metal'
@@ -1,10 +1,10 @@
data "aws_ami" "ubuntu2004" {
data "aws_ami" "ubuntu2204" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"]
values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
filter {
@@ -1,7 +1,7 @@
resource "aws_instance" "device_<%= obj['ID'] %>" {
<% if provision['AMI'] == 'default' %>
ami = data.aws_ami.ubuntu2004.id
ami = data.aws_ami.ubuntu2204.id
<% else %>
ami = "<%= provision['AMI'] %>"
<% end %>