From dba8ce7f71d03410c7657fcee00f07a3c30584fc Mon Sep 17 00:00:00 2001 From: drone Date: Tue, 25 Oct 2022 05:27:28 +0000 Subject: [PATCH 01/57] Update dependency hcloud to v1.18.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5fa8d2b..2da0f8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.18.0 +hcloud==1.18.1 rich==12.6.0 \ No newline at end of file From 0310b9e23173fb46df38a7f336494263303cae17 Mon Sep 17 00:00:00 2001 From: drone Date: Tue, 25 Oct 2022 12:28:33 +0000 Subject: [PATCH 02/57] Update dependency hcloud to v1.18.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5fa8d2b..2da0f8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.18.0 +hcloud==1.18.1 rich==12.6.0 \ No newline at end of file From 5ecba80d8c32943c3f87283c4edfd16fa063065b Mon Sep 17 00:00:00 2001 From: drone Date: Tue, 27 Dec 2022 09:20:13 +0000 Subject: [PATCH 03/57] Update dependency hcloud to v1.18.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2da0f8a..f2e5d07 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.18.1 +hcloud==1.18.2 rich==12.6.0 \ No newline at end of file From a50050b7da61dfbe6be54806fc6b0e006d6cdde3 Mon Sep 17 00:00:00 2001 From: drone Date: Fri, 30 Dec 2022 13:20:17 +0000 Subject: [PATCH 04/57] Update dependency rich to v13 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f2e5d07..32abe0e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.18.2 -rich==12.6.0 \ No newline at end of file +rich==13.0.0 \ No newline at end of file From 4152cf802dbaacad54078732e3671af4473956ab Mon Sep 17 00:00:00 2001 From: drone Date: Mon, 6 Feb 2023 23:26:52 +0000 Subject: [PATCH 05/57] Update dependency rich to v13.3.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 32abe0e..1f0ad0e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.18.2 -rich==13.0.0 \ No newline at end of file +rich==13.3.1 \ No newline at end of file From eca10b9d58442594ea5b6fe4ce680335d8e2978e Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 4 Mar 2023 17:06:42 +0000 Subject: [PATCH 06/57] Update dependency rich to v13.3.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1f0ad0e..c9a3a6d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.18.2 -rich==13.3.1 \ No newline at end of file +rich==13.3.2 \ No newline at end of file From 6b71eea5641dfcb767d552c6683211e6936e2096 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 27 Mar 2023 11:06:45 +0000 Subject: [PATCH 07/57] Update dependency rich to v13.3.3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c9a3a6d..979ff9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.18.2 -rich==13.3.2 \ No newline at end of file +rich==13.3.3 \ No newline at end of file From 81f2e73357ca48be1a17a85300c81051f54dec6c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 12 Apr 2023 09:07:55 +0000 Subject: [PATCH 08/57] Update dependency hcloud to v1.19.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 979ff9b..ee5dbcd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.18.2 +hcloud==1.19.0 rich==13.3.3 \ No newline at end of file From 760da9f8ab4fbc97213ed9d4f192de10d8693559 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 18 Apr 2023 02:07:54 +0000 Subject: [PATCH 09/57] Update dependency rich to v13.3.4 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ee5dbcd..b26d726 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.19.0 -rich==13.3.3 \ No newline at end of file +rich==13.3.4 \ No newline at end of file From 7b16fc5070a5152dd1529c5562530bf2ccf697ae Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 27 Apr 2023 15:06:46 +0000 Subject: [PATCH 10/57] Update dependency rich to v13.3.5 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b26d726..63d179f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.19.0 -rich==13.3.4 \ No newline at end of file +rich==13.3.5 \ No newline at end of file From cbeb8bd6aa0e21a2429f24339afa0b46e3884e8e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 12 May 2023 10:06:45 +0000 Subject: [PATCH 11/57] Update dependency hcloud to v1.20.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 63d179f..2a558fd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.19.0 +hcloud==1.20.0 rich==13.3.5 \ No newline at end of file From 9b65bdc50a52244fb82d33322ce067f0f2a4336e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 31 May 2023 18:07:46 +0000 Subject: [PATCH 12/57] Update dependency rich to v13.4.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2a558fd..c09ba74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.20.0 -rich==13.3.5 \ No newline at end of file +rich==13.4.1 \ No newline at end of file From d290190f7123b28ff6a541c48a17f393f5f56289 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 12 Jun 2023 14:29:50 +0000 Subject: [PATCH 13/57] Update dependency rich to v13.4.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c09ba74..5cd8805 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.20.0 -rich==13.4.1 \ No newline at end of file +rich==13.4.2 \ No newline at end of file From d952bc5c2a4461498a101d01901315fe0b180931 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 19 Jun 2023 11:08:57 +0000 Subject: [PATCH 14/57] Update dependency hcloud to v1.21.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5cd8805..b2e6987 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.20.0 +hcloud==1.21.0 rich==13.4.2 \ No newline at end of file From 8971f6790d3ac8b8b4510a4617692adb6f4d7dfb Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 22 Jun 2023 11:08:57 +0000 Subject: [PATCH 15/57] Update dependency hcloud to v1.22.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b2e6987..69d814a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.21.0 +hcloud==1.22.0 rich==13.4.2 \ No newline at end of file From 0623ae6c4329dce4ccf573ae3b05103b3634dd4c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 3 Jul 2023 15:08:57 +0000 Subject: [PATCH 16/57] Update dependency hcloud to v1.24.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 69d814a..c283e96 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.22.0 +hcloud==1.24.0 rich==13.4.2 \ No newline at end of file From 5f603a10ebd1142726e26ab5b3c7dff979515bb8 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 14 Jul 2023 14:17:52 +0000 Subject: [PATCH 17/57] Update dependency hcloud to v1.25.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c283e96..8198bd7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.24.0 +hcloud==1.25.0 rich==13.4.2 \ No newline at end of file From aa9ee81db21b09ac2024b9b09d601c1c9ee9e252 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 17 Jul 2023 10:06:04 +0200 Subject: [PATCH 18/57] add automerge --- renovate.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 7190a60..04a4f6a 100644 --- a/renovate.json +++ b/renovate.json @@ -1,3 +1,10 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json" + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "packageRules": [ + { + "matchPackagePatterns": ["*"], + "automerge": true, + "automergeType": "branch" + } + ] } From e839baad94af3d1f12f70fa73bf2492873cbe6ed Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 17 Aug 2023 13:08:58 +0000 Subject: [PATCH 19/57] Update dependency hcloud to v1.28.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8198bd7..21f24e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.25.0 +hcloud==1.28.0 rich==13.4.2 \ No newline at end of file From 62774fb332f546604929bde1d55326bfb321316f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 19 Aug 2023 03:08:57 +0000 Subject: [PATCH 20/57] Update dependency rich to v13.5.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 21f24e8..8197d45 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.28.0 -rich==13.4.2 \ No newline at end of file +rich==13.5.2 \ No newline at end of file From cf9f67d19996b53e29a2424d250d23f0036aff2f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 17 Sep 2023 16:29:43 +0000 Subject: [PATCH 21/57] Update dependency rich to v13.5.3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8197d45..e1f1592 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.28.0 -rich==13.5.2 \ No newline at end of file +rich==13.5.3 \ No newline at end of file From 9fbf1f51d50cc2e8d57b38286304974d944cf381 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 18 Sep 2023 15:28:08 +0200 Subject: [PATCH 22/57] change default server to ccx23 --- shcloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shcloud.py b/shcloud.py index 5499c72..ba110e2 100755 --- a/shcloud.py +++ b/shcloud.py @@ -87,7 +87,7 @@ def select_servertype(): #if str(m.cpu_type) == "shared": table.add_row(str(m.id), str(m.name), str(m.description), str(m.cores), str(int(m.memory)) + " GB", str(m.disk) + " GB", str(m.cpu_type) , format(float(m.prices[0]["price_hourly"]["gross"]), '.2f') + " €", format(float(m.prices[0]["price_monthly"]["gross"]), '.2f') + " €") console.print(table) - return(Prompt.ask("Selection: ", default="ccx22")) + return(Prompt.ask("Selection: ", default="ccx23")) def track_progress(a_id, description): with Progress() as progress: From bf1b097ccb60f549aa946f821ceba043b2bfae71 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 26 Sep 2023 11:29:55 +0000 Subject: [PATCH 23/57] Update dependency hcloud to v1.29.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e1f1592..0c15a10 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.28.0 +hcloud==1.29.1 rich==13.5.3 \ No newline at end of file From 088ecf091660330b0c302b0f9b96a1c0f939a601 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 30 Sep 2023 14:29:55 +0000 Subject: [PATCH 24/57] Update dependency rich to v13.6.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0c15a10..649b2e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.29.1 -rich==13.5.3 \ No newline at end of file +rich==13.6.0 \ No newline at end of file From 6022829dd609c5703366455890fca9edc955287c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 13 Oct 2023 12:29:59 +0000 Subject: [PATCH 25/57] Update dependency hcloud to v1.30.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 649b2e8..960924e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.29.1 +hcloud==1.30.0 rich==13.6.0 \ No newline at end of file From 6adaef6b08a25c35c4b9cd3785c8e11063753745 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 23 Oct 2023 09:29:55 +0000 Subject: [PATCH 26/57] Update dependency hcloud to v1.31.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 960924e..32f2a67 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.30.0 +hcloud==1.31.0 rich==13.6.0 \ No newline at end of file From c571ddee51797af4c3fe2fd169e1a3877eb3ca69 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 15 Nov 2023 17:17:27 +0000 Subject: [PATCH 27/57] Update dependency rich to v13.7.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 32f2a67..ffe51c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.31.0 -rich==13.6.0 \ No newline at end of file +rich==13.7.0 \ No newline at end of file From e670f80a48536831629e01382a01e7d6e8b9502d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 17 Nov 2023 14:17:24 +0000 Subject: [PATCH 28/57] Update dependency hcloud to v1.32.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ffe51c1..138cdab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.31.0 +hcloud==1.32.0 rich==13.7.0 \ No newline at end of file From 217fdb03cad69f0ca66cbd8e58c01f94f8408468 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 19 Dec 2023 17:12:35 +0000 Subject: [PATCH 29/57] Update dependency hcloud to v1.33.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 138cdab..f145ced 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.32.0 +hcloud==1.33.0 rich==13.7.0 \ No newline at end of file From 7bb872f2c6c872d69c9ff0946d1e340e4d9ac846 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 2 Jan 2024 18:13:25 +0000 Subject: [PATCH 30/57] Update dependency hcloud to v1.33.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f145ced..9b64535 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.33.0 +hcloud==1.33.2 rich==13.7.0 \ No newline at end of file From f56755b3da1cacf9c4c02c76c5237751f2983a6b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 28 Feb 2024 15:19:25 +0000 Subject: [PATCH 31/57] Update dependency rich to v13.7.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9b64535..e27dfbb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==1.33.2 -rich==13.7.0 \ No newline at end of file +rich==13.7.1 \ No newline at end of file From e8e46f7daf6ee59798276d8ff4422d4297ab9e9d Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 25 Mar 2024 12:11:01 +0100 Subject: [PATCH 32/57] add pipeline (closes #27) --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..02f5a8d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +name: deploy +steps: + - name: awx + image: curlimages/curl + environment: + TOKEN: + from_secret: AWX_TOKEN + commands: + - "curl -k -X POST -H \"Authorization: Bearer $TOKEN\" https://awx-aaron.apps.yolokube.de/api/v2/job_templates/13/launch/" \ No newline at end of file From 49cbb7ff279a54d80873caf85cb2efcb02a6dec8 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 25 Mar 2024 12:12:50 +0100 Subject: [PATCH 33/57] run pipeline only on main pushes CISKIP --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 02f5a8d..40d9488 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,4 +7,9 @@ steps: TOKEN: from_secret: AWX_TOKEN commands: - - "curl -k -X POST -H \"Authorization: Bearer $TOKEN\" https://awx-aaron.apps.yolokube.de/api/v2/job_templates/13/launch/" \ No newline at end of file + - "curl -k -X POST -H \"Authorization: Bearer $TOKEN\" https://awx-aaron.apps.yolokube.de/api/v2/job_templates/13/launch/" +when: + event: + - push + branch: + - main \ No newline at end of file From c88b4319e35c361f70750ef757de8d6d345033bb Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 27 Mar 2024 10:17:51 +0000 Subject: [PATCH 34/57] Update dependency hcloud to v1.33.3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e27dfbb..2baebb9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.33.2 +hcloud==1.33.3 rich==13.7.1 \ No newline at end of file From ffabb9893850ff90846d522fd1ebacc991266a23 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 27 Mar 2024 15:17:53 +0000 Subject: [PATCH 35/57] Update dependency hcloud to v1.34.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2baebb9..4a2499c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.33.3 +hcloud==1.34.0 rich==13.7.1 \ No newline at end of file From bb3fe795ad95a4e6b35aa2a21ba1aab53e7ffddc Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 2 Apr 2024 17:18:20 +0000 Subject: [PATCH 36/57] Update dependency hcloud to v1.35.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4a2499c..9ec8a60 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.34.0 +hcloud==1.35.0 rich==13.7.1 \ No newline at end of file From fe9bcdad46d5cbde5acfdf29bf6270a28f5d0656 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 3 Jul 2024 10:10:16 +0000 Subject: [PATCH 37/57] Update dependency hcloud to v2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9ec8a60..4951141 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==1.35.0 +hcloud==2.0.0 rich==13.7.1 \ No newline at end of file From 346356f67f3deea3df37d948f37f0b5fa597cfe5 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 3 Jul 2024 12:10:07 +0000 Subject: [PATCH 38/57] Update dependency hcloud to v2.0.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4951141..7a95ed5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.0.0 +hcloud==2.0.1 rich==13.7.1 \ No newline at end of file From 7014153a8983c4f9d849a158f4b9acfab45b40fc Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 25 Jul 2024 12:10:47 +0000 Subject: [PATCH 39/57] Update dependency hcloud to v2.1.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7a95ed5..6c90808 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.0.1 +hcloud==2.1.0 rich==13.7.1 \ No newline at end of file From b67b318d3308e57d626805fa04eecf8977e8c185 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 30 Jul 2024 18:20:07 +0000 Subject: [PATCH 40/57] Update dependency hcloud to v2.1.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6c90808..3edf31c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.1.0 +hcloud==2.1.1 rich==13.7.1 \ No newline at end of file From c137f10873b3f28b547cc8eb089a4bcf271fa06e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 6 Aug 2024 13:19:56 +0000 Subject: [PATCH 41/57] Update dependency hcloud to v2.2.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3edf31c..e21f6ab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.1.1 +hcloud==2.2.0 rich==13.7.1 \ No newline at end of file From 9f84870546e9f95f71345b86764c076db93e201b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 19 Aug 2024 19:19:52 +0000 Subject: [PATCH 42/57] Update dependency hcloud to v2.2.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e21f6ab..89cfd99 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.2.0 +hcloud==2.2.1 rich==13.7.1 \ No newline at end of file From 5ba192b601fb461451d1c8f3eca5888182fb8740 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 26 Aug 2024 16:21:01 +0000 Subject: [PATCH 43/57] Update dependency rich to v13.8.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 89cfd99..a96c328 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.2.1 -rich==13.7.1 \ No newline at end of file +rich==13.8.0 \ No newline at end of file From c6fa9d1d990bad765725c4d20556ff5741b76ed2 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 10 Sep 2024 13:22:47 +0000 Subject: [PATCH 44/57] Update dependency rich to v13.8.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a96c328..522443c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.2.1 -rich==13.8.0 \ No newline at end of file +rich==13.8.1 \ No newline at end of file From d39bb019698e49f651b5a7b90f7acf80193fbb59 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 1 Oct 2024 12:25:15 +0000 Subject: [PATCH 45/57] Update dependency rich to v13.9.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 522443c..4bdb45e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.2.1 -rich==13.8.1 \ No newline at end of file +rich==13.9.0 \ No newline at end of file From de6979fef3dc621a0520773d218d078bb22dade0 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 1 Oct 2024 14:25:54 +0000 Subject: [PATCH 46/57] Update dependency rich to v13.9.1 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4bdb45e..bcccf2c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.2.1 -rich==13.9.0 \ No newline at end of file +rich==13.9.1 \ No newline at end of file From 4a9522c91ea0ffdacf9cea089f51dd9e637cc364 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 4 Oct 2024 12:20:15 +0000 Subject: [PATCH 47/57] Update dependency rich to v13.9.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index bcccf2c..988152b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.2.1 -rich==13.9.1 \ No newline at end of file +rich==13.9.2 \ No newline at end of file From 9bc7295f2afa4cdb34d80023a7159703ab34290a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 9 Oct 2024 13:20:16 +0000 Subject: [PATCH 48/57] Update dependency hcloud to v2.3.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 988152b..d2953a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.2.1 +hcloud==2.3.0 rich==13.9.2 \ No newline at end of file From 3e1e92d8ccd5bb4efc303ae63a0b7c417003be26 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 10 Oct 2024 19:40:49 +0200 Subject: [PATCH 49/57] upgrade to debian 12 --- shcloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shcloud.py b/shcloud.py index ba110e2..e039ef3 100755 --- a/shcloud.py +++ b/shcloud.py @@ -25,7 +25,7 @@ server_game = "sfserver" #server_type = "cx11" server_type_id = None server_key = 6513932 -server_image = 45557056 +server_image = 114690387 server_ipv4 = 11737045 server_ipv6 = 11737053 volume_id = 11742041 @@ -142,7 +142,7 @@ if sys.argv[1] == "create": servers = client.servers.get_all() for s in servers: if s.name == server_name: - console.print("[red]server already there") + console.print("[red]server already there") if Confirm.ask("Delete?"): delete_server(s) exit(0) # for now, until I have a way to wait From 5729f76013067c5cfb0c94c964227ba2a409e8ae Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 10 Oct 2024 19:55:30 +0200 Subject: [PATCH 50/57] add woodpecker pipeline --- .drone.yml => .woodpecker.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename .drone.yml => .woodpecker.yaml (79%) diff --git a/.drone.yml b/.woodpecker.yaml similarity index 79% rename from .drone.yml rename to .woodpecker.yaml index 40d9488..d20c5d0 100644 --- a/.drone.yml +++ b/.woodpecker.yaml @@ -1,5 +1,4 @@ -kind: pipeline -name: deploy +skip_clone: true steps: - name: awx image: curlimages/curl @@ -9,7 +8,5 @@ steps: commands: - "curl -k -X POST -H \"Authorization: Bearer $TOKEN\" https://awx-aaron.apps.yolokube.de/api/v2/job_templates/13/launch/" when: - event: - - push - branch: - - main \ No newline at end of file + - event: push + branch: main From b9f230a4444725af9e8eb1e21e0cbc311e95e3e8 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 22 Oct 2024 16:03:55 +0000 Subject: [PATCH 51/57] Update dependency rich to v13.9.3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d2953a9..ccbcfef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.3.0 -rich==13.9.2 \ No newline at end of file +rich==13.9.3 \ No newline at end of file From 306562b42249c2c1c4b0cdef50b2119e0fab6e6a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 1 Nov 2024 17:04:26 +0000 Subject: [PATCH 52/57] Update dependency rich to v13.9.4 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ccbcfef..8f54eed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.3.0 -rich==13.9.3 \ No newline at end of file +rich==13.9.4 \ No newline at end of file From c03457ba27018f58d6b3790bbf69d0c9e2a840b8 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 19 Mar 2025 16:05:30 +0000 Subject: [PATCH 53/57] Update dependency hcloud to v2.4.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8f54eed..5d0bf57 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.3.0 +hcloud==2.4.0 rich==13.9.4 \ No newline at end of file From f88d3828c363f16eb0b2cb3e5a25e5a5d1a891ac Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Tue, 15 Apr 2025 18:05:36 +0200 Subject: [PATCH 54/57] update to allow multiple games --- .woodpecker.yaml | 2 +- requirements.txt | 2 +- shcloud.py | 125 +++++++++++++++++++++++++++++++++-------------- 3 files changed, 91 insertions(+), 38 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index d20c5d0..666b28e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -6,7 +6,7 @@ steps: TOKEN: from_secret: AWX_TOKEN commands: - - "curl -k -X POST -H \"Authorization: Bearer $TOKEN\" https://awx-aaron.apps.yolokube.de/api/v2/job_templates/13/launch/" + - "curl -k -X POST -H \"Authorization: Bearer $TOKEN\" https://awx-aaron.apps.yolokube.de/api/v2/job_templates/16/launch/" when: - event: push branch: main diff --git a/requirements.txt b/requirements.txt index 5d0bf57..adcc8dd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 hcloud==2.4.0 -rich==13.9.4 \ No newline at end of file +rich==13.9.4 diff --git a/shcloud.py b/shcloud.py index e039ef3..49c186f 100755 --- a/shcloud.py +++ b/shcloud.py @@ -1,4 +1,4 @@ -#!/bin/python3 +#!/usr/bin/env python3 import sys from rich.console import Console from rich.table import Table @@ -9,7 +9,8 @@ from rich.prompt import Confirm from os import environ, system, path import subprocess from time import sleep -#from tabulate import tabulate +import argparse + from hcloud import Client from hcloud.images.domain import Image from hcloud.server_types.domain import ServerType @@ -21,21 +22,26 @@ from hcloud.servers.domain import ServerCreatePublicNetwork from hcloud.locations.domain import Location server_name = "lgsm-1" -server_game = "sfserver" -#server_type = "cx11" +server_game = "fctrserver" +server_type = "ccx13" server_type_id = None server_key = 6513932 server_image = 114690387 server_ipv4 = 11737045 server_ipv6 = 11737053 -volume_id = 11742041 +volume_id = 102426010 +game_choices = ["fctrserver", "sfserver", "cs2server"] +backup_paths = { + "sfserver": "/gameserver/home/.config/Epic/FactoryGame/Saved/SaveGames/server/*", + "fctrserver": "/gameserver/fctrserver/serverfiles/save1.zip", +} # please put the token in a file named .token in the same dir as the python script -token_file = open("%s/.token"%path.dirname(__file__), "r") -token = token_file.read().replace("\n","") +token_file = open("%s/.token" % path.dirname(__file__), "r") +token = token_file.read().replace("\n", "") token_file.close() client = Client(token=token) -console = Console() # for rich module +console = Console() # for rich module≈ # get volume volume = Volume(volume_id) @@ -43,16 +49,51 @@ volume = Volume(volume_id) # get server types models = client.server_types.get_all() +# parse arguments +parser = argparse.ArgumentParser() +parser.add_argument("action", type=str, help="create or delete") +parser.add_argument("-t", "--type", help="server type") +parser.add_argument( + "-g", "--game", help="game", choices=game_choices, default=server_game +) +args = parser.parse_args() + + # functions def delete_server(s): with Progress() as progress: + check_connection = progress.add_task( + "[green]Check connection to server", total=None + ) + subprocess.check_output( + f"ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null shcloud.eu whoami", + shell=True, + stderr=subprocess.STDOUT, + ) + progress.update(check_connection, completed=1, total=1) task_stop_game = progress.add_task("[red]Stop Game", total=None) - subprocess.check_output("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null shcloud.eu 'su -c \"cd /gameserver/%s && /gameserver/%s/%s stop\" gameserver'"%(server_game, server_game, server_game), shell=True,stderr=subprocess.STDOUT) + subprocess.check_output( + "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null shcloud.eu 'su -c \"cd /gameserver/%s && /gameserver/%s/%s stop\" gameserver'" + % (server_game, server_game, server_game), + shell=True, + stderr=subprocess.STDOUT, + ) progress.update(task_stop_game, completed=1, total=1) + # backup game files - task_backup = progress.add_task("[red]Backup files", total=None) - subprocess.check_output("scp shcloud.eu:/gameserver/home/gameserver/.config/Epic/FactoryGame/Saved/SaveGames/server/* /root/backup/sfserver/", shell=True,stderr=subprocess.STDOUT) - progress.update(task_backup, completed=1, total=1) + if server_game in backup_paths: + task_backup = progress.add_task("[red]Backup files", total=None) + subprocess.check_output( + f"mkdir -p /root/backup/{server_game}", + shell=True, + stderr=subprocess.STDOUT, + ) + subprocess.check_output( + f"scp shcloud.eu:{backup_paths[server_game]} /root/backup/{server_game}/", + shell=True, + stderr=subprocess.STDOUT, + ) + progress.update(task_backup, completed=1, total=1) response = s.shutdown() track_progress(response.id, response.command) response = client.volumes.detach(volume) @@ -60,12 +101,14 @@ def delete_server(s): response = s.delete() track_progress(response.id, response.command) + def check_servertype(server_type): # return id or None for m in models: if m.name == server_type and m.deprecated == False: - return(m.id) - return(None) + return m.id + return None + def select_servertype(): # return id or None @@ -77,21 +120,32 @@ def select_servertype(): table.add_column("Cores", justify="left", style="red", no_wrap=True) table.add_column("Memory", justify="left", style="red", no_wrap=True) table.add_column("Disk", justify="left", style="blue", no_wrap=True) - #table.add_column("Storage Type", justify="center", style="blue", no_wrap=True) + # table.add_column("Storage Type", justify="center", style="blue", no_wrap=True) table.add_column("CPU Type", justify="center", style="cyan2", no_wrap=True) - #table.add_column("Deprecated", justify="center", style="grey46", no_wrap=True) + # table.add_column("Deprecated", justify="center", style="grey46", no_wrap=True) table.add_column("Hourly", justify="left", style="cyan2", no_wrap=True) table.add_column("Monthly", justify="left", style="cyan2", no_wrap=True) for m in models: - #if str(m.cpu_type) == "shared": - table.add_row(str(m.id), str(m.name), str(m.description), str(m.cores), str(int(m.memory)) + " GB", str(m.disk) + " GB", str(m.cpu_type) , format(float(m.prices[0]["price_hourly"]["gross"]), '.2f') + " €", format(float(m.prices[0]["price_monthly"]["gross"]), '.2f') + " €") + # if str(m.cpu_type) == "shared": + table.add_row( + str(m.id), + str(m.name), + str(m.description), + str(m.cores), + str(int(m.memory)) + " GB", + str(m.disk) + " GB", + str(m.cpu_type), + format(float(m.prices[0]["price_hourly"]["gross"]), ".2f") + " €", + format(float(m.prices[0]["price_monthly"]["gross"]), ".2f") + " €", + ) console.print(table) - return(Prompt.ask("Selection: ", default="ccx23")) + return Prompt.ask("Selection: ", default=server_type) + def track_progress(a_id, description): with Progress() as progress: - task = progress.add_task("[cyan]%s..."%description, total=None) + task = progress.add_task("[cyan]%s..." % description, total=None) while not progress.finished: a = client.actions.get_by_id(a_id) if a.progress != 0: @@ -104,15 +158,8 @@ def track_progress(a_id, description): sleep(0.1) return -if len(sys.argv) < 2: - print("shcloud python script") - print("") - print("usage:") - print("shcloud.py create ") - print("shcloud.py delete") - exit(0) -if sys.argv[1] == "delete": +if args.action == "delete": with Progress() as progress: task_search = progress.add_task("[green]Search for server", total=None) s = client.servers.get_by_name(server_name) @@ -125,11 +172,11 @@ if sys.argv[1] == "delete": delete_server(s) exit(0) -if sys.argv[1] == "create": +if args.action == "create": # check if server model was selected - if len(sys.argv) > 2: + if args.type: # get server models - server_type_id = check_servertype(sys.argv[2]) + server_type_id = check_servertype(args.type) # if not found force the user to select one while server_type_id == None: console.print("[red]Server type not found.") @@ -145,7 +192,7 @@ if sys.argv[1] == "create": console.print("[red]server already there") if Confirm.ask("Delete?"): delete_server(s) - exit(0) # for now, until I have a way to wait + exit(0) # for now, until I have a way to wait else: console.print("[red]Server should not be deleted. Aboring...") exit(0) @@ -158,10 +205,16 @@ if sys.argv[1] == "create": ssh_keys=[SSHKey(id=server_key)], location=Location(name="fsn1"), volumes=[Volume(id=volume_id)], - labels={"game" : server_game}, - user_data="#!/bin/bash\ncurl -sL ar21.de/shinit.php?GAME=%s\\&VOLUME=%s | bash"%(server_game, volume_id), - public_net=ServerCreatePublicNetwork(ipv4=PrimaryIP(id=server_ipv4),ipv6=PrimaryIP(id=server_ipv6),enable_ipv4 = True, enable_ipv6 = True) + labels={"game": server_game}, + user_data="#!/bin/bash\ncurl -sL ar21.de/shinit.php?GAME=%s\\&VOLUME=%s | bash" + % (server_game, volume_id), + public_net=ServerCreatePublicNetwork( + ipv4=PrimaryIP(id=server_ipv4), + ipv6=PrimaryIP(id=server_ipv6), + enable_ipv4=True, + enable_ipv6=True, + ), ) track_progress(response.action.id, response.action.command) for a in response.next_actions: - track_progress(a.id, a.command) \ No newline at end of file + track_progress(a.id, a.command) From 3e8f00b8250761fed39260306eb2a6c45993cfd6 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 23 May 2025 10:05:44 +0000 Subject: [PATCH 55/57] Update dependency hcloud to v2.5.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index adcc8dd..f79b793 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.4.0 +hcloud==2.5.2 rich==13.9.4 From 75e4e9026b5ce733696bb1a0bcbb3ae1f2d5f533 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 9 Jul 2025 10:12:01 +0000 Subject: [PATCH 56/57] Update dependency hcloud to v2.5.4 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f79b793..d1c4ad6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.5.2 +hcloud==2.5.4 rich==13.9.4 From c3d0e7ecdfd6f50aea5730725238f1feefee637b Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 11 Jul 2025 22:00:47 +0200 Subject: [PATCH 57/57] workaround hcloud api issue --- shcloud.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shcloud.py b/shcloud.py index 49c186f..0823b81 100755 --- a/shcloud.py +++ b/shcloud.py @@ -214,7 +214,16 @@ if args.action == "create": enable_ipv4=True, enable_ipv6=True, ), + start_after_create=False, ) track_progress(response.action.id, response.action.command) for a in response.next_actions: track_progress(a.id, a.command) + # save server to var + server = response.server + # attach volume + response = client.volumes.attach(volume=volume, server=server) + track_progress(response.id, response.command) + # start server + response = client.servers.power_on(server) + track_progress(response.id, response.command) \ No newline at end of file