Skip to content

Commit

Permalink
Basic SLURM running in CLASS-HPC-GCP project
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 6, 2021
1 parent 5d7f339 commit 4c00201
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ terraform.tfstate.backup
.terraform.lock.hcl
credentials.gcp
local*
.terraform/
6 changes: 3 additions & 3 deletions slurm-gcp/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: plan apply destroy

plan:
terraform plan -var-file=basic.tfvars -out terraform.tfplan
terraform plan -var-file=basic.tfvars -var-file=local.tfvars -out terraform.tfplan

apply:
terraform apply -var-file=basic.tfvars -auto-approve
terraform apply -var-file=basic.tfvars -var-file=local.tfvars -auto-approve

destroy:
terraform destroy -var-file=basic.tfvars -auto-approve
terraform destroy -var-file=basic.tfvars -var-file=local.tfvars -auto-approve
1 change: 1 addition & 0 deletions slurm-gcp/example-local.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project = "<project>"
8 changes: 4 additions & 4 deletions slurm-gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ provider "google" {
}

module "slurm_cluster_network" {
source = "../../modules/network"
source = "../../slurm-gcp/tf/modules/network"

cluster_name = var.cluster_name
disable_login_public_ips = var.disable_login_public_ips
Expand All @@ -40,7 +40,7 @@ module "slurm_cluster_network" {
}

module "slurm_cluster_controller" {
source = "../../modules/controller"
source = "../../slurm-gcp/tf/modules/controller"

boot_disk_size = var.controller_disk_size_gb
boot_disk_type = var.controller_disk_type
Expand Down Expand Up @@ -74,7 +74,7 @@ module "slurm_cluster_controller" {
}

module "slurm_cluster_login" {
source = "../../modules/login"
source = "../../slurm-gcp/tf/modules/login"

boot_disk_size = var.login_disk_size_gb
boot_disk_type = var.login_disk_type
Expand All @@ -100,7 +100,7 @@ module "slurm_cluster_login" {
}

module "slurm_cluster_compute" {
source = "../../modules/compute"
source = "../../slurm-gcp/tf/modules/compute"

cluster_name = var.cluster_name
controller_name = module.slurm_cluster_controller.controller_node_name
Expand Down

0 comments on commit 4c00201

Please sign in to comment.