vultr / terraform-provider-vultr-community

Terraform Vultr provider
Mozilla Public License 2.0
50 stars 7 forks source link

Server Options Bug #99

Closed ddymko closed 5 years ago

ddymko commented 5 years ago

Description

Due to V1 API behavior we have been running into issues with terraform drifting due to values changes from initial server creation to server created process.

While trying to solve these pain points we have a found a few other API V1 constraints which have been addressed.

Users now do not have to know the corresponding os_id for

If you define snapshot_id, iso_id or app_id we now handle adding the proper os_id.

If you want to deploy a regular os you can define your os_id. https://api.vultr.com/v1/os/list

NOTE If you set os_id with either app_id, iso_id, or snapshot_id an error will be thrown

If you want to use a startup script you can either use a regular boot script with an app_id or regular os_id

However if you want to use a pxe script then you will need to use the os_id = 159

Also note this shouldn't break backwards comp since the desired TF state should still match the defined TF state since the os_id will match up with what TF gets back from the API

Related Issues

96

Checklist: