This repository was archived by the owner on Jun 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathdigitalocean.yml
79 lines (69 loc) · 3.2 KB
/
digitalocean.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
- name: Provision the DigitalOcean Server
# =======================================
hosts: localhost
connection: local
gather_facts: yes
vars:
regions:
"1": "ams2"
"2": "ams3"
"3": "blr1"
"4": "fra1"
"5": "lon1"
"6": "nyc1"
"7": "nyc2"
"8": "nyc3"
"9": "sfo1"
"10": "sfo2"
"11": "sgp1"
"12": "tor1"
vars_prompt:
- name: "do_region"
prompt: >
What region should the server be located in?
1. Amsterdam (Datacenter 2)
2. Amsterdam (Datacenter 3)
3. Bangalore
4. Frankfurt
5. London
6. New York (Datacenter 1)
7. New York (Datacenter 2)
8. New York (Datacenter 3)
9. San Francisco (Datacenter 1)
10. San Francisco (Datacenter 2)
11. Singapore
12. Toronto
Please choose the number of your region. Press enter for default (#2) region.
default: "2"
private: no
- name: "do_server_name"
prompt: "\nWhat should the server be named? Press enter for default (streisand).\n"
default: "streisand"
private: no
- name: "do_access_token_entry"
prompt: |
Personal Access Tokens allow Streisand to create a droplet for you.
New Personal Access Tokens can be generated in the DigitalOcean control panel.
To generate a new token please do the following:
* Go to https://cloud.digitalocean.com/settings/applications
* Click 'Generate New Token'
* Give the token a name (it is arbitrary)
* Be sure to select the 'Write' scope as well (this is not optional)
* Click 'Generate Token'
* Copy the long string that is generated and paste it below.
If this field is left blank, the environment variable DO_API_KEY will be used.
What is your DigitalOcean Personal Access Token?
private: no
- name: "do_ssh_name"
prompt: "\n\nThe following information can be found on your DigitalOcean control panel.\nhttps://cloud.digitalocean.com/settings/security\n\nWhat is the name of the DigitalOcean SSH key that you would like to use?\n * If you have never uploaded an SSH key to DigitalOcean then the default\n value will work!\n * This key should match your Streisand SSH key file (default: ~/.ssh/id_rsa.pub).\n\ * DigitalOcean requires SSH keys to be unique. You cannot upload multiple\n keys that have the same value under different names.\n\n If you see an error that says 'SSH Key failed to be created' once the setup\n process starts, then this is the problem. You can retry the setup process\n using the name of the existing SSH key from the DigitalOcean control panel\n that matches the contents of your RSA public key.\n"
default: "streisand"
private: no
- name: "confirmation"
prompt: "\nStreisand will now set up your server. This process usually takes around ten minutes. Press Enter to begin setup...\n"
roles:
- genesis-digitalocean
- import_playbook: ssh-setup.yml
- import_playbook: cloud-status.yml
- import_playbook: streisand.yml
...