https://github.com/suse/shaptools
Project to expose SAP HANA and Clusterlabs HA cluster features easily and in a standardized way.
https://github.com/suse/shaptools
Last synced: 5 months ago
JSON representation
Project to expose SAP HANA and Clusterlabs HA cluster features easily and in a standardized way.
- Host: GitHub
- URL: https://github.com/suse/shaptools
- Owner: SUSE
- License: apache-2.0
- Created: 2018-11-15T15:58:57.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T08:05:40.000Z (over 1 year ago)
- Last Synced: 2024-04-07T01:37:49.395Z (about 1 year ago)
- Language: Python
- Size: 322 KB
- Stars: 17
- Watchers: 17
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/SUSE/shaptools/actions/workflows/shaptools-ci.yml)
[](https://codeclimate.com/github/SUSE/shaptools/maintainability)
[](https://codeclimate.com/github/SUSE/shaptools/test_coverage)# SHAPTOOLS
Project created to expose an API with the SAP HANA platform major functionalities.
The main idea is to have an easy and friendly environment to deploy and configure
the SAP HANA environment and enable System replication feature.Example of how to use the package:
```python
from shaptools import hanah = hana.HanaInstance('prd', '00', 'Qwerty1234')
if not h.is_installed():
conf_file = hana.HanaInstance.create_conf_file(
'/sap_inst/51052481', '/home/myuser/hana.conf', 'root', 'root')
hana.HanaInstance.update_conf_file(
conf_file, sid='PRD', password='Qwerty1234', system_user_password='Qwerty1234')
hana.HanaInstance.install('/sap_inst/51052481', conf_file, 'root', 'root')if not h.is_running():
h.start()state = h.get_sr_state()
h.create_user_key(
'backupkey', 'hana01:30013', 'SYSTEM', 'Qwerty1234', 'SYSTEMDB')
h.create_backup('SYSTEMDB', 'backup', 'backupkey', 'SYSTEM', 'Qwerty1234')
h.sr_enable_primary('NUREMBERG')
```## Installation
To install the **shaptools** package run the pip command:
pip install .
To install it in a development state run:
pip install -e .
## Dependencies
List of dependencies are specified in the ["Requirements file"](requirements.txt). Items can be installed using pip:
pip install -r requirements.txt
## License
See the [LICENSE](LICENSE) file for license rights and limitations.
## Author
Xabier Arbulu Insausti ([email protected])
## Reviewers
_Pull request_ preferred reviewers for this project:
- Xabier Arbulu Insausti ([email protected])