Skip to content

Commit

Permalink
Add RHEL-10.0-nightly placeholders
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Jul 16, 2024
1 parent 2530e0e commit 57f9b72
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws/rhel-10.0-nightly-aarch64/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"user": "ec2-user",
"runnerArch": "aarch64",
"prepareScript": "sudo rm -f /etc/yum.repos.d/*.repo; sudo tee /etc/yum.repos.d/rhel10internal.repo <<EOT\n[RHEL-10-NIGHTLY-BaseOS]\nname=baseos\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/BaseOS/aarch64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-AppStream]\nname=appstream\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/AppStream/aarch64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-CRB]\nname=crb\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/CRB/aarch64/os/\nenabled=1\ngpgcheck=0\nEOT"
}
60 changes: 60 additions & 0 deletions aws/rhel-10.0-nightly-aarch64/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module "aws" {
source = "../_base"

name = "rhel-10.0-nightly-aarch64"
ami = "placeholder"
instance_types = ["m6g.large", "m6gd.large", "m7g.large", "m7gd.large"]
internal_network = var.internal_network
job_name = var.job_name
project = var.project
branch = var.branch
pipeline_id = var.pipeline_id
pipeline_source = var.pipeline_source
iam_instance_profile = var.iam_instance_profile
}

variable "internal_network" {
type = bool
description = "Whether this instance should be in the internal network (default: false)."
default = false
}

output "ip_address" {
value = module.aws.ip_address
}

variable "job_name" {
description = "the job_name the instance is performing"
type = string
default = "unset"
}

variable "project" {
description = "the associated project"
type = string
default = "unset"
}

variable "branch" {
description = "the associated branch"
type = string
default = "unset"
}

variable "pipeline_id" {
description = "the associated pipeline_id"
type = string
default = "unset"
}

variable "pipeline_source" {
description = "the source that trigger the job"
type = string
default = "unset"
}

variable "iam_instance_profile" {
description = "instance profile to attach to the runner, the profile must exist"
type = string
default = null
}
5 changes: 5 additions & 0 deletions aws/rhel-10.0-nightly-x86_64/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"user": "ec2-user",
"runnerArch": "amd64",
"prepareScript": "sudo rm -f /etc/yum.repos.d/*.repo; sudo tee /etc/yum.repos.d/rhel10internal.repo <<EOT\n[RHEL-10-NIGHTLY-BaseOS]\nname=baseos\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/BaseOS/x86_64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-AppStream]\nname=appstream\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/AppStream/x86_64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-CRB]\nname=crb\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/CRB/x86_64/os/\nenabled=1\ngpgcheck=0\nEOT"
}
60 changes: 60 additions & 0 deletions aws/rhel-10.0-nightly-x86_64/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module "aws" {
source = "../_base"

name = "rhel-10.0-nightly-x86_64"
ami = "placeholder"
instance_types = ["m5.large", "m5d.large", "m5a.large", "m5ad.large", "m6a.large", "m6i.large", "m6id.large", "m7i.large", "m7a.large"]
internal_network = var.internal_network
job_name = var.job_name
project = var.project
branch = var.branch
pipeline_id = var.pipeline_id
pipeline_source = var.pipeline_source
iam_instance_profile = var.iam_instance_profile
}

variable "internal_network" {
type = bool
description = "Whether this instance should be in the internal network (default: false)."
default = false
}

output "ip_address" {
value = module.aws.ip_address
}

variable "job_name" {
description = "the job_name the instance is performing"
type = string
default = "unset"
}

variable "project" {
description = "the associated project"
type = string
default = "unset"
}

variable "branch" {
description = "the associated branch"
type = string
default = "unset"
}

variable "pipeline_id" {
description = "the associated pipeline_id"
type = string
default = "unset"
}

variable "pipeline_source" {
description = "the source that trigger the job"
type = string
default = "unset"
}

variable "iam_instance_profile" {
description = "instance profile to attach to the runner, the profile must exist"
type = string
default = null
}
5 changes: 5 additions & 0 deletions rhos-01/rhel-10.0-nightly-x86_64-large/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"user": "cloud-user",
"runnerArch": "amd64",
"prepareScript": "sudo rm -f /etc/yum.repos.d/*.repo; sudo tee /etc/yum.repos.d/rhel10internal.repo <<EOT\n[RHEL-10-NIGHTLY-BaseOS]\nname=baseos\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/BaseOS/x86_64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-AppStream]\nname=appstream\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/AppStream/x86_64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-CRB]\nname=crb\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/CRB/x86_64/os/\nenabled=1\ngpgcheck=0\nEOT"
}
11 changes: 11 additions & 0 deletions rhos-01/rhel-10.0-nightly-x86_64-large/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module "openstack" {
source = "../_base"

name = "rhel-10-0-nightly-large"
image_id = "placeholder"
flavor_id = "2c6908ed-bb2b-43c7-8f9d-de790df5a4c0"
}

output "ip_address" {
value = module.openstack.ip_address
}
5 changes: 5 additions & 0 deletions rhos-01/rhel-10.0-nightly-x86_64/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"user": "cloud-user",
"runnerArch": "amd64",
"prepareScript": "sudo rm -f /etc/yum.repos.d/*.repo; sudo tee /etc/yum.repos.d/rhel10internal.repo <<EOT\n[RHEL-10-NIGHTLY-BaseOS]\nname=baseos\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/BaseOS/x86_64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-AppStream]\nname=appstream\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/AppStream/x86_64/os/\nenabled=1\ngpgcheck=0\n\n[RHEL-10-NIGHTLY-CRB]\nname=crb\nbaseurl=https://download.devel.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10/compose/CRB/x86_64/os/\nenabled=1\ngpgcheck=0\nEOT"
}
11 changes: 11 additions & 0 deletions rhos-01/rhel-10.0-nightly-x86_64/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module "openstack" {
source = "../_base"

name = "rhel-10-0-nightly"
image_id = "placeholder"
flavor_id = "bca7d8ab-b1a4-4883-b4c6-a9536d51ebdd"
}

output "ip_address" {
value = module.openstack.ip_address
}

0 comments on commit 57f9b72

Please sign in to comment.