Skip to content

Commit

Permalink
Add documentation about Scaleway credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed May 6, 2019
1 parent 6b33d09 commit 4ddaef4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ After this process completes, the Algo VPN server will contain only the users li
- Configure [Azure](docs/cloud-azure.md)
- Configure [DigitalOcean](docs/cloud-do.md)
- Configure [Google Cloud Platform](docs/cloud-gce.md)
- Configure [Scaleway](docs/cloud-scaleway.md)
- Configure [Vultr](docs/cloud-vultr.md)
* Advanced Deployment
- Deploy to your own [FreeBSD](docs/deploy-to-freebsd.md) server
Expand Down
9 changes: 9 additions & 0 deletions docs/cloud-scaleway.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Configuration file

Algo requires an API key from your Scaleway account to create a server.
The API key is generated by going to your Scaleway credentials at [https://console.scaleway.com/account/credentials](https://console.scaleway.com/account/credentials), and then selecting "Generate new token" on the right side of the box labeled "API Tokens".

Enter this token when Algo prompts you for the `auth token`.
This information will be pass as the `algo_scaleway_token` variable when asked for in the Algo prompt.

Your organization ID is also on this page: https://console.scaleway.com/account/credentials
12 changes: 8 additions & 4 deletions roles/cloud-scaleway/tasks/prompts.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
---
- pause:
prompt: |
Enter your auth token (https://www.scaleway.com/docs/generate-an-api-token/)
Enter your auth token (https://trailofbits.github.io/algo/cloud-scaleway.html)
echo: false
register: _scaleway_token
when:
- scaleway_token is undefined
- lookup('env','SCW_TOKEN')|length <= 0
when: scaleway_token is undefined

- pause:
prompt: |
Enter your organization ID (https://trailofbits.github.io/algo/cloud-scaleway.html)
register: _scaleway_org
when: scaleway_org is undefined

- pause:
prompt: |
Expand Down

0 comments on commit 4ddaef4

Please sign in to comment.