File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,19 @@ func agentResource() *schema.Resource {
88
88
Type : schema .TypeString ,
89
89
Computed : true ,
90
90
},
91
+ "connection_timeout" : {
92
+ Type : schema .TypeInt ,
93
+ Default : 120 ,
94
+ ForceNew : true ,
95
+ Optional : true ,
96
+ Description : "Time in seconds until the agent is marked as timed out when a connection with the server cannot be established." ,
97
+ },
98
+ "troubleshooting_url" : {
99
+ Type : schema .TypeString ,
100
+ ForceNew : true ,
101
+ Optional : true ,
102
+ Description : "A URL to a document with instructions for troubleshooting problems with the agent." ,
103
+ },
91
104
},
92
105
}
93
106
}
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ func TestAgent(t *testing.T) {
31
31
hi = "test"
32
32
}
33
33
startup_script = "echo test"
34
+ troubleshooting_url = "https://example.com/troubleshoot"
34
35
}
35
36
` ,
36
37
Check : func (state * terraform.State ) error {
@@ -46,6 +47,8 @@ func TestAgent(t *testing.T) {
46
47
"dir" ,
47
48
"env.hi" ,
48
49
"startup_script" ,
50
+ "connection_timeout" ,
51
+ "troubleshooting_url" ,
49
52
} {
50
53
value := resource .Primary .Attributes [key ]
51
54
t .Logf ("%q = %q" , key , value )
You can’t perform that action at this time.
0 commit comments