Add KUI tasks#273
Open
ccoulombe wants to merge 9 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an Ansible role to install and configure the GalaxyProject KUI script on DB servers, including installing the Google Cloud SDK and scheduling a monthly run on production hosts only.
Changes:
- New
usegalaxy_ca.kuirole to install Google Cloud CLI, fetch/pinkui.sh, and patch its configuration variables. - Adds a monthly cron job (1st day of month at 01:00) to run the script and append logs.
- Wires the role into
ansible/all.ymlwithwhen: inventory_hostname.startswith('prod-')and opt-inkuitagging.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| ansible/roles/usegalaxy_ca.kui/tasks/main.yml | Installs Google Cloud CLI, downloads/configures kui.sh, creates log directory, and sets the monthly cron job. |
| ansible/roles/usegalaxy_ca.kui/defaults/main.yml | Provides default BigQuery table names for KUI configuration. |
| ansible/all.yml | Adds the usegalaxy_ca.kui role to the dbservers play, gated to prod hosts and tagged for manual runs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Charles Coulombe <ccoulombe@users.noreply.github.com>
Signed-off-by: Charles Coulombe <ccoulombe@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Install Google Cloud SDK
Fetch the KUI script
Update it accordingly
And set a cron job to each month at 1am
This should only be ran on
prod.This can be run manually with: