-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add start playbooks and network config.
- Loading branch information
Showing
8 changed files
with
132 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,7 @@ collections/* | |
# Ignore OS generated files | ||
Thumbs.db | ||
.DS_Store | ||
|
||
*.env | ||
node_secrets.yml | ||
hosts.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# network vars | used in ansible playbook - these should not be changed | ||
ten_network: "sepolia" | ||
loki_metrics_uri: "https://metrics.ten.xyz:3443/loki/api/v1/push" | ||
loki_username: "ten" | ||
loki_password: "ten" | ||
enclave_docker_build_tag: "testnetobscuronet.azurecr.io/obscuronet/enclave:v0.27.0" | ||
host_docker_build_tag: "testnetobscuronet.azurecr.io/obscuronet/host:v0.27.0" | ||
l2_batch_interval: "1s" | ||
l2_max_batch_interval: "1s" | ||
l2_rollup_interval: "15m" | ||
l1_chain_id: 11155111 | ||
management_contract_addr: "0x1407D9175cA2075df838b4F6C91850120eB6c4F7" | ||
message_bus_contract_addr: "0xA76aDeb99F1d45fBBBA7a7a89Ec73aE0B1A6B9E4" | ||
l1_start_hash: "0x4ae3e71c18ad69255c47399a71b3f5992ab507996d5d5a7481629390a2c825ce" | ||
sequencer_addr: "obscuronode-0-sepolia-testnet-1017.uksouth.cloudapp.azure.com:10000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
HOST_ID=<your validator wallet public key> | ||
PRIVATE_KEY=<private key matching above HOST_ID> | ||
HOST_PUBLIC_P2P_ADDR=<externally resolvable IP or DNS name> | ||
HOST_P2P_PORT=<port for above HOST_PUBLIC_P2P_ADDR> | ||
L1_WS_URL=<ws to l1 node, i.e. geth or infura> | ||
LOG_LEVEL=<logging depth> | ||
POSTGRES_DB_HOST=<your postgres instance if using external> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[local] | ||
localhost ansible_connection=local | ||
|
||
[ten-validator] | ||
xxx.xxx.xxx.xxx # host or ip of your VM | ||
|
||
[ten-validator:vars] | ||
ansible_user=tenuser | ||
ansible_ssh_private_key_file=../terraform/ssh-key.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- name: Setup validator dependencies | ||
hosts: ten-validator | ||
become: true | ||
tasks: | ||
- name: Download Docker installation script | ||
ansible.builtin.get_url: | ||
url: https://get.docker.com | ||
dest: /tmp/get-docker.sh | ||
mode: '0755' | ||
|
||
- name: Execute Docker installation script | ||
ansible.builtin.command: sh /tmp/get-docker.sh | ||
args: | ||
creates: /usr/bin/docker | ||
|
||
- name: Ensure Docker is started and enabled | ||
ansible.builtin.systemd: | ||
name: docker | ||
enabled: true | ||
state: started | ||
|
||
- name: Add current user to the Docker group (optional) | ||
ansible.builtin.user: | ||
name: "{{ ansible_user }}" | ||
groups: docker | ||
append: true | ||
|
||
- name: Install go | ||
ansible.builtin.apt: | ||
name: golang | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# script to clear terraform state | ||
|
||
terraform destroy -auto-approve | ||
rm -rf .terraform* | ||
rm -rf terraform.tfstate* |