You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a terraform `stackit_server` option for the iaas ( _create server_ ) API param:
`"agent": {"provisioned": true}`
ref STACKITRCO-187
ref: stackitcloud/stackit-cli#1213
review url: stackitcloud#1113
---
Tests:
* ran `make fmt`, `make generate-docs`, `make lint`
* ran unit tests
```
[~/terraform-provider-stackit] go test stackit/internal/services/iaas/server/*
ok command-line-arguments 15.005s
[~/terraform-provider-stackit] make test
...
ok github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/server 15.006s coverage: 33.0% of statements
...
[~/terraform-provider-stackit]
```
* Tested: with a locally-configured terraform, by adding, changing, deleting `agent`-related parts of a tf config.
Signed-off-by: Adrian Nackov <adrian.nackov@digits.schwarz>
MarkdownDescription: "Name of the type of the machine for the server. Possible values are documented in [Virtual machine flavors](https://docs.stackit.cloud/products/compute-engine/server/basics/machine-types/)",
125
131
Computed: true,
126
132
},
133
+
"agent": schema.SingleNestedAttribute{
134
+
Description: "STACKIT Server Agent as setup on the server",
135
+
Computed: true,
136
+
Attributes: map[string]schema.Attribute{
137
+
"provisioned": schema.BoolAttribute{
138
+
Description: "Whether a STACKIT Server Agent is provisioned at the server",
139
+
Computed: true,
140
+
},
141
+
"provisioning_policy": schema.StringAttribute{
142
+
Description: "The provisioning policy. In a data source, this defaults to \"INHERIT\" as the API does not provide this value.",
143
+
Computed: true,
144
+
},
145
+
},
146
+
},
127
147
"availability_zone": schema.StringAttribute{
128
148
Description: "The availability zone of the server.",
0 commit comments