summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-08-04 22:10:48 +0200
committertv <tv@shackspace.de>2015-08-04 22:10:48 +0200
commitad40a05348cf9b7542a91f5430463f0bfb6f2d0c (patch)
tree0075458c07d398c0c8e62bb86f71b0a6d1798939 /Makefile
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ca9a52f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+
+
+
+listservers listtemplates:
+ @ set -eu; \
+ . ~/.secrets/cac; \
+ ssh -q $$cac_via -t curl -fsS \
+ "https://panel.cloudatcost.com/api/v1/$@.php?key=$$cac_key\\&login=$$cac_login" \
+ | jq -r .
+
+cloudpro-resources:
+ @ set -eu; \
+ . ~/.secrets/cac; \
+ ssh -q $$cac_via -t curl -fsS \
+ "https://panel.cloudatcost.com/api/v1/cloudpro/resources.php?key=$$cac_key\\&login=$$cac_login" \
+ | jq -r .
+
+# cpu=1/2/3/4/5/6/7/8/9
+# ram=1024 (must be multiple of 4. ex. 1024 / 2048 / 3096)
+# storage=10/20/30/40/50 ... etc
+# os=75 (must be an #id from /v1/listtemplates.php)
+# 26 is CentOS-7-64bit
+cloudpro-build:
+ @ set -eu; \
+ . ~/.secrets/cac; \
+ ssh -q $$cac_via -t curl -fsS \
+ "https://panel.cloudatcost.com/api/v1/cloudpro/build.php?key=$$cac_key\\&login=$$cac_login\\&cpu=$${cpu}\\&ram=$${ram}\\&storage=$${storage}\\&os=$${os-26}"