Feature hourly and quote based bare metal server#161
Conversation
…price are saved in quote.
| Optional: true, | ||
| ForceNew: true, | ||
| DiffSuppressFunc: applyOnce, | ||
| }, |
There was a problem hiding this comment.
I thought we were going to rely on information from the quote data source to fill in properties in the compute resource. Can you explain why we need the quote_id here?
There was a problem hiding this comment.
You can create a bare metal server with the quote_id attribute.
There was a problem hiding this comment.
Yes, so they can't use the data source for this? If not, what is the value-add of the quote data source?
There was a problem hiding this comment.
Quote data source provides required attributes for bare metal provisioning. You can refer to the quote data source to define a bare metal server resource. Or you can use interpolations to define a bare metal server resource. For example,
package_key_name = "${data.softlayer_quote_bare_metal.bm1.package_key_name}"
...If you want to define a bare metal server resource with a quote data, you can write a definition as follows:
data softlayer_quote_bare_metal quote_bm1{
name = "quote1"
}
resource softlayer_bare_metal bm1 {
...
quote_id = "${data.softlayer_quote_bare_metal.quote_bm1.id}"
...
}There was a problem hiding this comment.
I don't see why we would need both a quote id and a quote data source. Let's talk about that.
There was a problem hiding this comment.
Per your request, the quote_bare_metal data source was deleted.
I cloned the PR #151 and extended the bare metal resource.
The following functions are added.
Added hourly bare metal server provisioning functions.
Added quote based bare metal server provisioning functions.
Added quote_bare_metal data source.