Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

rohit-keshri
Copy link
Contributor

TVAULT-3311-horigin-plugin-installation

@rohit-keshri
Copy link
Contributor Author

multiple-horizon-container

- name: remove temporary file - sync_static.py
file: path=/tmp/sync_static.py state=absent
- restart webserver
when: ansible_distribution=="Ubuntu"
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not Required

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants