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

Commit

Permalink
Merge pull request #142 from ipfs/edge
Browse files Browse the repository at this point in the history
solarnet: add edge hosts namaka and hiiaka
  • Loading branch information
Lars Gierth committed Dec 29, 2015
2 parents 8a5a624 + db32595 commit 4314026
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
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

0 comments on commit 4314026

Please sign in to comment.