Skip to content

Commit 84b17fe

Browse files
committed
fluffy: deploy fluffy on DO droplet
Referenced issue: #221 Signed-off-by: markoburcul <[email protected]>
1 parent c4124f4 commit 84b17fe

File tree

8 files changed

+69
-2
lines changed

8 files changed

+69
-2
lines changed

ansible/fluffy.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- name: Configure Nimbus Fluffy nodes
1313
become: true
1414
hosts:
15-
- nimbus.fluffy
15+
- nimbus-fluffy-metal
1616
roles:
1717
# Extra 32 IPv4 addresses for each of the nodes on the host.
1818
- { role: update-netplan, tags: update-netplan }
@@ -37,3 +37,13 @@
3737
- { role: infra-role-open-ports, tags: open-ports }
3838
- { role: infra-role-nimbus-fluffy, tags: nimbus-fluffy }
3939
- { role: infra-role-portal-bridge, tags: portal-bridge }
40+
41+
- name: Configure Nimbus Fluffy droplet
42+
become: true
43+
hosts:
44+
- nimbus-fluffy-droplet
45+
roles:
46+
- { role: infra-role-swap-file, tags: swap-file }
47+
- { role: infra-role-open-ports, tags: open-ports }
48+
- { role: infra-role-smart-metrics, tags: smart-metrics }
49+
- { role: infra-role-nimbus-fluffy, tags: nimbus-fluffy }
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# Necessary in order to build fluffy on the droplet with 1GB RAM
3+
swap_file_size_mb: 6144
4+
5+
nimbus_fluffy_service_name: 'nimbus-fluffy-{{ nimbus_fluffy_network }}-{{ nimbus_fluffy_repo_branch }}-01'
6+
nimbus_fluffy_listening_port: 9100
7+
nimbus_fluffy_metrics_port: '9201'
8+
nimbus_fluffy_rpc_port: '9901'
9+
nimbus_fluffy_build_jobs: '1'
10+
# Testing how low we can go on the storage capacity
11+
nimbus_fluffy_storage_capacity: '2000'
12+
13+
open_ports_list:
14+
nimbus-fluffy:
15+
- { comment: 'Nimbus Fluffy', port: '{{ nimbus_fluffy_listening_port }}', protocol: 'udp' }
16+
- { comment: 'Nimbus Fluffy Metrics', port: '{{ nimbus_fluffy_metrics_port }}', ipset: 'hq.metrics', iifname: 'wg0', protocol: 'tcp' }

ansible/inventory/test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ neth-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.254 data_center=ih-eu-m
5151
neth-04.ih-eu-mda1.nimbus.holesky ansible_host=185.181.229.100 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-04.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky
5252
neth-05.ih-eu-mda1.nimbus.holesky ansible_host=185.181.229.103 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-05.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky
5353
node-01.aws-eu-central-1a.dash.nimbus ansible_host=52.28.100.116 data_center=aws-eu-central-1a dns_domain=status.im dns_entry=node-01.aws-eu-central-1a.dash.nimbus.status.im env=dash region=eu-central-1a stage=nimbus
54+
node-01.do-ams3.nimbus.fluffy ansible_host=143.244.196.233 data_center=do-ams3 dns_domain=status.im dns_entry=node-01.do-ams3.nimbus.fluffy.status.im env=nimbus region=ams3 stage=fluffy
5455
store-01.he-eu-hel1.logs.nimbus ansible_host=65.108.226.62 data_center=he-eu-hel1 dns_domain=status.im dns_entry=store-01.he-eu-hel1.logs.nimbus.status.im env=logs region=eu-hel1 stage=nimbus
5556
store-02.he-eu-hel1.logs.nimbus ansible_host=65.109.62.247 data_center=he-eu-hel1 dns_domain=status.im dns_entry=store-02.he-eu-hel1.logs.nimbus.status.im env=logs region=eu-hel1 stage=nimbus
5657
store-03.he-eu-hel1.logs.nimbus ansible_host=65.109.49.101 data_center=he-eu-hel1 dns_domain=status.im dns_entry=store-03.he-eu-hel1.logs.nimbus.status.im env=logs region=eu-hel1 stage=nimbus
@@ -65,6 +66,9 @@ node-01.aws-eu-central-1a.dash.nimbus
6566
[dash.nimbus]
6667
node-01.aws-eu-central-1a.dash.nimbus
6768

