-
Notifications
You must be signed in to change notification settings - Fork 35
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
TVAULT-3311: Improve the deployment of TrilioVault to OpenStack-Ansible environments by using Ansible to automate as much as possible #343
base: master
Are you sure you want to change the base?
Conversation
rohit-keshri
commented
Aug 7, 2020
- name: remove temporary file - sync_static.py | ||
file: path=/tmp/sync_static.py state=absent | ||
- restart webserver | ||
when: ansible_distribution=="Ubuntu" |
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.
these file copying should get handled by the packaging.
copy will happen only if there is a virtualenv activated for horizon.
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.
As LXC container using virtual env
- shell: "{{virtual_env}} && {{PYTHON_VERSION}} {{ MANAGE_FILE }} shell < /tmp/sync_static1.py &> /dev/null" | ||
args: | ||
chdir: "{{HORIZON_PATH}}" | ||
- file: path=/tmp/sync_static1.py state=absent |
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.
we need to review this approach.
chdir: /tmp | ||
|
||
- name: Remove /tmp/remove_pip_packages.sh | ||
file: path="/tmp/remove_pip_packages.sh" state=absent |
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.
we won't require this. we dont use pip packages anymore
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.
code removed
@@ -4,19 +4,30 @@ | |||
update_cache: yes | |||
name: | |||
- tvault-horizon-plugin | |||
- python-workloadmgrclient | |||
- workloadmgrclient |
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.
mentioning wlmclient should not be required. uninstalling horizon-plugin should uninstall all the dependent pkgs.
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.
workloadmgrclient package removed from code
update_cache: yes | ||
name: | ||
- python3-tvault-horizon-plugin | ||
- python3-workloadmgrclient-el8 |
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.
mentioning wlmclient should not be required. uninstalling horizon-plugin should uninstall all the dependent pkgs.
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.
python3-workloadmgrclient-el8 removed for centos-8
pip uninstall pip -y | ||
else | ||
echo "pip and easy_install not available hence skipping trilio pip package cleanup." | ||
fi |
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.
Not Required
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.
remove_pip_package.sh file removed