File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,33 @@ You can also configure the Azure DevOps agent to perform the sign-in to Azure by
190
190
191
191
| Name | Value |
192
192
| ---------------- | -------------------------------------------- |
193
- | Logon_Using_SPN | True |
193
+ | Logon_Using_SPN | true |
194
+
195
+ ### Upgrading Terraform on the agents
196
+
197
+ You can upgrade Terraform on the agents by running the following script:
198
+
199
+ ``` bash
200
+
201
+ tfversion=" 1.6.5"
202
+
203
+ # Terraform installation directories
204
+ tf_base=/opt/terraform
205
+ tf_dir=" ${tf_base} /terraform_${tfversion} "
206
+ tf_bin=" ${tf_base} /bin"
207
+ tf_zip=" terraform_${tfversion} _linux_amd64.zip"
208
+
209
+ #
210
+ # Install terraform for all users
211
+ #
212
+ sudo mkdir -p \
213
+ " ${tf_dir} " \
214
+ " ${tf_bin} "
215
+ wget -nv -O /tmp/" ${tf_zip} " " https://releases.hashicorp.com/terraform/${tfversion} /${tf_zip} "
216
+ sudo unzip -o /tmp/" ${tf_zip} " -d " ${tf_dir} "
217
+ sudo ln -vfs " ../$( basename " ${tf_dir} " ) /terraform" " ${tf_bin} /terraform"
218
+
219
+ ```
194
220
195
221
## Upgrade the workload zone
196
222
@@ -222,7 +248,7 @@ You can also configure the Azure DevOps agent to perform the sign-in to Azure by
222
248
223
249
| Name | Value |
224
250
| ---------------- | -------------------------------------------- |
225
- | Logon_Using_SPN | True |
251
+ | Logon_Using_SPN | true |
226
252
227
253
## Next step
228
254
You can’t perform that action at this time.
0 commit comments