Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS-3151: Add env variable options for preinstall script #3715

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/how-tos/provision-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,18 @@ sudo ./preinstall.sh
```

Follow the instructions.
If you created a <FILE>viam-provisioning.json</FILE>, specify its location when prompted.
If you created a <FILE>viam-provisioning.json</FILE>, specify its location as an environment variable or when prompted.

You can set optional arguments by defining the following environment variables:

<!-- prettier-ignore -->
| Argument | Description |
| -------- | ----------- |
| `VIAM_JSON_PATH` | The path to the machine credentials <FILE>viam.json</FILE> file to be copied to the machine. The script will also prompt you for this file if not provided. |
| `PROVISIONING_PATH` | The path to the <FILE>viam-provisioning.json</FILE> file. The script will also prompt you for this file if not provided. |
| `VIAM_AGENT_PATH` | The path to a beta or local build of `viam-agent`. Used for testing. |

<br>

{{% expand "Using a Raspberry Pi?" %}}

Expand Down
Loading