- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise Software
- >
- Python venv ephemeral
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 05:42 AM
05-24-2023 05:42 AM
Python venv ephemeral
Hi,
I’m looking to dynamically change IaC in Git based on user input. We then run that new code. I’m not sure of another way of doing this but I was going to use GitPython in a Python task but I need to set Git credentials or the key. Obviously if the venv is shared across the box I may expose credentials to other users. If venvs are like previous version of Ansible Tower that have ephemeral venvs or at least venvs per user/task then I haven’t set global Git credentials.
So is the Python venv shared? I was also wondering with one or multiple venvs running multiple Python tasks doesn’t it create GIL issues?
Thanks Mark
- Tags:
- Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 01:24 AM
05-25-2023 01:24 AM
Re: Python venv ephemeral
Perfect thanks, that is how I assumed things worked but I’m new to Morpheus.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 08:28 AM
05-24-2023 08:28 AM
Re: Python venv ephemeral
The venv for Morpheus Python tasks is dynamically created each time the task is run. If you need to set a git SSH private key up to have GitPython use it, you may have to create a file, have GitPython reference it for the SSH authentication and clean it up afterward. The private key could be retrieved from the Morpheus Cypher and used in your Python code.