Skip to content

Commit 8c716e7

Browse files
author
Kimmo Forss
committed
upgrade terraform
1 parent a64757b commit 8c716e7

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

articles/sap/automation/upgrading.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,33 @@ You can also configure the Azure DevOps agent to perform the sign-in to Azure by
190190

191191
| Name | Value |
192192
| ---------------- | -------------------------------------------- |
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+
```
194220

195221
## Upgrade the workload zone
196222

@@ -222,7 +248,7 @@ You can also configure the Azure DevOps agent to perform the sign-in to Azure by
222248

223249
| Name | Value |
224250
| ---------------- | -------------------------------------------- |
225-
| Logon_Using_SPN | True |
251+
| Logon_Using_SPN | true |
226252

227253
## Next step
228254

0 commit comments

Comments
 (0)