dedicated nftables
This commit is contained in:
parent
395a34d811
commit
ff133ea171
9 changed files with 28 additions and 23 deletions
|
@ -94,6 +94,13 @@ pkgs.mkShell {
|
|||
deployparallel() {
|
||||
echo "Deploying to all nodes in parallel..."
|
||||
echo ""
|
||||
|
||||
local deploy_args=()
|
||||
if [ $# -gt 0 ]; then
|
||||
deploy_args=("$@")
|
||||
echo "Deploy arguments: ${"\${deploy_args[*]}"}"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
local nodes=($(grep -E '^[[:space:]]*[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+[[:space:]]*=' nodes.nix | \
|
||||
sed 's/^[[:space:]]*//; s/[[:space:]]*=.*//' | \
|
||||
|
@ -125,7 +132,7 @@ pkgs.mkShell {
|
|||
for node in "${"\${nodes[@]}"}"; do
|
||||
{
|
||||
echo "[$node] Starting deployment..."
|
||||
deploy -s ".#$node" 2>&1 | while IFS= read -r line; do
|
||||
deploy -s ".#$node" "${"\${deploy_args[@]}"}" 2>&1 | while IFS= read -r line; do
|
||||
echo "[$node] $line"
|
||||
done
|
||||
echo "[$node] Deployment finished"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue