mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 23:53:58 +02:00
Use the right language for GCE
This commit is contained in:
parent
0fd0de17d4
commit
52855c9e3f
2 changed files with 4 additions and 4 deletions
2
algo
2
algo
|
@ -13,7 +13,7 @@ algo_provisioning () {
|
||||||
What provider would you like to use?
|
What provider would you like to use?
|
||||||
1. DigitalOcean
|
1. DigitalOcean
|
||||||
2. Amazon EC2
|
2. Amazon EC2
|
||||||
3. Google Cloud Engine
|
3. Google Compute Engine
|
||||||
4. Remote installation (install to existing Ubuntu server)
|
4. Remote installation (install to existing Ubuntu server)
|
||||||
|
|
||||||
Enter the number of your desired provider
|
Enter the number of your desired provider
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
credentials_file_lookup: "{{ lookup('file', '{{ credentials_file }}') }}"
|
credentials_file_lookup: "{{ lookup('file', '{{ credentials_file }}') }}"
|
||||||
ssh_public_key_lookup: "{{ lookup('file', '{{ ssh_public_key }}') }}"
|
ssh_public_key_lookup: "{{ lookup('file', '{{ ssh_public_key }}') }}"
|
||||||
|
|
||||||
- name: "Creating a droplet..."
|
- name: "Creating a new instance..."
|
||||||
gce:
|
gce:
|
||||||
instance_names: "{{ server_name }}"
|
instance_names: "{{ server_name }}"
|
||||||
zone: "{{ zones[zone] }}"
|
zone: "{{ zones[zone] }}"
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
metadata: '{"sshKeys":"root:{{ ssh_public_key_lookup }}"}'
|
metadata: '{"sshKeys":"root:{{ ssh_public_key_lookup }}"}'
|
||||||
register: google_vm
|
register: google_vm
|
||||||
|
|
||||||
- name: Add the droplet to an inventory group
|
- name: Add the instance to an inventory group
|
||||||
add_host:
|
add_host:
|
||||||
name: "{{ google_vm.instance_data[0].public_ip}}"
|
name: "{{ google_vm.instance_data[0].public_ip}}"
|
||||||
groups: vpn-host
|
groups: vpn-host
|
||||||
|
@ -35,5 +35,5 @@
|
||||||
credentials_file: "{{ credentials_file }}"
|
credentials_file: "{{ credentials_file }}"
|
||||||
project_id: "{{ credentials_file_lookup.project_id }}"
|
project_id: "{{ credentials_file_lookup.project_id }}"
|
||||||
|
|
||||||
- name: Wait for SSH to become available
|
- name: Waiting for SSH to become available
|
||||||
local_action: "wait_for port=22 host={{ google_vm.instance_data[0].public_ip }} timeout=320"
|
local_action: "wait_for port=22 host={{ google_vm.instance_data[0].public_ip }} timeout=320"
|
||||||
|
|
Loading…
Add table
Reference in a new issue