add base
This commit is contained in:
19
ignition/build.sh
Executable file
19
ignition/build.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
# https://devnonsense.com/posts/k3s-on-fedora-coreos-bare-metal/
|
||||
# https://www.murillodigital.com/tech_talk/k3s_in_coreos/
|
||||
|
||||
NODE_PREFIX="k3s-"
|
||||
IP_PREFIX="10.3.4.111"
|
||||
|
||||
FIRST_NODE_INDEX="1"
|
||||
NODES_INDEX="2 3 4 5 6"
|
||||
|
||||
TOKEN=$1
|
||||
|
||||
podman run -i --rm quay.io/coreos/butane:release --pretty --strict < template01.yaml > $NODE_PREFIX$FIRST_NODE_INDEX.json
|
||||
|
||||
if [ ! -z $1 ]; then
|
||||
echo "Token: $TOKEN"
|
||||
for NODE in $NODES_INDEX; do
|
||||
sed "s/SEDtokenSED/${TOKEN}/g;s/SEDipSED/${NODE}/g" template02.yaml | podman run -i --rm quay.io/coreos/butane:release --pretty --strict > $NODE_PREFIX$NODE.json
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user