Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

solarnet: add edge hosts namaka and hiiaka #142

Merged
2 commits merged into from
Dec 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions solarnet/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ castor ansible_ssh_host=37.59.33.238 ipfs_storage_space=6900G ipfs_ref=2df7
biham ansible_ssh_host=188.40.114.11 ipfs_storage_space=16600G ipfs_ref=5bf3a590111c8afcb478bd678e93c5f6451bb600
nihal ansible_ssh_host=188.40.116.66 ipfs_storage_space=16600G ipfs_ref=2df7a082051c07bf6a0ba889acf92dd383d857ac

[edge]
namaka ansible_ssh_host=fc86:e60a:a9f2:92b0:14bb:cf0b:6ac7:6bc4 ipfs_storage_space=40G ipfs_ref=5bf3a590111c8afcb478bd678e93c5f6451bb600
hiiaka ansible_ssh_host=fc34:a1be:f784:e564:fe9a:1f9b:7e40:9ca ipfs_storage_space=40G

[dev040]
pluto
castor
pollux
biham
nihal
namaka
1 change: 1 addition & 0 deletions solarnet/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- hosts:
- gateway
- storage
- edge
serial: "25%"
vars:
gateway_group: gateway
Expand Down
1 change: 1 addition & 0 deletions solarnet/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
gateway_targets: "{{ groups.gateway }}"
storage_targets: "{{ groups.storage }}"
metrics_targets: "{{ groups.metrics }}"
edge_targets: "{{ groups.edge }}"
pre_tasks:
- include_vars: secrets_plaintext/secrets.yml
handlers:
Expand Down
9 changes: 8 additions & 1 deletion solarnet/roles/cjdns/templates/cjdroute.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
}
},
{% endfor %}
]
],
"ETHInterface" : [
{
"beacon": 2,
"bind": "eth0",
"connectTo": {}
}
]
},
"authorizedPasswords": [
{% for user in cjdns_authorized_passwords.keys() %}
Expand Down
10 changes: 10 additions & 0 deletions solarnet/roles/metrics/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ scrape_configs:
host: '{{ hostname }}'
{% endfor %}

- job_name: 'edge'
metrics_path: '/debug/metrics/prometheus'
target_groups:
{% for hostname in edge_targets %}
- targets:
- '[{{ cjdns_identities[hostname].ipv6 }}]:5001'
labels:
host: '{{ hostname }}'
{% endfor %}

- job_name: 'host'
metrics_path: '/metrics'
target_groups:
Expand Down