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

solarnet: set up authorized_keys #27

Merged
merged 2 commits into from
Jul 2, 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
2 changes: 2 additions & 0 deletions solarnet/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
- authorized_key: 'user=root key="{{ item }}"'
with_items: "{{ authorized_keys }}"
- command: apt-get install -y mosh vim htop screen bridge-utils build-essential autoconf libtool bison flex nodejs
- file:
src: /usr/bin/nodejs
Expand Down
31 changes: 28 additions & 3 deletions solarnet/secrets.yml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
---
cjdns_identities: {}
cjdns_udp_interfaces: []
metrics_whitelist: []
# root ssh keys deployed to each host
authorized_keys:
- "ssh-ed25519 AAAACfoobar1234 some-name"

# the cryptographic and network identity of each host with the cjdns role
# each of them will also be allowed to access /debug on others.
cjdns_identities:
some_ansible_hostname:
private_key: the-cjdns-private-key
ipv6: fc12::3456

# interfaces for incoming and outgoing UDP peering
# it's useful to add a comment with contact/location information for each peer
cjdns_udp_interfaces:
- bind: 0.0.0.0:54321
peers:
- connect_to: 1.2.3.4:65432
public_key: the-peers-public-key.k
password: the-password
- bind: [::]:54321
peers:
- connect_to: [1234::56]:65432
public_key: the-peers-public-key.k
password: the-password

# additional hosts allowed to access /debug
metrics_whitelist:
- fc65::4321