-
Notifications
You must be signed in to change notification settings - Fork 40
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 possibilty to force install components #132
Comments
Hi @3sky Thank you for this well detailed case.
I do agree with you, we should have a way to pass Ansible extra vars from My idea is to add the new CLI option In this case, the command would be: $ edb-deployment <cloud-vendor> deploy -e '{"force_install": true}' What do you think? |
Thanks for fast response. $ edb-deployment <cloud-vendor> deploy \
--force-install=true \
--force_initdb=true
# and help
$ edb-deployment <cloud-vendor> deploy -h
usage: edb-deployment <cloud-vendor> deploy [-h] [-n] <project-name>
positional arguments:
<project-name> Project name
optional arguments:
-h, --help show this help message and exit
-n, --no-install-collection
Do not install the Ansible collection.
-f, --force-install
While installing components refresh repository cache. Default: false
-i, --force_initdb
Init DB after instalation. Default: true |
Good point, this is more user friendly. Considering this, I'll add both @vibhorkumar123 any comment? |
I think it makes sense to me. We also need to define different sets of force_* variables in ansible. Right now, |
To the 'deploy' sub-command. Fixes EnterpriseDB#132
Hi, I'm playing a bit with yours tool and it's really useful, thanks.
However I found, some use case which will be nice to improve IMO.
Let's assume that while run
edb-deployment configure
, unfortunately we provide typo in password. We realized that when we run ansible playbook, which fails. We change our user:password inansible_vars.json
. In second run we getFailed to download metadata for repo 'edb': Cannot download repomd.xml.
All because wrong initial configuration.
Original playbook has this option called
force_install
https://github.com/EnterpriseDB/edb-ansible/blob/master/roles/setup_repo/defaults/main.yml#L26. I will be nice to have it in yours tool.The simplest solution will be adding in line 615 of file postgres-deployment/edbdeploy/project.py
But it require manual change in ansible_vars. Maybe it should be managed via
--force
flag inedb-deployment deploy
? I'd like to know your opinion about that before implementation.The text was updated successfully, but these errors were encountered: