1
1
Fork 1

Compare commits

..

33 Commits

Author SHA1 Message Date
Derek Smith 89009e52e5
Updat elnplayserver control. 2023-11-19 14:05:11 -05:00
Derek Smith 65400e1dbd
reset updates. 2023-11-19 14:05:08 -05:00
Derek Smith 5689f97c4d
lxd update 2023-11-19 14:05:03 -05:00
Derek Smith 61a06feab6
Remove deployment string, add order deets. 2023-11-19 14:04:46 -05:00
Derek Smith 1691464249
Nitpicks. 2023-11-19 14:04:44 -05:00
Derek Smith 0be4a5a2bd
Nitpicks. 2023-11-19 14:04:42 -05:00
Derek Smith 1c99942bb2
Refactor disk siziing exports. 2023-11-19 14:04:41 -05:00
Derek Smith 3e2f6c9ca5
Remove BITCOIN_CHAIN from project names. 2023-11-19 14:04:39 -05:00
Derek Smith e7a0e9c2b0
Improve down.sh 2023-11-19 14:04:37 -05:00
Derek Smith 778ca21dc7
Delete stop.sh 2023-11-19 14:04:35 -05:00
Derek Smith b5dc9d59b2
Refactor MAC address envs. 2023-11-19 14:04:33 -05:00
Derek Smith e03a2526ee
Delete target.sh 2023-11-19 14:04:31 -05:00
Derek Smith 8019839389
Refactor system ENVs 2023-11-19 14:04:29 -05:00
Derek Smith 5c41c7a609
Disable deletion of BASE_IMAGE_VM_NAME VM. 2023-11-19 14:04:27 -05:00
Derek Smith 59466556f7
add LNPLAY_BASE_IMAGE_NAME 2023-11-19 14:04:25 -05:00
Derek Smith 2e060ed5ae
Silence command output. 2023-11-19 14:04:23 -05:00
Derek Smith 893f8d4f61
Add timeout on wait_for_lxc_ip 2023-11-19 14:04:21 -05:00
Derek Smith b18899c25c
Scope to default. 2023-11-19 14:04:18 -05:00
Derek Smith 9e5a2da31d
Ensure default project. 2023-11-19 14:04:12 -05:00
Derek Smith 565c18fbf4
Add controls over base image creation. 2023-11-19 14:03:51 -05:00
Derek Smith f55a353d40
Update project. 2023-11-19 14:02:44 -05:00
Derek Smith 05ad16707c
Update project. 2023-11-19 14:02:42 -05:00
Derek Smith effc232ace
Use '-q' with lxc init commands. 2023-11-19 14:02:40 -05:00
Derek Smith c4b96e73b0
Ensure initial image copy goes to default project. 2023-11-19 14:02:37 -05:00
Derek Smith 923134dc2c
Enable debuggin on create_lxc_base.sh 2023-11-19 14:02:35 -05:00
Derek Smith 2cc1227c16
Enable debugging. 2023-11-19 14:02:33 -05:00
Derek Smith 3e726a578f
Update project/ remove warnings. 2023-11-19 14:02:31 -05:00
Derek Smith aff55e953d
Update project head. 2023-11-19 14:02:29 -05:00
Derek Smith a88a0ebb69
Update project head. 2023-11-19 14:02:27 -05:00
Derek Smith 4c0f486097
SKIP proj provis if is DEPLOYMENT_STRING is null 2023-11-19 14:02:24 -05:00
Derek Smith 796c36e40e
Update project head. 2023-11-19 14:01:44 -05:00
Derek Smith 82fd312766
Bump LXD version. 2023-11-19 14:00:54 -05:00
Derek Smith 2fd61026ef
Increase timer. 2023-11-19 14:00:34 -05:00
5 changed files with 8 additions and 7 deletions

View File

@ -50,9 +50,10 @@ else
if lxc info "$BASE_IMAGE_VM_NAME" --project default | grep -q "Status: RUNNING"; then
while lxc exec "$BASE_IMAGE_VM_NAME" --project default -- [ ! -f /var/lib/cloud/instance/boot-finished ]; do
sleep 1
done
sleep 25
while lxc exec "$BASE_IMAGE_VM_NAME" --project=default -- [ ! -f /var/lib/cloud/instance/boot-finished ]; do
sleep 1
done
# ensure the ssh service is listening at localhost
lxc exec "$BASE_IMAGE_VM_NAME" --project default -- wait-for-it -t 100 127.0.0.1:22

@ -1 +1 @@
Subproject commit edf6f9a2274caaddfd0bdcca4ccd91747244ac4a
Subproject commit dd446a753e5baf53fd3a20178c67af5418a91ca4

View File

@ -148,7 +148,7 @@ fi
# install dependencies.
ssh -t "ubuntu@$FQDN" 'sudo apt update && sudo apt upgrade -y && sudo apt install htop dnsutils nano -y'
if ! ssh "ubuntu@$FQDN" snap list | grep -q lxd; then
ssh -t "ubuntu@$FQDN" 'sudo snap install lxd --channel=5.18/candidate'
ssh -t "ubuntu@$FQDN" 'sudo snap install lxd --channel=5.18/stable'
sleep 5
fi

View File

@ -47,7 +47,7 @@ export DISK="$DISK"
# install lxd snap and initialize it
if ! snap list | grep -q lxd; then
sudo snap install lxd --channel=5.17/stable
sudo snap install lxd --channel=5.18/stable
sleep 5
# run lxd init

View File

@ -35,7 +35,7 @@ sleep 10
# install snap
if ! snap list | grep -q lxd; then
sudo snap install htop
sudo snap install lxd --channel=5.17/stable
sudo snap install lxd --channel=5.18/stable
sleep 6
# We just do an auto initialization. All we are using is the LXD client inside the management environment.