mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-13 16:23:00 +02:00
finalize debugging and successfully created instance on exoscale
This commit is contained in:
parent
2ab2c1d368
commit
d9c04deef5
2 changed files with 23 additions and 3 deletions
20
docs/cloud-cloudstack.md
Normal file
20
docs/cloud-cloudstack.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
### Configuration file
|
||||||
|
|
||||||
|
You need to create a configuration file in INI format with your api key in `$HOME/.cloudstack.ini`
|
||||||
|
|
||||||
|
```
|
||||||
|
[cloudstack]
|
||||||
|
endpoint = <endpoint>
|
||||||
|
key = <your api key>
|
||||||
|
secret = <your secret>
|
||||||
|
timeout = 30
|
||||||
|
```
|
||||||
|
Example for Exoscale (European cloud provider exposing CloudStack API), visit https://portal.exoscale.com/u/<your account>/account/profile/api to gather the required information:
|
||||||
|
|
||||||
|
```
|
||||||
|
[cloudstack]
|
||||||
|
endpoint = https://api.exoscale.com/compute
|
||||||
|
key = <your api key>
|
||||||
|
secret = <your secret>
|
||||||
|
timeout = 30
|
||||||
|
```
|
|
@ -32,7 +32,7 @@
|
||||||
local_action:
|
local_action:
|
||||||
module: cs_sshkeypair
|
module: cs_sshkeypair
|
||||||
name: "{{ SSH_keys.comment|regex_replace('@', '_') }}"
|
name: "{{ SSH_keys.comment|regex_replace('@', '_') }}"
|
||||||
public_key: "{{ SSH_keys.public }}"
|
public_key: "{{ lookup('file', '{{ SSH_keys.public }}') }}"
|
||||||
register: cs_keypair
|
register: cs_keypair
|
||||||
|
|
||||||
- name: Set facts
|
- name: Set facts
|
||||||
|
@ -47,10 +47,10 @@
|
||||||
module: cs_instance
|
module: cs_instance
|
||||||
name: "{{ algo_server_name }}"
|
name: "{{ algo_server_name }}"
|
||||||
root_disk_size: "{{ disk }}"
|
root_disk_size: "{{ disk }}"
|
||||||
image: "{{ image_id }}"
|
template: "{{ image_id }}"
|
||||||
ssh_key: "{{ keypair_name }}"
|
ssh_key: "{{ keypair_name }}"
|
||||||
security_groups: "{{ cs_security_group.name }}"
|
security_groups: "{{ cs_security_group.name }}"
|
||||||
zone: "{{ _algo_region }}"
|
zone: "{{ _algo_region.user_input }}"
|
||||||
register: cs_server
|
register: cs_server
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
|
|
Loading…
Add table
Reference in a new issue