69+
[do-ams3]
70+
node-01.do-ams3.nimbus.fluffy
71+
6872
[he-eu-hel1]
6973
bench-01.he-eu-hel1.nimbus.eth1
7074
bench-02.he-eu-hel1.nimbus.eth1
@@ -134,6 +138,9 @@ bench-02.he-eu-hel1.nimbus.eth1
134138
[nimbus-eth1-metal]
135139
metal-01.ih-eu-mda1.nimbus.eth1
136140

141+
[nimbus-fluffy-droplet]
142+
node-01.do-ams3.nimbus.fluffy
143+
137144
[nimbus-fluffy-metal]
138145
metal-01.ih-eu-mda1.nimbus.fluffy
139146
metal-02.ih-eu-mda1.nimbus.fluffy
@@ -217,6 +224,7 @@ metal-01.ih-eu-mda1.nimbus.eth1
217224
[nimbus.fluffy]
218225
metal-01.ih-eu-mda1.nimbus.fluffy
219226
metal-02.ih-eu-mda1.nimbus.fluffy
227+
node-01.do-ams3.nimbus.fluffy
220228

221229
[nimbus.geth]
222230
holesky-01.ih-eu-mda1.nimbus.geth

ansible/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
- name: infra-role-nimbus-fluffy
5656
src: [email protected]:status-im/infra-role-nimbus-fluffy.git
57-
version: 4705f3d457d83fc7e9c3e6e25b2471bdec98dd6b
57+
version: 0b245e8781481fb4e1f6192b0633d97b48acd372
5858

5959
- name: infra-role-portal-bridge
6060
src: [email protected]:status-im/infra-role-portal-bridge.git

fluffy.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ module "nimbus_nodes_fluffy_innova" {
1818
"194.33.40.239", # metal-02.ih-eu-mda1.nimbus.fluffy
1919
]
2020
}
21+
22+
/* Testing instance for Fluffy deployment */
23+
module "fluffy_droplet" {
24+
source = "github.com/status-im/infra-tf-digital-ocean"
25+
env = "nimbus"
26+
stage = "fluffy"
27+
group = "nimbus-fluffy-droplet"
28+
type = "s-1vcpu-1gb"
29+
}

providers.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ provider "aws" {
44
secret_key = data.pass_password.aws_secret_key.password
55
}
66

7+
provider "digitalocean" {
8+
token = data.pass_password.digitalocean_token.password
9+
spaces_access_id = data.pass_password.digitalocean_spaces_id.password
10+
spaces_secret_key = data.pass_password.digitalocean_spaces_key.password
11+
}
12+
713
provider "google" {
814
credentials = data.pass_password.google_cloud_cred_json.full
915
project = "russia-servers"

secrets.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ data "pass_password" "aws_secret_key" {
2222
data "pass_password" "google_cloud_cred_json" {
2323
path = "cloud/GoogleCloud/json"
2424
}
25+
26+
/* Token for interacting with DigitalOcean API. */
27+
data "pass_password" "digitalocean_token" {
28+
path = "cloud/DigitalOcean/token"
29+
}
30+
31+
/* Access key for Digital Ocean Spaces API. */
32+
data "pass_password" "digitalocean_spaces_id" {
33+
path = "cloud/DigitalOcean/spaces-id"
34+
}
35+
36+
/* Secret key for Digital Ocean Spaces API. */
37+
data "pass_password" "digitalocean_spaces_key" {
38+
path = "cloud/DigitalOcean/spaces-key"
39+
}

versions.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ terraform {
1111
source = "camptocamp/pass"
1212
version = " = 2.1.1"
1313
}
14+
digitalocean = {
15+
source = "digitalocean/digitalocean"
16+
}
1417
}
1518
}

0 commit comments

Comments
 (0)