py-pve-cloud 0.1.0__tar.gz → 0.1.2__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.1.0/src/py_pve_cloud.egg-info → py_pve_cloud-0.1.2}/PKG-INFO +1 -1
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/pyproject.toml +1 -1
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/cli/pvclu.py +4 -6
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2/src/py_pve_cloud.egg-info}/PKG-INFO +1 -1
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/LICENSE +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/README.md +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/setup.cfg +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/cli/pvcli.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/lib/inventory.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/alchemy.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/alembic.ini +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/env.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/24a548bfce3e_len_rules_enforcements.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/27724e407e2b_proxy_fqdn.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/7868bcd05006_migrate_old.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/7dea8c4ee39f_init.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/944a8fd5d5bc_ext_ctrl_plns.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/d9b711555be8_ext_control_plane.py +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/py_pve_cloud.egg-info/SOURCES.txt +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/py_pve_cloud.egg-info/dependency_links.txt +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/py_pve_cloud.egg-info/entry_points.txt +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/py_pve_cloud.egg-info/requires.txt +0 -0
- {py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/py_pve_cloud.egg-info/top_level.txt +0 -0
|
@@ -57,7 +57,7 @@ def get_cloud_env(pve_host):
|
|
|
57
57
|
|
|
58
58
|
_, stdout, _ = ssh.exec_command("cat /etc/pve/cloud/secrets/patroni.pass")
|
|
59
59
|
|
|
60
|
-
patroni_pass = stdout.read().decode('utf-8')
|
|
60
|
+
patroni_pass = stdout.read().decode('utf-8').strip()
|
|
61
61
|
|
|
62
62
|
return cluster_vars, patroni_pass
|
|
63
63
|
|
|
@@ -76,8 +76,6 @@ def get_ssh_master_kubeconfig(cluster_vars, stack_name):
|
|
|
76
76
|
if not ddns_ips:
|
|
77
77
|
raise Exception("No master could be found via DNS!")
|
|
78
78
|
|
|
79
|
-
print(ddns_ips)
|
|
80
|
-
|
|
81
79
|
ssh = paramiko.SSHClient()
|
|
82
80
|
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
83
81
|
|
|
@@ -97,11 +95,11 @@ def export_envr(args):
|
|
|
97
95
|
print(f"export PVE_CLOUD_DOMAIN='{cloud_domain}'")
|
|
98
96
|
|
|
99
97
|
# tf vars
|
|
100
|
-
print(f"export PG_CONN_STR=\"postgres://postgres:{patroni_pass}@{cluster_vars[
|
|
98
|
+
print(f"export PG_CONN_STR=\"postgres://postgres:{patroni_pass}@{cluster_vars['pve_haproxy_floating_ip_internal']}:5000/tf_states?sslmode=disable\"")
|
|
101
99
|
print(f"export TF_VAR_pve_cloud_domain='{cloud_domain}'")
|
|
102
100
|
print(f"export TF_VAR_pve_host='{ansible_host}'")
|
|
103
|
-
print(f"export TF_VAR_cluster_proxy_ip='{cluster_vars[
|
|
104
|
-
print(f"export TF_VAR_pve_cloud_pg_cstr=\"postgresql+psycopg2://postgres:{patroni_pass}@{cluster_vars[
|
|
101
|
+
print(f"export TF_VAR_cluster_proxy_ip='{cluster_vars['pve_haproxy_floating_ip_internal']}'")
|
|
102
|
+
print(f"export TF_VAR_pve_cloud_pg_cstr=\"postgresql+psycopg2://postgres:{patroni_pass}@{cluster_vars['pve_haproxy_floating_ip_internal']}:5000/pve_cloud?sslmode=disable\"")
|
|
105
103
|
print(f"export TF_VAR_master_b64_kubeconf='{get_ssh_master_kubeconfig(cluster_vars, args.stack_name)}'")
|
|
106
104
|
|
|
107
105
|
|
|
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
|
|
File without changes
|
{py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/src/pve_cloud/orm/migrations/versions/3c95509a5de9_fix.py
RENAMED
|
File without changes
|
|
File without changes
|
{py_pve_cloud-0.1.0 → py_pve_cloud-0.1.2}/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
|
|
File without changes
|