Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/ansible deployment tags #676

Open
wants to merge 9 commits into
base: v1.0-dev
Choose a base branch
from

Conversation

vivekgsharma
Copy link
Contributor

@vivekgsharma vivekgsharma commented Feb 25, 2025

Added tags to deploy.yml to better structure and allow selective execution of tasks. This improves maintainability and provides flexibility when running the playbook.

Issue being fixed or feature implemented

Added tags to deploy.yml to better structure and allow selective execution of tasks. This improves maintainability and provides flexibility when running the playbook.

What was done?

  • Introduced full_deploy tag for executing the entire playbook at once.
  • Added categorized tags for better task selection:
    • Infrastructure setup (docker, AWS, Python, etc) (infra_setup)
    • Masternode updates (update_masternodes)
    • HP Masternode updates (update_hp_masternodes)
    • Masternode unbanning (unban_masternodes)
    • HP Masternode unbanning (unban_hp_masternodes)
    • Core updates (core_update)
    • Platform updates (platform_update)
    • Monitoring & Logging (monitoring, logging)
    • Tenderdash update (update_seed_nodes)
    • Cleanup (cleanup)

How Has This Been Tested?

Enter any of the above tags to selectively deploy parts of the playbook.
Below are some example executions that were tested:

./bin/deploy -p testnet --tags=unban_masternodes,unban_hp_masternodes
./bin/deploy -p testnet --tags=unban_masternodes
./bin/deploy -p testnet # Deploys the full playbook (default behavior)

Breaking Changes

No breaking changes. It has been tested from the deployment server.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@@ -286,12 +344,19 @@
- role: dashmate
- role: mn_status_report
- role: metricbeat
tags:
- full_deploy
- platform_update
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to do this more than once, maybe once in a blue moon when Pasta requires it... leave it as just full_deploy for now

Sign up for free to 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.

2 participants