summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2025-01-23 08:56:10 -0500
committerSacha Chua <sacha@sachachua.com>2025-01-23 08:56:10 -0500
commitf49ae4c6894884b87bed7b96fb1d0f33a7a91601 (patch)
treebd0b0ae6146c99590402b5e3de231445e4f33b2e /roles/prerec/templates
parent35c7785881fb4e364b34ec67f2c9516ab5048ef2 (diff)
downloademacsconf-ansible-f49ae4c6894884b87bed7b96fb1d0f33a7a91601.tar.xz
emacsconf-ansible-f49ae4c6894884b87bed7b96fb1d0f33a7a91601.zip
use variable for bbb id
Diffstat (limited to '')
-rw-r--r--roles/prerec/templates/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/prerec/templates/Makefile b/roles/prerec/templates/Makefile
index 205fd42..8579965 100644
--- a/roles/prerec/templates/Makefile
+++ b/roles/prerec/templates/Makefile
@@ -87,10 +87,10 @@ show-files:
bbb-testing:
@echo "Resizing BBB node to 8GB 4 core for testing"
- linode-cli linodes resize 67329098 --type g6-standard-4 --allow_auto_disk_resize false
+ linode-cli linodes resize $(LINODE_BBB_ID) --type g6-standard-4 --allow_auto_disk_resize false
sleep 2m
@echo "Booting up"
- linode-cli linodes boot 67329098
+ linode-cli linodes boot $(LINODE_BBB_ID)
ssh root@bbb.emacsverse.org "cd ~/greenlight-v3; docker compose restart"
bbb-dormant:
@@ -98,17 +98,17 @@ bbb-dormant:
ssh root@bbb.emacsverse.org "/usr/sbin/shutdown -h now &" || true
sleep 30
@echo "Powering off BBB node"
- linode-cli linodes shutdown 67329098
+ linode-cli linodes shutdown $(LINODE_BBB_ID)
sleep 30
@echo "Resizing BBB node to nanode, dormant"
- linode-cli linodes resize 67329098 --type g6-nanode-1 --allow_auto_disk_resize false
+ linode-cli linodes resize $(LINODE_BBB_ID) --type g6-nanode-1 --allow_auto_disk_resize false
bbb-prod:
@echo "Resizing BBB node to production size"
- linode-cli linodes resize 67329098 --type g6-dedicated-8 --allow_auto_disk_resize true
+ linode-cli linodes resize $(LINODE_BBB_ID) --type g6-dedicated-8 --allow_auto_disk_resize true
sleep 2m
@echo "Booting up"
- linode-cli linodes boot 67329098
+ linode-cli linodes boot $(LINODE_BBB_ID)
live-dormant:
@echo "Resizing live0 node to nanode, dormant"