fix: Update MOTD
This commit is contained in:
parent
c9973b7123
commit
45e95f9bef
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
|
MY_ACCOUNT=$(aws sts get-caller-identity --output json | jq -r .Account)
|
||||||
|
|
||||||
for r in $(aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text); do
|
for r in $(aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text); do
|
||||||
|
keyAlias="arn:aws:kms:${r}:${MY_ACCOUNT}:alias/zdt/amis"
|
||||||
|
keyArn=$(aws kms describe-key --region $r --key-id $keyAlias --output json 2>/dev/null | jq -r '.KeyMetadata.Arn')
|
||||||
|
|
||||||
keyAlias="arn:aws:kms:${r}:533404190593:alias/zdt/amis"
|
if [ -n "$keyArn" ]; then
|
||||||
keyArn=$(aws kms describe-key --region $r --key-id $keyAlias --output json 2>/dev/null | jq -r '.KeyMetadata.Arn')
|
aws kms list-grants --region $r --key-id $keyArn --output json | jq '.Grants[]'
|
||||||
|
|
||||||
if [ -n "$keyArn" ]; then
|
|
||||||
aws kms list-grants --region $r --key-id $keyArn --output json | jq '.Grants[]'
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# vim: ts=2 et:
|
# vim: ts=2 et:
|
||||||
|
|
||||||
project = zdt-alpine
|
project = zdt-alpine
|
||||||
kubeversion = 1.21
|
|
||||||
|
|
||||||
# all build configs start with these
|
# all build configs start with these
|
||||||
Default {
|
Default {
|
||||||
project = ${project}
|
project = ${project}
|
||||||
|
kubeversion = 1.22
|
||||||
|
|
||||||
# image name/description components
|
# image name/description components
|
||||||
encryption_key_id = null
|
encryption_key_id = null
|
||||||
|
@ -13,15 +13,10 @@ Default {
|
||||||
description = [ "ZeroDownTime Alpine Images" ]
|
description = [ "ZeroDownTime Alpine Images" ]
|
||||||
|
|
||||||
motd {
|
motd {
|
||||||
welcome = "Welcome to Alpine!"
|
welcome = "Welcome to Alpine - ZeroDownTime edition"
|
||||||
|
|
||||||
wiki = "The Alpine Wiki contains a large amount of how-to guides and general\n"\
|
|
||||||
"information about administrating Alpine systems.\n"\
|
|
||||||
"See <https://wiki.alpinelinux.org/>."
|
|
||||||
|
|
||||||
version_notes = "Release Notes:\n"\
|
version_notes = "Release Notes:\n"\
|
||||||
"* <https://alpinelinux.org/posts/alpine-{version}.0/released.html>"
|
"* <https://kubezero.com/releases/v{kubeversion}/README.md>"
|
||||||
release_notes = "* <https://alpinelinux.org/posts/{release}/released.html"
|
release_notes = "* <https://alpinelinux.org/releases/>"
|
||||||
}
|
}
|
||||||
|
|
||||||
# initial provisioning script and data directory
|
# initial provisioning script and data directory
|
||||||
|
@ -80,9 +75,6 @@ Mandatory {
|
||||||
name = [ "r{revision}" ]
|
name = [ "r{revision}" ]
|
||||||
encryption_key_id = "alias/zdt/amis"
|
encryption_key_id = "alias/zdt/amis"
|
||||||
|
|
||||||
# final motd message
|
|
||||||
motd.motd_change = "You may change this message by editing /etc/motd."
|
|
||||||
|
|
||||||
# final provisioning script
|
# final provisioning script
|
||||||
scripts = [ cleanup ]
|
scripts = [ cleanup ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue