Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Aug 10, 2024
1 parent 41d848a commit ca97728
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ To setup a new Tor public bridge at an existing recent Debian system (i.e. with
tor_port: 12345
```
Take a look at this [example](./examples/inventory.yaml) for an Ansible inventory.
1. deploy it
```bash
Expand Down
61 changes: 61 additions & 0 deletions examples/inventory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
all:
vars:
ansible_ssh_private_key_file: "/home/whoami/.ssh/id_ed25519"
metrics_port: "{{ range(16000, 60999) | random(seed=seed_metrics + seed_host) }}"
prometheus_server: "1.2.3.4"
seed_host: "{{ inventory_hostname + ansible_facts.default_ipv4.address + ansible_facts.default_ipv6.address }}"

misc:
children:
misc_hetzner:

tor:
vars:
torrc_config_all:
- name: "ContactInfo"
value: >-
email:a.b[]c.d
url:https://me.net/
proof:uri-rsa abuse:abuse[]me.net
gpg:1234...
ciissversion:2
- name: "Nickname"
value: "{{ ('gnampf4' + inventory_hostname | replace('-', ''))[0:19] }}"
tor_metrics: true
tor_port: "{{ range(16000, 60999) | random(seed=seed_tor_port + seed_host) }}"
children:
private:
public:
server:

private:
vars:
bridge_distribution: "none"
children:

public:
vars:
bridge_distribution: "any"
children:
public_hetzner:
public_ionos:

# for exits:
# additional_software:
# - "dns-root-data"
# - "unbound"
server:
vars:
bridge_distribution: ""
firewall_use_ddos: true
node_metrics: true
children:
server_ionos:
server_test:

snowflake:
vars:
snowflake_metrics: true
children:
snowflake_ionos:

0 comments on commit ca97728

Please sign in to comment.