fix(infra): terraform aws 88/41988/2
authorPeter Mikus <[email protected]>
Tue, 10 Dec 2024 14:10:18 +0000 (15:10 +0100)
committerPeter Mikus <[email protected]>
Tue, 10 Dec 2024 14:10:47 +0000 (14:10 +0000)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: I26bd0ac16d1c72716e60795c3476cac36151cca6

fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf
fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf
fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf

index bf27f03..24e767e 100644 (file)
@@ -102,7 +102,7 @@ variable "first_run_commands" {
   type        = list(string)
   default = [
     "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
-    "sudo systemctl restart sshd",
+    "sudo systemctl restart ssh.service",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
index 3b50b15..b14718f 100644 (file)
@@ -102,7 +102,7 @@ variable "first_run_commands" {
   type        = list(string)
   default = [
     "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
-    "sudo systemctl restart sshd",
+    "sudo systemctl restart ssh.service",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
index 686614a..30c6f0d 100644 (file)
@@ -150,7 +150,7 @@ variable "first_run_commands" {
   type        = list(string)
   default = [
     "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
-    "sudo systemctl restart sshd",
+    "sudo systemctl restart ssh.service",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
index 08c3d53..41dc4e6 100644 (file)
@@ -162,7 +162,7 @@ variable "first_run_commands" {
   type        = list(string)
   default = [
     "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
-    "sudo systemctl restart sshd",
+    "sudo systemctl restart ssh.service",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",
index fcdac7d..015d6e2 100644 (file)
@@ -150,7 +150,7 @@ variable "first_run_commands" {
   type        = list(string)
   default = [
     "sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
-    "sudo systemctl restart sshd",
+    "sudo systemctl restart ssh.service",
     "sudo useradd --create-home -s /bin/bash provisionuser",
     "echo 'provisionuser:Csit1234' | sudo chpasswd",
     "echo 'provisionuser ALL = (ALL) NOPASSWD: ALL' | sudo tee -a /etc/sudoers",