fup
This commit is contained in:
parent
7c8b20f2ce
commit
73f3fe3550
|
@ -89,6 +89,11 @@ locals {
|
||||||
type = "auto"
|
type = "auto"
|
||||||
enabled = true
|
enabled = true
|
||||||
}
|
}
|
||||||
|
local = {
|
||||||
|
name = "local"
|
||||||
|
type = "auto"
|
||||||
|
enabled = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,16 +4,22 @@ FL_VERSIONS="current 3374.2.0"
|
||||||
MATCHBOX_DIR="/var/lib/matchbox"
|
MATCHBOX_DIR="/var/lib/matchbox"
|
||||||
ASSETS_DIR="${MATCHBOX_DIR}/assets/"
|
ASSETS_DIR="${MATCHBOX_DIR}/assets/"
|
||||||
|
|
||||||
|
GPG_FNAME="Flatcar_Image_Signing_Key.asc"
|
||||||
|
GPG_KEYS_URL="https://www.flatcar.org/security/image-signing-key/"
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
curl -L -O ${GPG_KEYS_URL}/${GPG_FNAME}
|
||||||
|
gpg --import --keyid-format LONG ${GPG_FNAME}
|
||||||
|
cd -
|
||||||
|
|
||||||
echo "Provisionning matchbox with flatcar images"
|
echo "Provisionning matchbox with flatcar images"
|
||||||
echo " * Current stable image (try 1)"
|
tout=30
|
||||||
for version in ${FL_VERSIONS}; do
|
for version in ${FL_VERSIONS}; do
|
||||||
while ! bash -x /usr/local/bin/get-flatcar stable ${version} ${ASSETS_DIR}; do
|
for i in $(seq 1 ${tout});do
|
||||||
sleep 1
|
echo " * ${FL_VERSIONS} stable image (try ${i})"
|
||||||
echo " * ${version} stable image (try ${item})"
|
/usr/local/bin/get-flatcar stable ${version} ${ASSETS_DIR}
|
||||||
if [ "${tout}" -eq "${item}" ]; then
|
if [[ "${?}" -eq 0 ]]; then
|
||||||
break
|
break
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
item=$((item+1))
|
|
||||||
done
|
done
|
||||||
done
|
done
|
Loading…
Reference in New Issue