-
Notifications
You must be signed in to change notification settings - Fork 40
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
Signed-off-by: Victor Morales <v.morales@samsung.com>
- Loading branch information
1 parent
9516c24
commit 7fcf5f7
Showing
8 changed files
with
156 additions
and
99 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,10 @@ | ||
module "gcp-ubuntu-focal" { | ||
source = ".//modules/gcp" | ||
vmimage = "ubuntu-os-cloud/ubuntu-2004-lts" | ||
} | ||
|
||
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 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
File renamed without changes.
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.