Skip to content

ci: deploy batcher with ansible - #1384

Merged
JuArce merged 37 commits into
stagingfrom
1344-ci-improve-servers-setup
Nov 13, 2024
Merged

ci: deploy batcher with ansible#1384
JuArce merged 37 commits into
stagingfrom
1344-ci-improve-servers-setup

Conversation

@JuArce

@JuArceJuArce commented Nov 5, 2024

Copy link
Copy Markdown
Collaborator

Ansible setup for Batcher

Note

This PR also adds common files for all components, like setup.yaml, webserver.yaml, etc.

Description

This PR adds the setup for the Batcher

The current inventory is set to deploy the Batcher to aligned-holesky-stage-1 server.

How to Test

Follow the README instructions

  1. First create the env files:
make ansible_batcher_create_env
  1. Then complete the env files.

  2. Deploy the Batcher

make ansible_batcher_deploy INVENTORY=./infra/ansible/stage_inventory.yaml KEYSTORE=<>

Type of change

  • CI

JuArceand others added 30 commits October 21, 2024 15:35
…ansible
# Conflicts:
#	infra/ansible/eigenlayer-cli.yaml
#	infra/ansible/rust.yaml
#	infra/ansible/setup.yaml
fix: run playbooks as ansible_user
@JuArce
JuArce changed the base branch from testnet to stagingNovember 5, 2024 21:04
@JuArceJuArce changed the title ci: improve servers setupci: improve servers setup for batcher aggregator and operatorNov 5, 2024
@JuArceJuArce changed the title ci: improve servers setup for batcher aggregator and operatorci: deploy batcher with ansibleNov 12, 2024
@JuArce
JuArce marked this pull request as ready for review November 12, 2024 18:05
@JuArceJuArce self-assigned this Nov 12, 2024
Comment on lines +50 to +54
- name: Compile all FFIs
become: true
shell:
chdir: /home/{{ app_user }}/repos/aggregator/aligned_layer
cmd: sudo -u {{ app_user }} . /home/{{ app_user }}/.profile && sudo -u {{ app_user }} make build_all_ffi_linux

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using sudo -u, why not use become: {{ app_user }}?

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file will be refactored in #1387

recursive: false

# Build the batcher
- name: Install deps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be missing a become: {{ ansible_user }} here?

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not needed I think

@uri-99uri-99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are 2 values missing in batcher config yaml
it is not good i need to specify directory of keystore in the server, it shouldnt change

@JuArceJuArce mentioned this pull request Nov 13, 2024
1 task
Comment threadinfra/ansible/playbooks/docker.yaml Outdated
Comment threadinfra/ansible/playbooks/operator.yaml
Comment threadinfra/services/avs-sync.service Outdated
Comment threadinfra/services/explorer.service Outdated
Comment threadinfra/services/operator-1.service Outdated
Comment threadinfra/services/prometheus.service Outdated
Comment threadinfra/services/telemetry.service Outdated
Comment threadinfra/services/tracker.service Outdated
Comment threadinfra/ansible/playbooks/batcher.yaml Outdated

@MarcosNicolauMarcosNicolau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything worked fine, only I had to change the batcher git version.

fix: set batcher version to v0.10.2
@JuArce
JuArce added this pull request to the merge queueNov 13, 2024
Merged via the queue into staging with commit ba24ebaNov 13, 2024
@JuArce
JuArce deleted the 1344-ci-improve-servers-setup branch November 13, 2024 17:40
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: improve servers setup

5 participants

@JuArce@Oppen@uri-99@MarcosNicolau@klaus993