mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
12 lines
321 B
Bash
Executable File
12 lines
321 B
Bash
Executable File
#!/bin/bash -e
|
|
# USAGE: ./scripts/gen-ignition src
|
|
# Example: ./scripts/gen-ignition exampels/dev/ignition
|
|
# Use coreos/fuze to transform a human-friendly *.yaml Ignition config to
|
|
# machine-friendly JSON
|
|
|
|
DEST=$1
|
|
|
|
shopt -s nullglob
|
|
for file in $DEST/*.yaml; do
|
|
fuze -in-file "$file" -out-file "${file%.yaml}.json"
|
|
done |