From f49ae4c6894884b87bed7b96fb1d0f33a7a91601 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 23 Jan 2025 08:56:10 -0500 Subject: use variable for bbb id --- roles/prerec/templates/Makefile | 12 ++++++------ 1 file 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" -- cgit v1.2.3