-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script to install images for talos in openstack
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
openstack image show talos-v1.5.5 > /dev/null || ( | ||
# download | ||
curl -L -o talos.xz https://github.com/siderolabs/talos/releases/download/v1.5.5/openstack-amd64.raw.xz | ||
|
||
# unzip | ||
# brew install p7zip | ||
7z x talos.xz | ||
rm talos.xz | ||
|
||
# upload | ||
openstack image create --progress --disk-format raw --file talos talos-v1.5.5 | ||
rm talos | ||
) | ||
|
||
openstack image show talos-v1.4.8 > /dev/null || ( | ||
# download | ||
curl -L -o talos.tgz https://github.com/siderolabs/talos/releases/download/v1.4.8/openstack-amd64.tar.gz | ||
|
||
# tar | ||
tar xf talos.tgz | ||
rm talos.tgz | ||
|
||
# upload | ||
openstack image create --progress --disk-format raw --file disk.raw talos-v1.4.8 | ||
rm disk.raw | ||
) |