You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by jordan j <yo...@gmail.com> on 2023/02/20 07:27:53 UTC

Re: Using terraform to spin custom instances?

Hello everyone,
One more question regarding the Terraform provider.
When deploying a new instance, is it possible to select the resident host?


Regards,
Jordan



On Mon, Jan 23, 2023 at 12:45 PM jordan j <yo...@gmail.com> wrote:

> Works like a charm! :)
>
> On Mon, Jan 23, 2023 at 10:44 AM Stephan Bienek <st...@bienek.org>
> wrote:
>
>> Hi Jordan,
>>
>> it actually works but not too great documented.
>> Use the following example:
>>
>> resource "cloudstack_instance" "web" {
>>   name             = "server-1"
>>   service_offering = "custom"
>>   network_id       = "c4a3303c-376d-4d56-b336-1bd91cb130b6"
>>   template         = "d4c2f9c6-1d18-11ec-9173-50eb7122da94"
>>   zone             = "d4a81f75-5d92-415e-ab59-e85cc2ce56d9"
>>   details = {"cpuNumber" = "2", "memory" = "500"}
>> }
>>
>> Best regards,
>> Stephan
>>
>> > jordan j <yo...@gmail.com> hat am 23.01.2023 08:42 CET geschrieben:
>> >
>> >
>> > Dear everyone,
>> >
>> > I started playing with the Terraform provider. I noticed that there is
>> no
>> > way to choose custom resource values as my Compute Offering is custom.
>> Is
>> > there a way or that feature is not developed? Any advice is appreciated!
>> >
>> > Regard,
>> > Jordan
>>
>

Re: Using terraform to spin custom instances?

Posted by jordan j <yo...@gmail.com>.
Thank you Kiran!

On Mon, Feb 20, 2023 at 10:12 AM Kiran Chavala <ki...@shapeblue.com>
wrote:

> Hi Jordan
>
> Currently it's not possible to select the host id using the terraform
> provider
>
>
> https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs/resources/instance
>
> There is no argument for hostid in terraform code for Cloudstack
>
> Regards
> Kiran
>
> ________________________________
> From: jordan j <yo...@gmail.com>
> Sent: 20 February 2023 12:57
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: Re: Using terraform to spin custom instances?
>
> Hello everyone,
> One more question regarding the Terraform provider.
> When deploying a new instance, is it possible to select the resident host?
>
>
> Regards,
> Jordan
>
>
>
>
>
>
> On Mon, Jan 23, 2023 at 12:45 PM jordan j <yo...@gmail.com> wrote:
>
> > Works like a charm! :)
> >
> > On Mon, Jan 23, 2023 at 10:44 AM Stephan Bienek <st...@bienek.org>
> > wrote:
> >
> >> Hi Jordan,
> >>
> >> it actually works but not too great documented.
> >> Use the following example:
> >>
> >> resource "cloudstack_instance" "web" {
> >>   name             = "server-1"
> >>   service_offering = "custom"
> >>   network_id       = "c4a3303c-376d-4d56-b336-1bd91cb130b6"
> >>   template         = "d4c2f9c6-1d18-11ec-9173-50eb7122da94"
> >>   zone             = "d4a81f75-5d92-415e-ab59-e85cc2ce56d9"
> >>   details = {"cpuNumber" = "2", "memory" = "500"}
> >> }
> >>
> >> Best regards,
> >> Stephan
> >>
> >> > jordan j <yo...@gmail.com> hat am 23.01.2023 08:42 CET
> geschrieben:
> >> >
> >> >
> >> > Dear everyone,
> >> >
> >> > I started playing with the Terraform provider. I noticed that there is
> >> no
> >> > way to choose custom resource values as my Compute Offering is custom.
> >> Is
> >> > there a way or that feature is not developed? Any advice is
> appreciated!
> >> >
> >> > Regard,
> >> > Jordan
> >>
> >
>

Re: Using terraform to spin custom instances?

Posted by Kiran Chavala <ki...@shapeblue.com>.
Hi Jordan

Currently it's not possible to select the host id using the terraform provider

https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs/resources/instance

There is no argument for hostid in terraform code for Cloudstack

Regards
Kiran

________________________________
From: jordan j <yo...@gmail.com>
Sent: 20 February 2023 12:57
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Using terraform to spin custom instances?

Hello everyone,
One more question regarding the Terraform provider.
When deploying a new instance, is it possible to select the resident host?


Regards,
Jordan




 

On Mon, Jan 23, 2023 at 12:45 PM jordan j <yo...@gmail.com> wrote:

> Works like a charm! :)
>
> On Mon, Jan 23, 2023 at 10:44 AM Stephan Bienek <st...@bienek.org>
> wrote:
>
>> Hi Jordan,
>>
>> it actually works but not too great documented.
>> Use the following example:
>>
>> resource "cloudstack_instance" "web" {
>>   name             = "server-1"
>>   service_offering = "custom"
>>   network_id       = "c4a3303c-376d-4d56-b336-1bd91cb130b6"
>>   template         = "d4c2f9c6-1d18-11ec-9173-50eb7122da94"
>>   zone             = "d4a81f75-5d92-415e-ab59-e85cc2ce56d9"
>>   details = {"cpuNumber" = "2", "memory" = "500"}
>> }
>>
>> Best regards,
>> Stephan
>>
>> > jordan j <yo...@gmail.com> hat am 23.01.2023 08:42 CET geschrieben:
>> >
>> >
>> > Dear everyone,
>> >
>> > I started playing with the Terraform provider. I noticed that there is
>> no
>> > way to choose custom resource values as my Compute Offering is custom.
>> Is
>> > there a way or that feature is not developed? Any advice is appreciated!
>> >
>> > Regard,
>> > Jordan
>>
>