-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add LinkWarden role #326
Add LinkWarden role #326
Conversation
Introduce a new Ansible role for LinkWarden, setting up default variables for Docker deployment, such as container name, image, environment variables, and networks. Included tasks handle PostgreSQL dependency, DNS setup, container management, and directory creation. This addition allows for LinkWarden deployment and maintenance in the Sandbox environment. <3 GPT Relevant issue: saltyorg#324
Updated the DATABASE_URL environment variable to dynamically use the specific `linkwarden_name` value rather than a hardcoded database name.
|
Hey @owine, I saw this late last night, I'll get on it in a bit, thanks for pointing it out. I used vs codes "Change All Occurences" thing to fix the |
Improved the readability of the URL construction logic in the linkwarden role defaults by removing excess whitespace. This change ensures that the web URL is generated cleanly when the subdomain is present. No functionality is altered, just a cosmetic fix that enhances code maintainability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should do it!
Changed postgres formatting to match some changes I made to others to expose more items as inventory vars. Can you just do a quick test on those @RaneyDazed and this should be good to merge |
I'll take a look later tonight! Gotta start on my final for social science :p |
not working. will pull up pgadmin or something in a bit and take a look! Datasource "db": PostgreSQL database "linkwarden", schema "public" at "linkwarden-postgres:5432"
Error: P1000: Authentication failed against database server at `linkwarden-postgres`, the provided database credentials for `linkwarden` are not valid.
Please make sure to provide valid database credentials for the database server at `linkwarden-postgres`.
error Command failed with exit code 1. |
Did you put it against a clean setup or your existing instance? Wouldn't expect it to work against existing since it's setting up a user/pass for auth instead of using defaults |
clean install, removed the existing linkwarden dir. ran update tag. linkwarden and linkwarden-postgres are both pulled, PG is up and running, but LW is in a restart loop. |
actually ran |
I see the error, fix coming |
standby, I only changed the one variable in postgres include. updating to reflect your changes in defaults as well. testing rn |
All set! |
Add LinkWarden role with default configs and tasks
Introduce a new Ansible role for LinkWarden, setting up default
variables for Docker deployment, such as container name, image,
environment variables, and networks. Included tasks handle PostgreSQL dependency, DNS setup, container management, and directory creation. This addition allows for LinkWarden deployment and maintenance in the
Sandbox environment.
<3 GPT
Relevant issue: #324