File tree 4 files changed +31
-31
lines changed
4 files changed +31
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " coder_provisioner Data Source - terraform-provider-coder"
4
+ subcategory : " "
5
+ description : |-
6
+ Use this data source to get information about the Coder provisioner.
7
+ ---
8
+
9
+ # coder_provisioner (Data Source)
10
+
11
+ Use this data source to get information about the Coder provisioner.
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Read-Only
19
+
20
+ - ` arch ` (String) The architecture of the host. This exposes ` runtime.GOARCH ` (see https://pkg.go.dev/runtime#pkg-constants ).
21
+ - ` id ` (String) The ID of this resource.
22
+ - ` os ` (String) The operating system of the host. This exposes ` runtime.GOOS ` (see https://pkg.go.dev/runtime#pkg-constants ).
23
+
24
+
Original file line number Diff line number Diff line change @@ -151,8 +151,8 @@ func New() *schema.Provider {
151
151
},
152
152
},
153
153
},
154
- "coder_host " : {
155
- Description : "Use this data source to get information about the host ." ,
154
+ "coder_provisioner " : {
155
+ Description : "Use this data source to get information about the Coder provisioner ." ,
156
156
ReadContext : func (c context.Context , rd * schema.ResourceData , i interface {}) diag.Diagnostics {
157
157
rd .SetId (uuid .NewString ())
158
158
rd .Set ("os" , runtime .GOOS )
@@ -164,12 +164,12 @@ func New() *schema.Provider {
164
164
"os" : {
165
165
Type : schema .TypeString ,
166
166
Computed : true ,
167
- Description : "The operating system of the host." ,
167
+ Description : "The operating system of the host. This exposes `runtime.GOOS` (see https://pkg.go.dev/runtime#pkg-constants). " ,
168
168
},
169
169
"arch" : {
170
170
Type : schema .TypeString ,
171
171
Computed : true ,
172
- Description : "The architecture of the host." ,
172
+ Description : "The architecture of the host. This exposes `runtime.GOARCH` (see https://pkg.go.dev/runtime#pkg-constants). " ,
173
173
},
174
174
},
175
175
},
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ func TestWorkspace(t *testing.T) {
53
53
})
54
54
}
55
55
56
- func TestHost (t * testing.T ) {
56
+ func TestProvisioner (t * testing.T ) {
57
57
resource .Test (t , resource.TestCase {
58
58
Providers : map [string ]* schema.Provider {
59
59
"coder" : provider .New (),
@@ -63,12 +63,12 @@ func TestHost(t *testing.T) {
63
63
Config : `
64
64
provider "coder" {
65
65
}
66
- data "coder_host " "me" {
66
+ data "coder_provisioner " "me" {
67
67
}` ,
68
68
Check : func (state * terraform.State ) error {
69
69
require .Len (t , state .Modules , 1 )
70
70
require .Len (t , state .Modules [0 ].Resources , 1 )
71
- resource := state .Modules [0 ].Resources ["data.coder_host .me" ]
71
+ resource := state .Modules [0 ].Resources ["data.coder_provisioner .me" ]
72
72
require .NotNil (t , resource )
73
73
74
74
attribs := resource .Primary .Attributes
You can’t perform that action at this time.
0 commit comments