forked from nephio-project/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Terraform scripts for different providers (nephio-project#179)
Signed-off-by: Victor Morales <v.morales@samsung.com>
- Loading branch information
1 parent
81eadca
commit 889d99c
Showing
9 changed files
with
167 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module "gcp-ubuntu-focal" { | ||
source = ".//modules/gcp" | ||
} | ||
|
||
module "gcp-fedora-34" { | ||
source = ".//modules/gcp" | ||
vmimage = "fedora-cloud/fedora-cloud-34" | ||
ansible_user = "fedora" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "instance_ips" { | ||
value = join(" ", google_compute_instance.lab_instances[*].network_interface[0].access_config[0].nat_ip) | ||
description = "The public IP address of the newly created instance" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
variable "project" { | ||
description = "GCP project that will host CI instances" | ||
default = "pure-faculty-367518" | ||
type = string | ||
} | ||
|
||
variable "region" { | ||
description = "GCP region to deploy CI instances" | ||
default = "us-central1" | ||
type = string | ||
} | ||
|
||
variable "zone" { | ||
description = "GCP zone to deploy CI instances" | ||
default = "us-central1-c" | ||
type = string | ||
} | ||
|
||
variable "instance" { | ||
description = "GCP flavor to be used by the CI instances" | ||
default = "e2-standard-16" | ||
type = string | ||
} | ||
|
||
variable "vmimage" { | ||
description = "OS image to be used for the creation of CI instances" | ||
default = "ubuntu-os-cloud/ubuntu-2004-lts" | ||
type = string | ||
} | ||
|
||
variable "credentials" { | ||
description = "Credentials file to connect to GCP" | ||
default = "/etc/satoken/satoken" | ||
type = string | ||
} | ||
|
||
variable "ssh_prv_key" { | ||
description = "SSH private key for CI instance's connection" | ||
default = "/etc/ssh-key/id_rsa" | ||
type = string | ||
} | ||
|
||
variable "ssh_pub_key" { | ||
description = "SSH public key for CI instance's connection" | ||
default = "/etc/ssh-key/id_rsa.pub" | ||
type = string | ||
} | ||
|
||
variable "ansible_user" { | ||
description = "OS user used for Ansible connectivity" | ||
default = "ubuntu" | ||
type = string | ||
} | ||
|
||
variable "nephio_lab_nodes" { | ||
description = "The number of Lab instances to be created." | ||
default = 0 | ||
type = number | ||
} | ||
|
||
variable "nephio_e2e_nodes" { | ||
description = "The number of End-to-End instances running per PR." | ||
default = 1 | ||
type = number | ||
} |
This file was deleted.
Oops, something went wrong.