py-pve-cloud 0.0.3__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of py-pve-cloud might be problematic. Click here for more details.
- {py_pve_cloud-0.0.3/src/py_pve_cloud.egg-info → py_pve_cloud-0.0.4}/PKG-INFO +2 -1
- py_pve_cloud-0.0.4/README.md +21 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/pyproject.toml +3 -2
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/cli/pvclu.py +2 -2
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4/src/py_pve_cloud.egg-info}/PKG-INFO +2 -1
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/py_pve_cloud.egg-info/requires.txt +1 -0
- py_pve_cloud-0.0.3/README.md +0 -3
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/LICENSE +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/setup.cfg +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/cli/pvcli.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/lib/inventory.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/alchemy.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/alembic.ini +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/env.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/24a548bfce3e_len_rules_enforcements.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/27724e407e2b_proxy_fqdn.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/7868bcd05006_migrate_old.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/7dea8c4ee39f_init.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/944a8fd5d5bc_ext_ctrl_plns.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/d9b711555be8_ext_control_plane.py +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/py_pve_cloud.egg-info/SOURCES.txt +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/py_pve_cloud.egg-info/dependency_links.txt +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/py_pve_cloud.egg-info/entry_points.txt +0 -0
- {py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/py_pve_cloud.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-pve-cloud
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
|
|
5
5
|
License-Expression: GPL-3.0-or-later
|
|
6
6
|
License-File: LICENSE
|
|
@@ -8,4 +8,5 @@ Requires-Dist: PyYAML==6.0.2
|
|
|
8
8
|
Requires-Dist: psycopg2-binary==2.9.10
|
|
9
9
|
Requires-Dist: SQLAlchemy==2.0.43
|
|
10
10
|
Requires-Dist: alembic==1.16.5
|
|
11
|
+
Requires-Dist: proxmoxer==2.2.0
|
|
11
12
|
Dynamic: license-file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# py-pve-cloud
|
|
2
|
+
|
|
3
|
+
this is the core python library package that serves as a foundation for pve cloud.
|
|
4
|
+
|
|
5
|
+
## alembic orm
|
|
6
|
+
|
|
7
|
+
this project uses sqlalchemy + alembic integrated into the collection for management of the patroni database schema.
|
|
8
|
+
|
|
9
|
+
edit `src/orm/alchemy.py` database classes and run `alembic revision --auto-enerate -m "revision description"` from the orm folder, to commit your changes into the general migrations. before you need to do a `pip install .` to get the needed orm pypi packages.
|
|
10
|
+
|
|
11
|
+
you also need to `export PG_CONN_STR=postgresql+psycopg2://postgres:{{ patroni_postgres_pw }}@{{ proxy or master ip }}:{{ 5000 / 5432 }}/pve_cloud?sslmode=disable` env variable first with a testing database for alembic to work against. to create a new migration the database needs to be on the latest version, run `alembic upgrade head` to upgrade it.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Releasing to pypi
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install build twine
|
|
18
|
+
rm -rf dist
|
|
19
|
+
python3 -m build
|
|
20
|
+
python3 -m twine upload dist/*
|
|
21
|
+
```
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "py-pve-cloud"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.4"
|
|
8
8
|
authors = [{ name = "Tobias Huebner", email = "tobias.huebner@vmzberlin.com" }]
|
|
9
9
|
license = "GPL-3.0-or-later"
|
|
10
10
|
license-files = ["LICENSE"]
|
|
@@ -12,7 +12,8 @@ dependencies = [
|
|
|
12
12
|
"PyYAML==6.0.2",
|
|
13
13
|
"psycopg2-binary==2.9.10",
|
|
14
14
|
"SQLAlchemy==2.0.43",
|
|
15
|
-
"alembic==1.16.5"
|
|
15
|
+
"alembic==1.16.5",
|
|
16
|
+
"proxmoxer==2.2.0"
|
|
16
17
|
]
|
|
17
18
|
|
|
18
19
|
[tool.setuptools.package-data]
|
|
@@ -10,7 +10,7 @@ def get_cloud_domain(target_pve):
|
|
|
10
10
|
|
|
11
11
|
for pve_cloud in pve_inventory:
|
|
12
12
|
for pve_cluster in pve_inventory[pve_cloud]:
|
|
13
|
-
if pve_cluster == target_pve:
|
|
13
|
+
if pve_cluster + "." + pve_cloud == target_pve:
|
|
14
14
|
return pve_cloud
|
|
15
15
|
|
|
16
16
|
raise Exception(f"Could not identify cloud domain for {target_pve}")
|
|
@@ -26,7 +26,7 @@ def get_online_pve_host(target_pve):
|
|
|
26
26
|
|
|
27
27
|
for pve_cloud in pve_inventory:
|
|
28
28
|
for pve_cluster in pve_inventory[pve_cloud]:
|
|
29
|
-
if pve_cluster == target_pve:
|
|
29
|
+
if pve_cluster + "." + pve_cloud == target_pve:
|
|
30
30
|
for pve_host in pve_inventory[pve_cloud][pve_cluster]:
|
|
31
31
|
# check if host is available
|
|
32
32
|
pve_host_ip = pve_inventory[pve_cloud][pve_cluster][pve_host]["ansible_host"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-pve-cloud
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Author-email: Tobias Huebner <tobias.huebner@vmzberlin.com>
|
|
5
5
|
License-Expression: GPL-3.0-or-later
|
|
6
6
|
License-File: LICENSE
|
|
@@ -8,4 +8,5 @@ Requires-Dist: PyYAML==6.0.2
|
|
|
8
8
|
Requires-Dist: psycopg2-binary==2.9.10
|
|
9
9
|
Requires-Dist: SQLAlchemy==2.0.43
|
|
10
10
|
Requires-Dist: alembic==1.16.5
|
|
11
|
+
Requires-Dist: proxmoxer==2.2.0
|
|
11
12
|
Dynamic: license-file
|
py_pve_cloud-0.0.3/README.md
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py
RENAMED
|
File without changes
|
|
File without changes
|
{py_pve_cloud-0.0.3 → py_pve_cloud-0.0.4}/src/pve_cloud/orm/migrations/versions/7dea8c4ee39f_init.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|