Repository navigation
feat(silo): deploy the single-container image and add silo-migrate #581
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
893ec08
feat(silo): deploy the single-container image
After-Shock 61e6e8b
feat(silo_migrate): add migration from the multi-container role
After-Shock 8fcd60a
fix(silo_migrate): resolve legacy settings the way the legacy role did
After-Shock 01417b5
feat(silo): carry over installs that use an external database
After-Shock dbccc1a
fix(silo_migrate): define row count read failure with failed_when ins…
After-Shock 4445381
update announcement date
keldian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,5 @@ ignored_roles: | |
| - "n8n_runner" | ||
| - "plex_auto_languages" | ||
| - "sanity_check" | ||
| - "silo_migrate" | ||
| - "sure_worker" | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| ########################################################################## | ||
| # Title: Sandbox: Silo Migrate | Default Variables # | ||
| # Author(s): After-Shock # | ||
| # URL: https://github.com/saltyorg/Sandbox # | ||
| # -- # | ||
| ########################################################################## | ||
| # GNU General Public License v3.0 # | ||
| ########################################################################## | ||
| --- | ||
| ################################ | ||
| # Basics | ||
| ################################ | ||
|
|
||
| silo_migrate_name: silo-migrate | ||
|
|
||
| ################################ | ||
| # Settings | ||
| ################################ | ||
|
|
||
| # Whether the legacy Silo installation deployed its own PostgreSQL container | ||
| silo_migrate_role_postgres_deploy: "{{ lookup('role_var', '_postgres_deploy', role='silo', default=true) }}" | ||
| # Skip docs | ||
| silo_migrate_role_validation_query: "SELECT (SELECT count(*) FROM users), (SELECT count(*) FROM media_items), (SELECT count(*) FROM user_watch_history), (SELECT count(*) FROM user_watch_progress)" | ||
|
|
||
| ################################ | ||
| # Postgres | ||
| ################################ | ||
|
|
||
| silo_migrate_role_postgres_name: "{{ lookup('role_var', '_postgres_name', role='silo', default=silo_name + '-postgres') }}" | ||
| silo_migrate_role_postgres_user: "{{ lookup('role_var', '_postgres_user', role='silo', default='') }}" | ||
| silo_migrate_role_postgres_password: "{{ lookup('role_var', '_postgres_password', role='silo', default='') }}" | ||
| # Skip docs | ||
| silo_migrate_role_postgres_user_lookup: "{{ lookup('role_var', '_postgres_user', role='silo_migrate', default=lookup('role_var', '_docker_env_user', role='postgres'), default_if_empty=true) }}" | ||
| silo_migrate_role_postgres_docker_env_db: "{{ lookup('role_var', '_postgres_docker_env_db', role='silo', default='silo') }}" | ||
| silo_migrate_role_postgres_docker_image_repo: "{{ lookup('role_var', '_postgres_docker_image_repo', role='silo', default='pgvector/pgvector') }}" | ||
| silo_migrate_role_postgres_docker_image_tag: "{{ lookup('role_var', '_postgres_docker_image_tag', role='silo', default='pg18') }}" | ||
| silo_migrate_role_postgres_docker_shm_size: "{{ lookup('role_var', '_postgres_docker_shm_size', role='silo', default='8G') }}" | ||
| silo_migrate_role_postgres_docker_healthcheck: | ||
| test: | ||
| - "CMD" | ||
| - "pg_isready" | ||
| - "-d" | ||
| - "{{ lookup('role_var', '_postgres_docker_env_db', role='silo_migrate') }}" | ||
| - "-U" | ||
| - "{{ lookup('role_var', '_postgres_user_lookup', role='silo_migrate') }}" | ||
| start_period: 20s | ||
| interval: 30s | ||
| retries: 5 | ||
| timeout: 5s | ||
| silo_migrate_role_postgres_paths_folder: "{{ lookup('role_var', '_postgres_paths_folder', role='silo', default=silo_name) }}" | ||
| silo_migrate_role_postgres_paths_location: "{{ lookup('role_var', '_postgres_paths_location', role='silo', default=server_appdata_path + '/' + lookup('role_var', '_postgres_paths_folder', role='silo_migrate') + '/postgres') }}" | ||
| # Connection string of an external PostgreSQL database used by the legacy Silo installation | ||
| silo_migrate_role_database_url: "{{ lookup('role_var', '_database_url', role='silo', default='') }}" | ||
| # Skip docs | ||
| silo_migrate_role_database_external_lookup: "{{ lookup('role_var', '_database_url', role='silo_migrate') | trim | length > 0 }}" | ||
|
|
||
| ################################ | ||
| # Redis | ||
| ################################ | ||
|
|
||
| silo_migrate_role_redis_name: "{{ lookup('role_var', '_redis_name', role='silo', default=silo_name + '-redis') }}" |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.