Skip to content

Commit

Permalink
script to install images for talos in openstack
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Nov 25, 2023
1 parent 2f02773 commit 8bb52ec
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions terraform/images.sh
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
)

0 comments on commit 8bb52ec

Please sign in to comment.