pmorillon / terraform-provider-grid5000

Terraform provider plugin for OAR jobs submission and Kadeploy bare-metal deployments on Grid'5000
Mozilla Public License 2.0
3 stars 2 forks source link

Use an already deploy oarsub #17

Closed Nivekiba closed 3 years ago

Nivekiba commented 3 years ago

Hello,

Is there a way to use an already deploy oarsub (through his id) when using the terraform-provider-gri5000 plugin ?

pmorillon commented 3 years ago

https://registry.terraform.io/providers/pmorillon/grid5000/latest/docs/resources/grid5000_job#import

Nivekiba commented 3 years ago

Ok Can i test it before closing the issue ? i just want to be sure it works well

pmorillon commented 3 years ago

sure

Nivekiba commented 3 years ago

Is it also possible to import "grid5000_deployment" resource ?

pmorillon commented 3 years ago

Is it also possible to import "grid5000_deployment" resource ?

I do not understand why you need to do that ? a deployment is a one shot resource. Can you explain what do you need to do ?

Nivekiba commented 3 years ago

in case i already reserve nodes with oarsub and already deploy an environment (debian for example) on a specific partition, if i want to use that already deployed nodes, i need a "grid5000_deployment" within my terraform script

pmorillon commented 3 years ago

if you deploy an environment manually with kadeploy command, you do not need to declare it into the terraform manifest, just need a grid5000_job resource to get reserved node list and interact with them.